Skip to content

[3.13] gh-127971: fix off-by-one read beyond the end of a string during search (#132574) #136645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2,530 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
2530 commits
Select commit Hold shift + click to select a range
4c22fa6
[3.13] gh-131357: Add tests for zero-sized bytes objects in test_byte…
miss-islington May 20, 2025
7df6749
[3.13] gh-85045: clarified that the underlying buffer of a TextIOBase…
miss-islington May 20, 2025
b41e7b1
[3.13] gh-128066: Properly handle history file writes for RO fs on Py…
ambv May 20, 2025
35eb3b8
GH-130727: Avoid race condition in _wmimodule by copying shared data …
miss-islington May 20, 2025
7ada439
[3.13] gh-134360 Add processName attribute to `logging.Formatter` doc…
miss-islington May 21, 2025
f5de063
[3.13] gh-132542: Only run test_native_id_after_fork if native_id is …
miss-islington May 21, 2025
fcebf5a
[3.13] gh-110631: Fix some incorrect indents in the documentation (GH…
miss-islington May 21, 2025
bc60b33
[3.13] gh-132246: Add special buffer methods to C API Type Object doc…
miss-islington May 21, 2025
de6d199
[3.13] gh-133982: Update test_bufio to use self.open (gh-133983) (gh-…
miss-islington May 21, 2025
046125e
[3.13] gh-71253: Match _io exception in _pyio (gh-133985) (gh-134431)
miss-islington May 21, 2025
e1e8533
[3.13] gh-133982: Run unclosed file test on all io implementations (g…
miss-islington May 21, 2025
2d11f3e
[3.13] gh-62184: Remove _pyio import of _io.FileIO (gh-134192) (gh-13…
miss-islington May 21, 2025
5ecc39e
[3.13] gh-80050: Update BufferedReader.read docs around non-blocking …
gpshead May 21, 2025
e0822d8
[3.13] gh-134062: Fix hash collisions in IPv4Network and IPv6Network …
miss-islington May 22, 2025
55aba16
[3.13] gh-134309: Add ``github.actor`` to the GitHub Actions concurre…
miss-islington May 22, 2025
044fe0b
[3.13] gh-131357: Add some extra tests for empty bytes and bytearray …
miss-islington May 22, 2025
34d3495
[3.13] gh-71339: Use new assertion methods in the email tests (GH-129…
miss-islington May 22, 2025
6126b7c
[3.13] gh-71339: Use new assertion methods in the urllib tests (GH-12…
miss-islington May 22, 2025
ba9f533
[3.13] gh-71339: Use new assertion methods in the http tests (GH-1290…
miss-islington May 22, 2025
0671eb6
[3.13] Consistent sentence case in docs template files (GH-134412) (#…
miss-islington May 22, 2025
79f20f1
[3.13] Docs: Add note to tutorial clarifying scope (GH-134534) (#134545)
kattni May 22, 2025
b212653
[3.13] Avoid `__file__` in `hashlib` example (GH-134540) (#134550)
miss-islington May 22, 2025
1a61d81
[3.13] Docs: fix link in free-threading-python.rst (GH-134548) (#134556)
miss-islington May 23, 2025
5987ebc
[3.13] gh-114177: avoid calling connection lost callbacks when loop i…
miss-islington May 23, 2025
c6497d6
[3.13] Add notes on nogil & reinitialization to the Opt-Out section i…
miss-islington May 23, 2025
5b203f5
[3.13] gh-106318: Add example for `str.center()` (GH-134518) (#134572)
miss-islington May 23, 2025
1dbb644
[3.13] gh-106318: Add example for `str.count()` (GH-134519) (#134573)
miss-islington May 23, 2025
0308612
[3.13] gh-134578: Mark more slow tests (GH-134579) (GH-134592)
serhiy-storchaka May 23, 2025
e4c4ecc
[3.13] gh-134381: Fix RuntimeError when starting not-yet started Thre…
miss-islington May 23, 2025
2e30341
[3.13] gh-128840: Limit the number of parts in IPv6 address parsing (…
miss-islington May 24, 2025
44d1849
[3.13] gh-80334: fix multiprocessing.freeze_support for other spawn p…
miss-islington May 24, 2025
698bf97
[3.13] gh-134595: Update HOWTO to reflect change in CIBW option (GH-1…
miss-islington May 24, 2025
f331d03
[3.13] Fix sphinx-lint warnings (default-role used). (GH-134647) (#13…
miss-islington May 25, 2025
e483dcf
[3.13] gh-132876: workaround broken ldexp() on Windows 10 (GH-133135)…
skirpichev May 26, 2025
08e1ba8
[3.13] gh-134152: Fix UnboundLocalError in email._header_value_parser…
miss-islington May 26, 2025
b31d46e
[3.13] gh-134559: Add versionadded for ``object.__replace__()`` (GH-1…
miss-islington May 26, 2025
480f02d
[3.13] gh-134160: Use multi-phase init in documentation examples (GH-…
miss-islington May 26, 2025
a5f281f
[3.13] gh-134664: document `cleanup_socket` parameter in `asyncio.sta…
miss-islington May 27, 2025
5fb05ea
[3.13] gh-134210: handle signals in `_curses.window.getch` (GH-134326…
picnixz May 27, 2025
3593d0d
[3.13] Add CODEOWNERS and YAML to end-of-file-fixer and trailing-whit…
hugovk May 27, 2025
814ac0d
[3.13] gh-128161: Remove redundant GET_ITER from list comprehension c…
markshannon May 27, 2025
d6e4786
[3.13] gh-133678: Document C API third party tools (GH-134526) (#134792)
miss-islington May 27, 2025
c6af7f4
[3.13] GH-128161: Fix refleak introduced in GH-134788 (GH-134799)
markshannon May 27, 2025
73e4328
[3.13] gh-134789: Document del s[i] operation for mutable sequences (…
miss-islington May 27, 2025
956490b
[3.13] Update outdated statement from `math` about C standard (GH-134…
miss-islington May 28, 2025
067df2b
[3.13] gh-134160: Block multiple module initialization (GH-134773) (#…
miss-islington May 28, 2025
7410402
[3.13] gh-134744: Fix fcntl error handling (GH-134748) (GH-134795) (#…
miss-islington May 28, 2025
8e60e6c
[3.13] gh-134817: Document [Timed]RotatingFileHandler shouldRollover …
miss-islington May 28, 2025
5511533
[3.13] gh-133711: Fix test_regrtest for PYTHONUTF8=1 (GH-134839) (#13…
miss-islington May 28, 2025
a0287bf
[3.13] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 …
miss-islington May 28, 2025
07d4b63
[3.13] gh-133711: Fix test_readline.test_nonascii() for UTF-8 Mode (G…
miss-islington May 28, 2025
9cd608f
[3.13] GH-134848: Use a set to store ``AuditEvents.sources`` (GH-1348…
miss-islington May 28, 2025
dcfb229
[3.13] gh-108885: Imporove tests for doctest (GH-134832) (GH-134856)
miss-islington May 28, 2025
029ecea
gh-134262: Add retries to downloads in PCbuild\get_external.py (GH-13…
miss-islington May 28, 2025
aebb4ea
[3.13] gh-69011: : clarify & deduplicate `ctypes.create_*_buffer` doc…
miss-islington May 29, 2025
a9ba2ec
[3.13] gh-133260: Remove claim that PyUnicode_InternFromString immort…
miss-islington May 29, 2025
f4b8cd5
[3.13] ast docs: Fix description of ast.Constant (GH-134741) (#134912)
miss-islington May 30, 2025
7fdc829
Doc: remove unnecessary section header (GH-134917)
miss-islington May 30, 2025
681856c
[3.13] gh-134718: Fix ast.dump() for empty non-default values (GH-134…
serhiy-storchaka May 30, 2025
7c5a1ea
[3.13] gh-134733: Fix documentation for the show_empty option of ast.…
miss-islington May 30, 2025
5fd62be
gh-134923: Use /GENPROFILE and /USEPROFILE for Windows PGO builds (GH…
zooba May 30, 2025
19b31d1
[3.13] GH-106235: Clarify `parse_known_args` documentation by removin…
miss-islington May 30, 2025
366a790
[3.13] gh-134918: Fix and improve doctest's documentation (GH-134919)…
miss-islington May 31, 2025
379c4a2
[3.13] gh-134954: Hard-cap max file descriptors in subprocess test fd…
miss-islington May 31, 2025
e69ecfe
[3.13] gh-134835: Remove outdated list from `howto/urllib2.rst` (GH-1…
miss-islington May 31, 2025
2c325e2
[3.13] gh-134696: align OpenSSL and HACL*-based hash functions constr…
picnixz Jun 1, 2025
0446628
[3.13] gh-133503: clarify `compileall -s/-p` docs (GH-134756) (#134996)
miss-islington Jun 1, 2025
11f7270
[3.13] gh-122153: indicate that Windows does not support `socket.{sen…
picnixz Jun 2, 2025
7ca17ed
[3.13] gh-130999: Avoid exiting the new REPL when there are non-strin…
miss-islington Jun 2, 2025
a9b8ffd
[3.13] gh-134908: Protect `textiowrapper_iternext` with critical sect…
colesbury Jun 2, 2025
3e1b8d6
[3.13] gh-133489: Remove size restrictions on getrandbits() and randb…
serhiy-storchaka Jun 2, 2025
7e2ebdb
[3.13] gh-74232: Add a note about roundtrip of non-float numerics in …
miss-islington Jun 2, 2025
f67dede
[3.13] gh-133454: Mark test_queue tests with many threads as bigmem (…
miss-islington Jun 2, 2025
b0c9c19
[3.13] gh-134875: Fix mimallc build error for the old compilers (gh-1…
miss-islington Jun 3, 2025
9f3d999
[3.13] gh-128605: Add branch protections for x86_64 in asm_trampoline…
miss-islington Jun 3, 2025
aa9eb5f
[3.13] gh-135034: Normalize link targets in tarfile, add `os.path.rea…
Yhg1s Jun 3, 2025
8a526ec
Python 3.13.4
Yhg1s Jun 3, 2025
b21d15f
[3.13] gh-127081: use `getlogin_r` if available (gh-132751) (#135098)
colesbury Jun 3, 2025
b679b74
[3.13] Backport PyManager support to PC/layout script (GH-135096)
zooba Jun 3, 2025
c7ee596
Post 3.13.4
Yhg1s Jun 3, 2025
b9512c3
Merge branch '3.13' of https://github.com/python/cpython into 3.13
Yhg1s Jun 3, 2025
3a65f46
[3.13] gh-135101: When choosing the default simulator device, don't u…
miss-islington Jun 4, 2025
d446dbc
[3.13] gh-134160: Improve multi-phase init note on isolation & subint…
miss-islington Jun 4, 2025
9d5543a
[3.13] gh-135108: Fix utmp.h inclusion in posixmodule.c on NetBSD (GH…
miss-islington Jun 4, 2025
70c7aad
[3.13] gh-135074: Fix exception messages in test.support module (GH-1…
miss-islington Jun 4, 2025
ae2e795
[3.13] gh-126483: disable warnings filters mutation in concurrent tes…
miss-islington Jun 4, 2025
659631f
[3.13] gh-133256: Add _Py_NONSTRING macro (#133257) (#135135)
vstinner Jun 4, 2025
95f6296
[3.13] gh-134989: Implement PyObject_DelAttr() as a macro in the limi…
vstinner Jun 4, 2025
68f8eed
[3.13] gh-129876: Update IDLE News3.txt to May 2025 (GH-135139) (#135…
miss-islington Jun 4, 2025
fd39aa3
[3.13] gh-131531: android.py enhancements to support cibuildwheel (GH…
mhsmith Jun 5, 2025
5a69d4f
[3.13] gh-135124: Change stdout errors in regrtest worker process (GH…
miss-islington Jun 5, 2025
e2a9a3f
[3.13] gh-131884: Fix incorrect formatting in json.dumps() when using…
serhiy-storchaka Jun 5, 2025
922dc2c
[3.13] gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165)…
vstinner Jun 5, 2025
728a881
[3.13] gh-135151: Fix incorrect packaging of pyconfig.h in Windows in…
zooba Jun 5, 2025
793de28
[3.13] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#…
miss-islington Jun 6, 2025
d864a91
[3.13] gh-135120: Add test.support.subTests() (GH-135121) (GH-135210)
serhiy-storchaka Jun 6, 2025
705fa8a
[3.13] feat(docs): type fix - apply pep8 by using docstring instead o…
miss-islington Jun 6, 2025
f9c18ba
[3.13] gh-128605: Revert "Add branch protections for x86_64 in asm_tr…
miss-islington Jun 6, 2025
b250035
[3.13] Docs: Update `PyExc_*` tables in the c-api documentation (GH-1…
miss-islington Jun 6, 2025
58b9581
[3.13] gh-134155: fix AttributeError in email._header_value_parser.ge…
miss-islington Jun 6, 2025
7620805
[3.13] gh-134160: Use PyModuleDef.m_free in the example module xxlimi…
miss-islington Jun 7, 2025
e5d1771
[3.13] gh-134151 Fix `TypeError` in `email.utils.decode_params` when …
miss-islington Jun 8, 2025
47a828e
[3.13] gh-134976: document the exception type that can be raised by `…
miss-islington Jun 8, 2025
0a8fbb3
[3.13] Update tutorial for new "Copy" button (GH-135007) (#135271)
miss-islington Jun 8, 2025
b13720e
[3.13] gh-135263: Fix typo in token.NAME documentation (GH-135275) (#…
miss-islington Jun 8, 2025
f0d48b2
[3.13] gh-135276: Refresh `zipfile.Path` from zipp 3.23 (GH-135277) (…
miss-islington Jun 8, 2025
8c28241
[3.13] Use f-strings in csv docs example (GH-135245) (#135286)
miss-islington Jun 9, 2025
857647f
[3.13] Heavily comment Python/perf_jit_trampoline.c to improve mainta…
miss-islington Jun 9, 2025
dd7ffdb
[3.13] gh-133157: fix UBSan failures in `Parser/pegen.c` (GH-134048) …
picnixz Jun 10, 2025
37027ab
[3.13] gh-135326: Restore support of __index__ in random.getrandbits(…
serhiy-storchaka Jun 10, 2025
ffeaeaf
[3.13] gh-133967: Do not normalize locale name 'C.UTF-8' to 'en_US.UT…
miss-islington Jun 11, 2025
6519257
[3.13] gh-128605: Add branch protections for x86_64 in asm_trampoline…
stratakis Jun 11, 2025
871adc8
[3.13] gh-135321: Always raise a correct exception for BINSTRING argu…
miss-islington Jun 11, 2025
6901988
[3.13] Docs: Add note to tutorial clarifying scope (GH-134534) (#134535)
miss-islington Jun 11, 2025
5f5b173
[3.13] gh-132415: Update vendored setuptools in ``Lib/test/wheeldata`…
miss-islington Jun 11, 2025
6ae5158
[3.13] GH-135171: Roll back all fixes for GH-127682 as they are not s…
Yhg1s Jun 11, 2025
d24d925
[3.13] gh-133264: Correct documentation of how Py_Main and Py_RunMain…
miss-islington Jun 11, 2025
6cb20a2
Python 3.13.5
Yhg1s Jun 11, 2025
8d07562
Post 3.13.5
Yhg1s Jun 11, 2025
9a10b73
[3.13] Fix presentation of dataclasses' `unsafe_hash` default value (…
miss-islington Jun 12, 2025
db408a4
[3.13] gh-106318: Add example for `str.encode()` (GH-134520) (#135458)
miss-islington Jun 13, 2025
c260ed1
[3.13] gh-106318: Add example for `str.endswith()` (GH-134523) (#135460)
miss-islington Jun 13, 2025
0430135
gh-135455: Fix version and architecture detection in PC/layout script…
miss-islington Jun 13, 2025
6b9672c
[3.13] gh-106318: Add example for `str.expandtabs()` (GH-134525) (#13…
miss-islington Jun 13, 2025
bea67a1
[3.13] doc: Remove what was essentially duplicate wording. (GH-135431…
miss-islington Jun 13, 2025
4455cba
[3.13] gh-135462: Fix quadratic complexity in processing special inpu…
miss-islington Jun 13, 2025
22cf289
[3.13] gh-133439: Fix dot commands with trailing spaces are mistaken …
tanloong Jun 13, 2025
e753a7c
[3.13] gh-125723: Fix crash with f_locals when generator frame outliv…
efimov-mikhail Jun 13, 2025
a43cf10
[3.13] gh-135496: Fix f string exclamation mark error typo (GH-135495…
MeGaGiGaGon Jun 14, 2025
1534077
[3.13] gh-135497: fix `MAXLOGNAME` detection in `configure.ac` (GH-13…
miss-islington Jun 14, 2025
a80d47e
[3.13] gh-135171: Update documentation for the generator expression (…
miss-islington Jun 15, 2025
3bd2818
[3.13] gh-67022: Document bytes/str inconsistency in email.header.dec…
miss-islington Jun 15, 2025
404e8aa
[3.13] gh-132969: Fix error/hang when shutdown(wait=False) and task …
miss-islington Jun 16, 2025
f33a5e8
[3.13] gh-132617: Fix `dict.update()` mutation check (gh-134815) (gh-…
colesbury Jun 16, 2025
be1ca79
[3.13] Use replacements to update versions in "Using Python on macOS"…
miss-islington Jun 16, 2025
28a70a5
[3.13] gh-135489: Show verbose output for failing tests during PGO pr…
miss-islington Jun 17, 2025
a0a1aa3
[3.13] gh-135335: flush stdout/stderr in forkserver after preloading …
miss-islington Jun 18, 2025
dfe0e30
[3.13] Docs: Fix markups for emphasis (GH-135598) (GH-135686)
miss-islington Jun 18, 2025
3bfb7da
[3.13] gh-135641: Fix flaky `test_capi.test_lock_two_threads` test ca…
miss-islington Jun 18, 2025
7e783e5
gh-134538: Add link to shutil.rmtree example in function docs (GH-135…
miss-islington Jun 18, 2025
773ca09
[3.13] Document that PyType_GetModuleByDef returns a borrowed referen…
miss-islington Jun 19, 2025
55a34a1
[3.13] gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution (GH-…
miss-islington Jun 19, 2025
af48f39
[3.13] Docs: Emphasize parameter name in `pkgutil.iter_importers` (GH…
miss-islington Jun 19, 2025
2537188
[3.13] Docs: Add missing lines between regex and text (GH-134505) (GH…
miss-islington Jun 19, 2025
a8c3af0
[3.13] gh-135273: Unify `ZoneInfo.from_file` signatures (GH-135274) (…
miss-islington Jun 19, 2025
c6e26ef
[3.13] Docs: Document `PyExceptionClass` functions in the C API (GH-1…
miss-islington Jun 20, 2025
4eab9da
[3.13] gh-135756: Fix nonexistent parameter in tkinter docs (GH-13577…
miss-islington Jun 20, 2025
6e0ad71
[3.13] gh-135815: skip `netrc` security checks if `os.getuid` is miss…
miss-islington Jun 22, 2025
b79e64b
[3.13] patchcheck: use URL paths to identify upstream remote (GH-1358…
miss-islington Jun 23, 2025
3e81d56
[3.13] gh-134986: Catch PermissionError when trying to call perf in t…
miss-islington Jun 23, 2025
666795a
[3.13] gh-135698: Fix Cross-interpreter Queue.full() With Negative/De…
ericsnowcurrently Jun 23, 2025
980d6cc
[3.13] Docs: Use `arguments` to replace `args` in `argparse.rst` (GH-…
miss-islington Jun 23, 2025
028d56f
[3.13] Bump mypy to 1.16.1 (GH-135720) (#135849)
hugovk Jun 24, 2025
a27398d
[3.13] gh-135494: Fix python -m test --pgo -x test_re (#135713) (#135…
vstinner Jun 24, 2025
86d1821
[3.13] gh-135487: fix `reprlib.Repr.repr_int` when given very large i…
miss-islington Jun 24, 2025
469f69d
[3.13] gh-135878: Fix crash in `types.SimpleNamespace.__repr__` (GH-1…
miss-islington Jun 24, 2025
3e43628
[3.13] gh-135855: Raise TypeError When Passing Non-dict Object to `_i…
brianschubert Jun 24, 2025
c344aad
[3.13] gh-135755: Docs: C API: Document missing `PyFunction_GET*` mac…
miss-islington Jun 25, 2025
28c5adf
[3.13] gh-135839: Fix `module_traverse` and `module_clear` in `_inter…
sobolevn Jun 25, 2025
86c050a
[3.13] Docs: Add cross-reference for `positional_item` in the `calls`…
miss-islington Jun 25, 2025
c64df2a
[3.13] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with …
colesbury Jun 25, 2025
335d7da
[3.13] Docs: Fix indentation in `slice` class of `functions.rst` (GH-…
miss-islington Jun 25, 2025
c148a68
[3.13] gh-91555: Revert disabling of logger while handling log record…
miss-islington Jun 25, 2025
21f9873
[3.13] gh-135956: Remove duplicate word in _pydatetime docstring (GH-…
miss-islington Jun 26, 2025
3789d8d
[3.13] gh-135965: Delete duplicate word in isolating-extensions howto…
miss-islington Jun 26, 2025
a724632
[3.13] gh-135110: Fix misleading `generator.close()` documentation (G…
miss-islington Jun 26, 2025
3be3c49
[3.13] gh-91555: add warning to docs about possibility of deadlock/in…
miss-islington Jun 26, 2025
ac8b868
[3.13] IDLE: Update NEWS2x.txt with 2.7.0 release date (GH-129908) (#…
miss-islington Jun 26, 2025
784c0ed
[3.13] gh-135995: Fix missing char in palmos encoding (GH-135990) (#1…
miss-islington Jun 26, 2025
cee66dd
[3.13] Docs: Fix duplicate word typos (GH-135958) (GH-136008)
brianschubert Jun 27, 2025
07a7636
[3.13] gh-135966: Modify iOS testbed to make app_packages a site dire…
freakboy3742 Jun 27, 2025
d105eae
[3.13] gh-135968: Add iOS binary stubs for strip (GH-135970) (#136015)
miss-islington Jun 27, 2025
ea25f4a
[3.13] gh-53203: Fix strptime() for %c, %x and %X formats on some loc…
miss-islington Jun 27, 2025
3576e1a
[3.13] gh-78465: Fix error message for cls.__new__(cls, ...) where cl…
serhiy-storchaka Jun 27, 2025
1e972c7
[3.13] gh-92266: Replace tabs with four spaces in Python files (GH-13…
miss-islington Jun 27, 2025
e7a8f96
[3.13] gh-136028: Fix parsing month names containing "İ" (U+0130) in …
miss-islington Jun 27, 2025
ad1b0c9
[3.13] gh-108765: fix comment about macro definitions in `_stat.c` po…
miss-islington Jun 27, 2025
d3bcecd
[3.13] gh-135571: Guard `_hashlib` usage in `test_hashlib.py` (GH-135…
picnixz Jun 28, 2025
a2f1d22
[3.13] gh-76595: Add note on `PyCapsule_Import` behavior (GH-134022) …
miss-islington Jun 28, 2025
76dd0ee
[3.13] Doc: Fix duplicate words in idlelib (GH-136089) (#136091)
miss-islington Jun 29, 2025
be9a383
[3.13] gh-136087: Remove `\r` from documented `os.linesep` values (GH…
miss-islington Jun 30, 2025
008c8ca
[3.13] gh-132813: Fix the csv documentation for quoting and escaping …
miss-islington Jun 30, 2025
b5fafc3
[3.13] gh-128051: Fix tests if sys.float_repr_style is 'legacy' (#135…
vstinner Jun 30, 2025
ad5f88e
[3.13] gh-131885: Update documented signatures for `csv.{writer,reade…
miss-islington Jun 30, 2025
ef4a70b
[3.13] gh-48181: Document `codecs.charmap_build` (GH-135997) (#136124)
miss-islington Jun 30, 2025
38c7b0e
[3.13] gh-136122: Fix video link for math.tau documentation (GH-13612…
miss-islington Jun 30, 2025
4f4fa72
[3.13] gh-85702: Catch IsADirectoryError in zoneinfo (GH-131333) (#13…
miss-islington Jun 30, 2025
b415d1c
[3.13] gh-63207: Update `time.time` documentation after GH-116822 (GH…
miss-islington Jun 30, 2025
e194793
[3.13] gh-85702: Catch PermissionError in zoneinfo.load_tzdata() (GH-…
miss-islington Jun 30, 2025
1e3466a
[3.13] gh-133982: Use implementation-specific `open` in `test_fileio.…
miss-islington Jun 30, 2025
e3a277c
[3.13] gh-135607: remove null checking of weakref list in dealloc of …
vstinner Jul 1, 2025
0c439de
[3.13] gh-136169: Update parameter name in fractions.from_float metho…
miss-islington Jul 1, 2025
da2c4ef
[3.13] gh-87298: Add tests for find_in_strong_cache() bug in _zoneinf…
miss-islington Jul 1, 2025
1e6db47
[3.13] gh-115119: Defer removal of bundled libmpdec to 3.16 (GH-13399…
skirpichev Jul 2, 2025
c99354c
[3.13] Replace `capi-sig` mailing list with `discuss.python.org` (GH-…
miss-islington Jul 2, 2025
004f464
[3.13] gh-136135: Doc: Fix some broken links (GH-136137) (GH-136219)
miss-islington Jul 3, 2025
1994d2e
[3.13] gh-135836: Fix `IndexError` in `asyncio.create_connection` wit…
miss-islington Jul 3, 2025
d80df8c
[3.13] gh-135836: Fix `IndexError` in `asyncio.create_connection()` (…
miss-islington Jul 3, 2025
1de8fc3
[3.13] gh-135640: Adds more type checking to ElementTree (GH-135643) …
miss-islington Jul 3, 2025
67c7439
[3.13] Fix comments for `heapq.siftup_max` (GH-135359) (#136233)
miss-islington Jul 3, 2025
a09199e
[3.13] Docs: fix docstring of `email.message.Message.add_header` (GH-…
miss-islington Jul 3, 2025
fc77192
[3.13] gh-135069: Fix exception message in encodings.idna module (GH-…
miss-islington Jul 3, 2025
c30178a
[3.13] gh-130664: Treat '0' fill character with align '=' as zero-pad…
miss-islington Jul 3, 2025
8cbece1
[3.13] gh-115119: Recommend upstream libmpdec in build requirements (…
vstinner Jul 3, 2025
b041a45
[3.13] gh-135661: Fix parsing start and end tags in HTMLParser accord…
miss-islington Jul 3, 2025
7038e4a
[3.13] gh-102555: Fix comment parsing in HTMLParser according to the …
miss-islington Jul 4, 2025
a717ed9
[3.13] gh-136288: Fix error message in `_testcapi/vectorcall.c` (GH-1…
miss-islington Jul 4, 2025
b22c8be
[3.13] gh-136297: Test all `pickle` protocols in `test_zoneinfo_prope…
miss-islington Jul 5, 2025
e7a2d2a
[3.13] gh-101100: Fix references in `http.cookiejar` docs (GH-136238)…
miss-islington Jul 5, 2025
52180bf
[3.13] gh-109070: Document that get_context in multiprocessing have s…
miss-islington Jul 6, 2025
bc3390c
[3.13] Docs: Move "or" outside monospace syntax in tarfile.rst (GH-13…
rffontenelle Jul 7, 2025
2362cb6
[3.13] gh-109700: fix interpreter finalization while handling memory …
miss-islington Jul 7, 2025
8f5630d
[3.13] gh-127502: Remove XML vulnerability table (GH-135294) (#136360)
miss-islington Jul 7, 2025
0467b1f
[3.13] gh-94503: Update logging cookbook with an example of uniformly…
miss-islington Jul 7, 2025
4f24dc0
[3.13] gh-136289: Fix test_sqlite3 on platforms with strict UTF-8 fil…
miss-islington Jul 7, 2025
d7bb308
[3.13] gh-101100: Fix sphinx warnings in `whatsnew/3.9` (GH-136163) (…
miss-islington Jul 7, 2025
843e805
[3.13] gh-86682: Add versionadded for sys._getframemodulename (GH-136…
miss-islington Jul 7, 2025
eea2af3
[3.13] gh-124486: Fix test_whichdb_ndbm in test_dbm on NetBSD (GH-136…
miss-islington Jul 7, 2025
f39103b
[3.13] gh-101100: Fix Sphinx warnings in library/email.compat32-messa…
miss-islington Jul 7, 2025
095715c
[3.13] gh-136032: Fix `argparse.BooleanOptionalAction` doc (GH-136133…
miss-islington Jul 8, 2025
dcfc3d3
[3.13] gh-101100: Fix sphinx warnings in `whatsnew/3.11.rst` (GH-1364…
miss-islington Jul 8, 2025
f17be28
[3.13] gh-136155: Docs: only add custom OpenGraph protocol meta tags …
miss-islington Jul 8, 2025
4a889d8
[3.13] gh-136297: Fix `hypothesis` and `subTest` usage in `test_zonei…
miss-islington Jul 8, 2025
c44070b
[3.13] gh-101100: Fix sphinx warnings in `Doc/library/exceptions.rst`…
miss-islington Jul 8, 2025
301c89c
[3.13] gh-94503: Update logging cookbook example with info on address…
miss-islington Jul 9, 2025
faee362
[3.13] gh-53243: Document `codecs.readbuffer_encode()` (GH-136284) (#…
miss-islington Jul 9, 2025
21bcecf
[3.13] gh-136162: Document `encodings` package functions (GH-136164) …
miss-islington Jul 9, 2025
a66af8b
[3.13] gh-136162: Clean up `encodings` package documentation (#136456)
StanFromIreland Jul 9, 2025
532ecac
[3.13] gh-136447: Use `self.loop` instead of global `loop` variable i…
miss-islington Jul 9, 2025
7a548e2
[3.13] Docs: unittest.enterModuleContext is not a classmethod (GH-136…
miss-islington Jul 9, 2025
2176385
[3.13] gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136…
miss-islington Jul 9, 2025
6c81051
[3.13] gh-81520: Document unexpected `os.path.ismount` behaviour with…
miss-islington Jul 9, 2025
2c2dd75
[3.13] gh-136145: Define 'standard library' and 'stdlib' in the gloss…
miss-islington Jul 9, 2025
d223739
[3.13] gh-102740: Clarify time.monotonic() "system-wide" in the doc (…
miss-islington Jul 9, 2025
a2140fa
[3.13] gh-136438: Make sure `test_builtins` pass with all optimizatio…
sobolevn Jul 10, 2025
15e9c3b
[3.13] gh-136209: Add .. c:var:: declarations for C exception types (…
miss-islington Jul 10, 2025
81d1986
[3.13] gh-82663: Clarify `codecs.iterdecode/encode` docs (GH-136497) …
miss-islington Jul 10, 2025
aa3c642
[3.13] gh-52876: Implement missing parameter in `codecs.StreamReaderW…
miss-islington Jul 10, 2025
aa4bb1c
[3.13] gh-101100: Fix sphinx warnings in `library/email.parser.rst` (…
miss-islington Jul 11, 2025
175ada2
[3.13] gh-76637: Note that `undefined` Codec is for testing (GH-13653…
miss-islington Jul 11, 2025
cba2974
[3.13] gh-136541: Fix several problems of perf trampolines in x86_64 …
pablogsal Jul 11, 2025
f7f1448
[3.13] gh-130160: use `.. program::` directive for documenting `venv`…
miss-islington Jul 11, 2025
01710af
[3.13] gh-101100: Fix sphinx warnings in Doc/library/functools.rst (G…
serhiy-storchaka Jul 11, 2025
6176101
[3.13] gh-134759: fix `UnboundLocalError` in `email.message.Message.g…
miss-islington Jul 12, 2025
360540f
[3.13] gh-91153: prevent a crash in `bytearray.__setitem__(ind, ...)`…
picnixz Jul 12, 2025
d733a1e
[3.13] gh-136549: Fix signature of threading.excepthook() (GH-136559)…
miss-islington Jul 12, 2025
39f36a1
[3.13] gh-101100: Fix sphinx warnings in Doc/library/platform.rst (GH…
miss-islington Jul 12, 2025
bec9bdf
[3.13] gh-134833: improve docs for `del s[i:j]` in `Mutable Sequence …
miss-islington Jul 13, 2025
c438649
[3.13] gh-136523: Fix wave.Wave_write emitting an unraisable when ope…
miss-islington Jul 13, 2025
dae5867
[3.13] gh-127971: fix off-by-one read beyond the end of a string duri…
duaneg Jul 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[3.13] feat(docs): type fix - apply pep8 by using docstring instead o…
…f comment in the doc. (GH-135181) (#135211)

feat(docs): type fix - apply pep8 by using docstring instead of comment in the doc. (GH-135181)

Giving the right example incitates the tutorial readers to do the same in the future.
(cherry picked from commit 3431828)

Co-authored-by: Jean-Louis GUENEGO <jlguenego@gmail.com>
  • Loading branch information
miss-islington and jlguenego authored Jun 6, 2025
commit 705fa8a23fab158d8acfc4176cbddd77c29abb0c
6 changes: 4 additions & 2 deletions Doc/tutorial/modules.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ called :file:`fibo.py` in the current directory with the following contents::

# Fibonacci numbers module

def fib(n): # write Fibonacci series up to n
def fib(n):
"""Write Fibonacci series up to n."""
a, b = 0, 1
while a < n:
print(a, end=' ')
a, b = b, a+b
print()

def fib2(n): # return Fibonacci series up to n
def fib2(n):
"""Return Fibonacci series up to n."""
result = []
a, b = 0, 1
while a < n:
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy