]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
30 hours ago[3.13] gh-137499: Fixed dead link to NIST website (GH-137500) (#137501) 3.13
Miss Islington (bot) [Sat, 9 Aug 2025 12:42:25 +0000 (14:42 +0200)] 
[3.13] gh-137499: Fixed dead link to NIST website (GH-137500) (#137501)

Co-authored-by: tobiasjcat <70606111+tobiasjcat@users.noreply.github.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
37 hours ago[3.13] gh-137026: Add an explainer guide for asyncio (GH-137215) (#137582)
Miss Islington (bot) [Sat, 9 Aug 2025 05:35:38 +0000 (07:35 +0200)] 
[3.13] gh-137026: Add an explainer guide for asyncio (GH-137215) (#137582)

gh-137026: Add an explainer guide for asyncio (GH-137215)

* - Add an explainer guide (aka HOWTO, not how-to) for asyncio.

* Fix linter errors.

* - Enforce max line length of roughly 79 chars.
- Start sentences on new lines to minimize disruption of diffs.

* Add reference to subinterpreters.

* - Significantly reduce article size. Remove both example sections & "Which concurrency do I want" section.

* Align section-header lengths with section names.

* - Remove reference to deleted section.

* - Fix a variety of rote style guide items like title-alignment, use of ie and $, and so forth.
- Add links to other parts of the docs for keywords and objects like await, coro, task, future, etc.

* - One last title alignment.

* - Style nit.

* - Rework a variety of I statements.

* Lint fix.

* - Firm up commentary on yield from in corotuines.

* Update language comparing await and yield from.

* - Remove await-ing Tasks and futures section

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* - Address comments related to style & writing flow.

* per-thread event loop note.

* Add section describing coroutines roots in generators.

* Phrasing tweak.

* Use asyncio.create_task instead of asyncio.Task

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* small phrasing.

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* phrasing nit.

* style nits

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* phrasing nit

* Fix misnaming of async generator.

* phrasing nits.

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* consistent spacing

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* phrasing nits

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* add conclusion

* nits

* - Variety of style & grammar improvements thanks to ZeroIntensity's comments.

* - Make all directives start with a 3 space indent. Then 4 thereafter.

* - Use :linenos: instead of manually writing the line numbers.

* - Fix label typo for article.

* fix label link.

* Apply suggestions from code review

* - introduce async-sleep name

* Phrasing

* nit

* ungendered octopus

* teammates

* jobs

* rework fella to penguin

* - remove byline; add seealso

* Change ref from asyncio to use seealso block.

* Remove typehints. Fix indentation in one code example.

* Slight rephrase for clarity.

* Make references point to asyncio. Wrap some long lines.

* - Variety of style/phrasing improvements based on PR feedback.

* phrasing.

* phrasing nit.

* Apply suggestions from code review

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* nit

* Apply suggestions from code review

* fix backticks.

* nits

* nit

* add section on asyncio.run

* title change under the hood.

* modify task coro example.

* howtos article link.

* prefer await without backticks.

* phrasing tweak.

* Rework phrasing around how await tasks pauses and returns control in the await section.

* move code block to beforfe explanation in coroutine under the hood.

* phrasing.

* link to yield from.

* style nits

* nit

* - Modify language re: event-loop cycling endlessly.
- Discuss why await was designed to not yield for coros.

* - Add a note about debug=True on asyncio.run to await coro section.

* clarity nit

* - Add two other references in seealso block.

* nit

* Language simplification

* Apply suggestions from code review

* nit

* grammar fix.

* fix

* worker bees

* rework event loop paragraph to significantly deemphasize queues

* remove all references to queue besides the initial analogy.

* add note about garbage collection of tasks

* add practical note re: garbage collection

* phrasing nits

* re arrange note on task gc.

* line wrap nit

* Update Doc/howto/a-conceptual-overview-of-asyncio.rst

* link to debug mode docs.

* readd part2 prefix.

* simplify title.

* fix titles. tihnk I messed this up earlier.

* avoid idiom in title.

* fix titles once agian.

* Apply suggestions from code review

* rework task gc example.

* phrasing tweak.

* tewak.

* nit

* nit

* nit

* nit

---------
(cherry picked from commit 3964f974894eff1653913dda437971e0bbfa8ccc)

Co-authored-by: Alexander Nordin <alexander.f.nordin@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2 days ago[3.13] Fix typo in Doc/extending/extending.rst (GH-136890) (#137561)
Hugo van Kemenade [Fri, 8 Aug 2025 16:29:36 +0000 (19:29 +0300)] 
[3.13] Fix typo in Doc/extending/extending.rst (GH-136890) (#137561)

Co-authored-by: Cornelius Roemer <cornelius.roemer@gmail.com>
2 days ago[3.13] gh-136155: Docs: check for EPUB fatal errors in CI (GH-134074) (#137538)
Miss Islington (bot) [Fri, 8 Aug 2025 16:05:24 +0000 (18:05 +0200)] 
[3.13] gh-136155: Docs: check for EPUB fatal errors in CI (GH-134074) (#137538)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 days ago[3.13] Replace "ordered arguments" with "positional arguments" in `unittest.mock...
Miss Islington (bot) [Fri, 8 Aug 2025 14:08:01 +0000 (16:08 +0200)] 
[3.13] Replace "ordered arguments" with "positional arguments" in `unittest.mock` documentation (GH-137552) (GH-137554)

Replace "ordered arguments" with "positional arguments" in `unittest.mock` documentation (GH-137552)
(cherry picked from commit 64ee1babfb971ddbc00fd8711cccebfbddf6e4ee)

Co-authored-by: Tom Forbes <tom@tomforb.es>
2 days ago[3.13] Bump mypy to 1.17.1 (GH-137542) (#137544)
Miss Islington (bot) [Fri, 8 Aug 2025 07:37:24 +0000 (09:37 +0200)] 
[3.13] Bump mypy to 1.17.1 (GH-137542) (#137544)

Bump mypy to 1.17.1 (GH-137542)
(cherry picked from commit fb1cb00030c706366dfd1a457dd5de324d5619ea)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 days ago[3.13] [Doc] Remove unnecessary quotes from typing module (GH-137207) (#137540)
Miss Islington (bot) [Fri, 8 Aug 2025 02:21:21 +0000 (04:21 +0200)] 
[3.13] [Doc] Remove unnecessary quotes from typing module (GH-137207) (#137540)

[Doc] Remove unnecessary quotes from typing module (GH-137207)

* gh-106320: Remove private _PyInterpreterState functions (GH-106335)

Remove private _PyThreadState and _PyInterpreterState C API
functions: move them to the internal C API (pycore_pystate.h and
pycore_interp.h). Don't export most of these functions anymore, but
still export functions used by tests.

Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C
API, but keep it in the stable API.

* Doc: minor change

* Revert "Doc: minor change"

This reverts commit ebfa0937c2caf0110ab1540f14956d56fe925092.

* [Doc] Remove unnecessary quotes from typing (See Also section)

* [Doc] Remove unnecessary quotes from typing

---------
(cherry picked from commit f06fcb7f4b430993ece308e4e11cba939a676c69)

Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2 days ago[3.13] gh-130102: drop "require numeric arguments" from pow() docs (GH-137456) (...
Miss Islington (bot) [Fri, 8 Aug 2025 01:25:24 +0000 (03:25 +0200)] 
[3.13] gh-130102: drop "require numeric arguments" from pow() docs (GH-137456) (#137537)

gh-130102: drop "require numeric arguments" from pow() docs (GH-137456)
(cherry picked from commit 37b5a0d671685645db8f1d5ecfa1260587f1fc28)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
2 days ago[3.13] gh-137412: fix `default_builtin_hashes` values in `test_hashlib.py` (GH-137413...
Miss Islington (bot) [Thu, 7 Aug 2025 22:54:27 +0000 (00:54 +0200)] 
[3.13] gh-137412: fix `default_builtin_hashes` values in `test_hashlib.py` (GH-137413) (#137535)

gh-137412: fix `default_builtin_hashes` values in `test_hashlib.py` (GH-137413)

fix `default_builtin_hashes` in test_hashlib
(cherry picked from commit deb385a14337bc3e38442b4cee3aac4a57364adc)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2 days ago[3.13] gh-137463: Update validate_abstract_methods in test_collections.py (GH-137464...
Guilherme Leobas [Thu, 7 Aug 2025 21:29:45 +0000 (18:29 -0300)] 
[3.13] gh-137463: Update validate_abstract_methods in test_collections.py (GH-137464) (#137521)

gh-137463: Update `validate_abstract_methods` in `test_collections.py` (#137464)

Update `validate_abstract_methods` in `test_collections.py`

The test for missing abstract methods in `validate_abstract_methods` incorrectly attempted to instantiate the generated class `C` with an argument (`C(name)`), which always raises a `TypeError: C() takes no arguments`. Although the test originally passes, it passes for the wrong reason.

This change makes the test correctly validate the enforcement of abstract methods in ABCs.

(cherry picked from commit 5be872350d562e6c9987b09ff4b7bda80a2f9cd0)

2 days ago[3.13] gh-137526: Fix broken link to drdobbs journal in difflib.rst (GH-137527) ...
Miss Islington (bot) [Thu, 7 Aug 2025 19:42:04 +0000 (21:42 +0200)] 
[3.13] gh-137526: Fix broken link to drdobbs journal in difflib.rst (GH-137527) (#137532)

gh-137526: Fix broken link to drdobbs journal in difflib.rst (GH-137527)
(cherry picked from commit 244c7b8c4c579972e7db54132bdd74de3d3b3c0a)

Co-authored-by: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
3 days ago[3.13] gh-137440: Update comment in Python/hamt.c on importing for testing (GH-137441...
Miss Islington (bot) [Thu, 7 Aug 2025 16:54:52 +0000 (18:54 +0200)] 
[3.13] gh-137440: Update comment in Python/hamt.c on importing for testing (GH-137441) (GH-137520)

gh-137440: Update comment in Python/hamt.c on importing for testing (GH-137441)

Switch from `_testcapi` to `_testinternalcapi`.
(cherry picked from commit 7ab68cd50658f76abc9e0f12e6212736e2440720)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
3 days ago[3.13] gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-13733...
Miss Islington (bot) [Thu, 7 Aug 2025 09:37:02 +0000 (11:37 +0200)] 
[3.13] gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-137338) (GH-137507)

* Return large limit values as positive integers instead of negative integers
  in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
  for limits in resource.setrlimit().
(cherry picked from commit baefaa6cba1d69efd2f930cdc56bca682c54b139)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 days ago[3.13] gh-134262: increase retries in `Tools/build/generate_sbom.py` … (#137496)
Emma Smith [Thu, 7 Aug 2025 04:17:28 +0000 (21:17 -0700)] 
[3.13] gh-134262: increase retries in `Tools/build/generate_sbom.py` … (#137496)

[3.13] gh-134262: increase retries in `Tools/build/generate_sbom.py` (GH-134558)
(cherry picked from commit 3f9eb55e090a8de80503e565f508f341c5f4c8da)

3 days ago[3.13] gh-134262: Add retries to generate_sbom.py (GH-134263) (#137468)
Emma Smith [Wed, 6 Aug 2025 22:58:08 +0000 (15:58 -0700)] 
[3.13] gh-134262: Add retries to generate_sbom.py (GH-134263) (#137468)

(cherry picked from commit 0c5a8b0b55238a45b9073d06a10c3a59568cdf3c)

Co-authored-by: Semyon Moroz <donbarbos@proton.me>
3 days ago[3.13] Docs: Small clarity change for ``except*`` (GH-121073) (#137495)
Miss Islington (bot) [Wed, 6 Aug 2025 22:04:15 +0000 (00:04 +0200)] 
[3.13] Docs: Small clarity change for ``except*`` (GH-121073) (#137495)

Co-authored-by: Greg Stein <gstein@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 days ago[3.13] Docs: Use the correct example module in warnings.rst (GH-137402) (#137493)
Miss Islington (bot) [Wed, 6 Aug 2025 21:58:11 +0000 (23:58 +0200)] 
[3.13] Docs: Use the correct example module in warnings.rst (GH-137402) (#137493)

Co-authored-by: Mendel Feygelson <mfeygelson@gmail.com>
3 days agoPost 3.13.6
Thomas Wouters [Wed, 6 Aug 2025 21:04:32 +0000 (23:04 +0200)] 
Post 3.13.6

4 days agoPython 3.13.6 v3.13.6
Thomas Wouters [Wed, 6 Aug 2025 13:05:02 +0000 (15:05 +0200)] 
Python 3.13.6

4 days ago[3.13] gh-137056: Fix DTrace build support on NetBSD (GH-137057) (#137445)
Serhiy Storchaka [Wed, 6 Aug 2025 13:02:26 +0000 (16:02 +0300)] 
[3.13] gh-137056: Fix DTrace build support on NetBSD (GH-137057) (#137445)

(cherry picked from commit 54a5fdffc8e20f111e7a7d2df352e8be057177ff)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
4 days ago[3.13] gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135) (#137455)
Hugo van Kemenade [Wed, 6 Aug 2025 12:59:55 +0000 (15:59 +0300)] 
[3.13] gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135) (#137455)

gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135)

* Update SQLite to 3.50.3 for binary releases.
* macOS and Windows news entries. what about Android?
* update sbom hash
* newline fix via regen-sbom
* news wording
* Update SQLite to 3.50.4 for binary releases.
* update 3.50.4.0.tar.gz hash in sbom & regen-sbom to fix whitespace
* Postpone to a separate PR the build-installer changes to support additional hash types

(cherry picked from commit 532c37695d03f84fc6d12f891d26b901ef402ac4)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Ned Deily <nad@python.org>
4 days ago[3.13] gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) (#137461)
Miss Islington (bot) [Wed, 6 Aug 2025 12:59:11 +0000 (14:59 +0200)] 
[3.13] gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) (#137461)

gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415)

Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
(cherry picked from commit ce1b747ff68754635b7b12870dfc527184ee3b39)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 days ago[3.13] gh-137450: macOS installer shell path management improvements (GH-137451)...
Miss Islington (bot) [Wed, 6 Aug 2025 11:43:54 +0000 (13:43 +0200)] 
[3.13] gh-137450: macOS installer shell path management improvements (GH-137451) (#137452)

Separate the installer `Shell profile updater` postinstall script from the `Update Shell Profile.command` to enable more robust error handling.
(cherry picked from commit 781eb1a688e0575a38c79575493f3ff83208a33e)

Co-authored-by: Ned Deily <nad@python.org>
4 days ago[3.13] gh-81325: Support path-like objects with streaming TarFile (GH-137188) (#137366)
Miss Islington (bot) [Tue, 5 Aug 2025 21:17:12 +0000 (23:17 +0200)] 
[3.13] gh-81325: Support path-like objects with streaming TarFile (GH-137188) (#137366)

Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
4 days ago[3.13] Docs: add dunder and walrus to the glossary (GH-137430) (#137435)
Miss Islington (bot) [Tue, 5 Aug 2025 21:16:59 +0000 (23:16 +0200)] 
[3.13] Docs: add dunder and walrus to the glossary (GH-137430) (#137435)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
4 days ago[3.13] gh-136823: Update documentation on excluded headers in Python.h (GH-136824...
Miss Islington (bot) [Tue, 5 Aug 2025 21:16:24 +0000 (23:16 +0200)] 
[3.13] gh-136823: Update documentation on excluded headers in Python.h (GH-136824) (#137438)

Co-authored-by: Sina Zel taat <111974143+SZeltaat@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
4 days ago[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.12.0 (GH-137393) (#137432)
Miss Islington (bot) [Tue, 5 Aug 2025 20:21:10 +0000 (22:21 +0200)] 
[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.12.0 (GH-137393) (#137432)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
5 days ago[3.13] gh-123441: Correct the supported languages of the iso-8859-4 codec (GH-137034...
Miss Islington (bot) [Tue, 5 Aug 2025 15:02:57 +0000 (17:02 +0200)] 
[3.13] gh-123441: Correct the supported languages of the iso-8859-4 codec (GH-137034) (GH-137418)

(cherry picked from commit 525784aa65d35a5609aba53c873a9a3a578f992b)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
5 days ago[3.13] gh-122450: Expand documentation for ``Rational`` and ``Fraction`` (#136800...
Sergey B Kirpichev [Tue, 5 Aug 2025 13:54:31 +0000 (16:54 +0300)] 
[3.13] gh-122450: Expand documentation for ``Rational`` and ``Fraction`` (#136800) (#137367)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 days ago[3.13] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6...
Bénédikt Tran [Tue, 5 Aug 2025 09:01:07 +0000 (11:01 +0200)] 
[3.13] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6.10.3 (GH-135226) (#137408)

* [3.13] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6.10.3 (GH-135226)

This aligns with the recommendations of RFC 9562, Section 6.10, paragraph 3 [1].

[1]: https://www.rfc-editor.org/rfc/rfc9562.html#section-6.10-3.

---------
(cherry picked from commit 1cb716387255a7bdab5b580bcf8ac1b6fa32cc41)

Co-authored-by: LamentXU <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 days ago[3.13] gh-137397: Skip test_os_open on NetBSD due to indefinite hang (GH-137398)...
Miss Islington (bot) [Tue, 5 Aug 2025 08:55:53 +0000 (10:55 +0200)] 
[3.13] gh-137397: Skip test_os_open on NetBSD due to indefinite hang (GH-137398) (#137407)

gh-137397: Skip test_os_open on NetBSD due to indefinite hang (GH-137398)
(cherry picked from commit 7f416c867445dd94d11ee9df5f1a2d9d6eb8d883)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
5 days ago[3.13] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC address...
Bénédikt Tran [Tue, 5 Aug 2025 07:56:03 +0000 (09:56 +0200)] 
[3.13] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC address (GH-132901) (#134704)

This commit includes the original commit and the NEWS entry that was added separately.

(cherry picked from commit 3bffada46728e51f84c41ecbb0d3722595693e63)
(cherry picked from commit 9eb84d83e00070cec3cfe78f1d0c7a7a0fbef30f)

6 days ago[3.13] gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085...
Miss Islington (bot) [Mon, 4 Aug 2025 14:38:49 +0000 (16:38 +0200)] 
[3.13] gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085) (#134448)

* gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085)

* ensure that we can create AF_UNIX socket files
* emit a warning if system-wide temporary directory is used
(cherry picked from commit 1a07a01014bde23acd2684916ef38dc0cd73c2de)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* rename warn -> _warn for the 3.13.x backport

* Update Misc/NEWS.d/next/Library/2025-05-16-12-40-37.gh-issue-132124.T_5Odx.rst

---------

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
6 days ago[3.13] gh-130077: Properly match full soft keywords in the parser (GH-135317) (#135399)
Pablo Galindo Salgado [Mon, 4 Aug 2025 14:18:05 +0000 (15:18 +0100)] 
[3.13] gh-130077: Properly match full soft keywords in the parser (GH-135317) (#135399)

* [3.13] gh-130077: Properly match full soft keywords in the parser (GH-135317)
(cherry picked from commit ff2b5f40c2bf5c71255caac8a743c09ba0758c02)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Remove line the main-branch commit removed

---------

Co-authored-by: Petr Viktorin <encukou@gmail.com>
6 days ago[3.13] gh-137194: Fix requires_debug_ranges when _testcpi doesn't exist (GH-137195...
Miss Islington (bot) [Mon, 4 Aug 2025 13:22:15 +0000 (15:22 +0200)] 
[3.13] gh-137194: Fix requires_debug_ranges when _testcpi doesn't exist (GH-137195) (GH-137275)

(cherry picked from commit 0282eef880c8c8db782a2088b0257250e0f76d48)

Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
6 days ago[3.13] gh-135839: Fix `module_traverse` and `module_clear` in subinterp modules ...
sobolevn [Mon, 4 Aug 2025 12:34:47 +0000 (15:34 +0300)] 
[3.13] gh-135839: Fix `module_traverse` and `module_clear` in subinterp modules (GH-135937) (GH-135943)

(cherry picked from commit bcc2cbaa7f112323939e853ed69fd82f19568ccf)

6 days ago[3.13] Remove Alex Waygood as a codeowner for pre-commit config (#137372) (#137374)
Alex Waygood [Mon, 4 Aug 2025 10:40:56 +0000 (11:40 +0100)] 
[3.13] Remove Alex Waygood as a codeowner for pre-commit config (#137372) (#137374)

6 days ago[3.13] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#137356)
Brian Schubert [Mon, 4 Aug 2025 05:56:07 +0000 (01:56 -0400)] 
[3.13] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#137356)

`ASTOptimiziationTests` -> `ASTOptimizationTests`
(cherry picked from commit 60146f4f6f24f37e3bfcb9f101565f6e86cf0146)

Co-authored-by: Hunter Hogan <hunterhogan@users.noreply.github.com>
6 days ago[3.13] gh-137257: Upgrade bundled pip to 25.2 (GH-137258) (GH-137362)
Miss Islington (bot) [Mon, 4 Aug 2025 02:23:25 +0000 (04:23 +0200)] 
[3.13] gh-137257: Upgrade bundled pip to 25.2 (GH-137258) (GH-137362)

gh-137257: Upgrade bundled pip to 25.2 (GH-137258)
(cherry picked from commit 506542b5966073203f0da71a487de24e596b7979)

Co-authored-by: Richard Si <sichard26@gmail.com>
6 days ago[3.13] Doc: fix duplicated words (GH-136086) (#137357)
Brian Schubert [Sun, 3 Aug 2025 22:41:47 +0000 (18:41 -0400)] 
[3.13] Doc: fix duplicated words (GH-136086) (#137357)

(cherry picked from commit 698bab5a4031c8f54e04e1dd42bcbe3e4564eba5)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
7 days ago[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.11.0 (GH-137348) (#137350)
Miss Islington (bot) [Sun, 3 Aug 2025 18:39:39 +0000 (20:39 +0200)] 
[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.11.0 (GH-137348) (#137350)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
7 days ago[3.13] gh-137341: Remove more word duplications (GH-137342) (GH-137347)
Serhiy Storchaka [Sun, 3 Aug 2025 17:24:26 +0000 (20:24 +0300)] 
[3.13] gh-137341: Remove more word duplications (GH-137342) (GH-137347)

(cherry picked from commit 1612dcbafe763014deefd679fe75ac5831a14a43)

7 days ago[3.13] gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328...
Miss Islington (bot) [Sun, 3 Aug 2025 16:58:49 +0000 (18:58 +0200)] 
[3.13] gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328) (#137345)

gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328)
(cherry picked from commit 0153d82a5ab0c6ac16c046bdd4438ea11b58d59d)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
7 days agoDoc: remove unused images (GH-137323)
Miss Islington (bot) [Sun, 3 Aug 2025 05:28:52 +0000 (07:28 +0200)] 
Doc: remove unused images (GH-137323)

(cherry picked from commit f195c2803002d4a4827c61171d8c327e230842b6)

Co-authored-by: Inada Naoki <songofacandy@gmail.com>
7 days ago[3.13] gh-135444: fix `asyncio.DatagramTransport.sendto` to account for datagram...
Miss Islington (bot) [Sun, 3 Aug 2025 04:48:53 +0000 (06:48 +0200)] 
[3.13] gh-135444: fix `asyncio.DatagramTransport.sendto` to account for datagram header size when data cannot be sent (GH-135445) (#137246)

gh-135444: fix `asyncio.DatagramTransport.sendto` to account for datagram header size when data cannot be sent (GH-135445)
(cherry picked from commit e3ea8613519bd08aa6ce7d142403e644ae32d843)

Co-authored-by: Justin Bronder <jsbronder@cold-front.org>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
8 days ago[3.13] gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980...
Petr Viktorin [Sat, 2 Aug 2025 14:19:20 +0000 (16:19 +0200)] 
[3.13] gh-135755: Document __future__.* and CO_* as proper Sphinx objects (GH-135980) (GH-136371)

* Turn the __future__ table to list-table.
  This'll make it easier to add entries that need longer markup
* Semantic markup for __future__ feature descriptions.
* Document CO_* C macros.
(cherry picked from commit 2468aafe984fdf923811ef0c6969e3d6c1b92a82)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
9 days ago[3.13] gh-137273: Fix debug assertion failure in locale.setlocale() on Windows (GH...
Miss Islington (bot) [Fri, 1 Aug 2025 15:06:16 +0000 (17:06 +0200)] 
[3.13] gh-137273: Fix debug assertion failure in locale.setlocale() on Windows (GH-137300) (GH-137306)

It happened when there were at least 16 characters after dot in the
locale name.
(cherry picked from commit 718e0c89ba0610bba048245028ac133bbf2d44c2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
9 days ago[3.13] GH-111758: Merge TSan and UBSan reusable GHA workflows (#136820) (GH-137029)
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) [Fri, 1 Aug 2025 13:00:48 +0000 (15:00 +0200)] 
[3.13] GH-111758: Merge TSan and UBSan reusable GHA workflows (#136820) (GH-137029)

(cherry picked from commit 65d2c51c10425dcfacc0a13810d58c41240d7ff9)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com>
11 days ago[3.13] GH-133136: Revise QSBR to reduce excess memory held (gh-135473) (gh-136480)
Neil Schemenauer [Wed, 30 Jul 2025 18:06:44 +0000 (11:06 -0700)] 
[3.13] GH-133136: Revise QSBR to reduce excess memory held (gh-135473) (gh-136480)

The free threading build uses QSBR to delay the freeing of dictionary
keys and list arrays when the objects are accessed by multiple threads
in order to allow concurrent reads to proceed with holding the object
lock. The requests are processed in batches to reduce execution
overhead, but for large memory blocks this can lead to excess memory
usage.

Take into account the size of the memory block when deciding when to
process QSBR requests.

Also track the amount of memory being held by QSBR for mimalloc pages.
Advance the write sequence if this memory exceeds a limit.  Advancing
the sequence will allow it to be freed more quickly.

Process the held QSBR items from the "eval breaker", rather than from
`_PyMem_FreeDelayed()`.  This gives a higher chance that the global read
sequence has advanced enough so that items can be freed.

(cherry picked from commit 113de8545ffe74a4a1dddb9351fa1cbd3562b621)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
11 days ago[3.13] GH-116738: document thread-safety of bisect (GH-136555) (#137222)
Miss Islington (bot) [Wed, 30 Jul 2025 11:50:39 +0000 (13:50 +0200)] 
[3.13] GH-116738: document thread-safety of bisect (GH-136555) (#137222)

* GH-116738: document thread-safety of bisect (GH-136555)
(cherry picked from commit 5236b0281b91a874b14cf15f3fdef9b7beffb22f)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
12 days ago[3.13] gh-137183: Document that `array.array` typecode `w` is new in 3.13 (GH-137184...
Miss Islington (bot) [Tue, 29 Jul 2025 16:45:08 +0000 (18:45 +0200)] 
[3.13] gh-137183: Document that `array.array` typecode `w` is new in 3.13 (GH-137184) (GH-137209)

(cherry picked from commit 0b4e13c2658c5a267fc50ee045ffb7b6408b2e3b)

Co-authored-by: Akuli <akuviljanen17@gmail.com>
13 days ago[3.13] gh-130577: tarfile now validates archives to ensure member offsets are non...
Miss Islington (bot) [Mon, 28 Jul 2025 15:59:33 +0000 (17:59 +0200)] 
[3.13] gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-137027) (#137170)

gh-130577: tarfile now validates archives to ensure member offsets are non-negative (GH-137027)
(cherry picked from commit 7040aa54f14676938970e10c5f74ea93cd56aa38)

Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
13 days ago[3.13] gh-136759: revert rename `lock.h` to `pylock.h` (GH-137041) (#137075) (#137166)
Kumar Aditya [Mon, 28 Jul 2025 12:19:32 +0000 (17:49 +0530)] 
[3.13] gh-136759: revert rename `lock.h` to `pylock.h` (GH-137041) (#137075) (#137166)

Revert "[3.13] gh-136759: rename `lock.h` to `pylock.h` (GH-137041) (#137075)"

This reverts commit 74503acba7d6c563aeef307ccf2d0cee141838b0.

13 days ago[3.13] gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when...
Miss Islington (bot) [Mon, 28 Jul 2025 11:03:08 +0000 (13:03 +0200)] 
[3.13] gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when `local_addr` is `None` (GH-136913) (#137163)

gh-119711: describe `create_datagram_endpoint`'s behavior in asyncio when `local_addr` is `None` (GH-136913)
(cherry picked from commit 1481384141342479b3ba4b89f653b4e5bef0d272)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
13 days ago[3.13] gh-84559: improve What's New entry for `multiprocessing` startmethod changes...
Brian Schubert [Mon, 28 Jul 2025 01:12:16 +0000 (21:12 -0400)] 
[3.13] gh-84559: improve What's New entry for `multiprocessing` startmethod changes (GH-128173) (#137156)

[3.13] gh-84559: improve What's New entry for `multiprocessing` start method changes (GH-128173)
(cherry picked from commit b8c313a41c411331c603bbda28048b2a3f4a2ab4)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
13 days ago[3.13] gh-136992: Add "None" as valid `SameSite` value as per RFC 6265bis (GH-137040...
Miss Islington (bot) [Sun, 27 Jul 2025 20:08:46 +0000 (22:08 +0200)] 
[3.13] gh-136992: Add "None" as valid `SameSite` value as per RFC 6265bis (GH-137040) (#137141)

gh-136992: Add "None" as valid `SameSite` value as per RFC 6265bis (GH-137040)

The "SameSite" attribute defined in RFC 6265bis [1] allows the "Strict", "Lax" and "None"
enforcement modes. We already documented "Strict" and "Lax" as being valid values
but "None" was missing from the list. While the RFC has not been formally approved,
modern browsers support the "None" value [2, 3] thereby making sense to document it.

[1]: https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis
[2]: https://developers.google.com/search/blog/2020/01/get-ready-for-new-samesitenone-secure
[3]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Set-Cookie#none

---------
(cherry picked from commit ae8b7d710020dfd336edd399fa35525dfe8fc049)

Co-authored-by: Iqra Khan <iqraakhan2519@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
13 days ago[3.13] gh-132898: Add a note in `multiprocessing.Process` docs about creating a proce...
Miss Islington (bot) [Sun, 27 Jul 2025 20:05:39 +0000 (22:05 +0200)] 
[3.13] gh-132898: Add a note in `multiprocessing.Process` docs about creating a process in a REPL (GH-137118) (#137155)

gh-132898: Add a note in `multiprocessing.Process` docs about creating a process in a REPL (GH-137118)

* Reword, expand, and clarify the limitation, highlighting the REPL case.
* Mention in the high level Process description.
* added a pointer to the GH issue from the doc note

---------
(cherry picked from commit 4e40f2bea7edfa5ba7e2e0e6159d9da9dfe4aa97)

Co-authored-by: Duprat <yduprat@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2 weeks ago[3.13] gh-136278: Document codecs.escape_encode() and codecs.escape_decode() (GH...
Miss Islington (bot) [Sun, 27 Jul 2025 16:44:25 +0000 (18:44 +0200)] 
[3.13] gh-136278: Document codecs.escape_encode() and codecs.escape_decode() (GH-136314) (#137150)

gh-136278: Document codecs.escape_encode() and codecs.escape_decode() (GH-136314)

Closes GH-136278
(cherry picked from commit 6784ef7da7cbf1a944fd0685630ced54e4a0066c)

Co-authored-by: Toshaksha <147024929+Toshaksha@users.noreply.github.com>
2 weeks ago[3.13] gh-134698: Hold a lock when the thread state is detached in ssl (GH-134724...
Gregory P. Smith [Sun, 27 Jul 2025 15:30:25 +0000 (08:30 -0700)] 
[3.13] gh-134698: Hold a lock when the thread state is detached in ssl (GH-134724) (#137126)

Lock when the thread state is detached.
(cherry picked from commit e047a35b23c1aa69ab8d5da56f36319cec4d36b8) or really from the 3.14 backport fd565fdfc9c0001900d03d627e2fda83f1bcca90

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] gh-126662: naming consistency for `signal.ItimerError` (GH-126712) (#137123)
Miss Islington (bot) [Sun, 27 Jul 2025 04:28:21 +0000 (06:28 +0200)] 
[3.13] gh-126662: naming consistency for `signal.ItimerError` (GH-126712) (#137123)

gh-126662: naming consistency for `signal.ItimerError` (GH-126712)
(cherry picked from commit d5fa437dfb50e2e47632cdc994e3257608688f30)

Co-authored-by: Stephen Morton <git@tungol.org>
2 weeks ago[3.13] Link to plaintext for "show source" links (GH-137131) (#137133)
Miss Islington (bot) [Sun, 27 Jul 2025 01:55:51 +0000 (03:55 +0200)] 
[3.13] Link to plaintext for "show source" links (GH-137131) (#137133)

Co-authored-by: ryan-duve <ryan-duve@users.noreply.github.com>
2 weeks ago[3.13] gh-131038: Use text=True in subprocesses in test_perf_profiler (GH-137117...
Miss Islington (bot) [Sat, 26 Jul 2025 17:24:32 +0000 (19:24 +0200)] 
[3.13] gh-131038: Use text=True in subprocesses in test_perf_profiler (GH-137117) (#137125)

2 weeks ago[3.13] gh-130522: Fix unraisable TypeError in threading at interpreter shutdown ...
Miss Islington (bot) [Fri, 25 Jul 2025 15:14:27 +0000 (17:14 +0200)] 
[3.13] gh-130522: Fix unraisable TypeError in threading at interpreter shutdown (GH-131537) (GH-137106)

gh-130522: Fix unraisable TypeError in threading at interpreter shutdown (GH-131537)
(cherry picked from commit cb93b6fc5ea525f8075cb53ec373356fec63903a)

Co-authored-by: Tyler Kennedy <tk@tkte.ch>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2 weeks ago[3.13] Fix Queue.shutdown docs for condition to unblock a join (gh-137088) (gh-137102)
Miss Islington (bot) [Fri, 25 Jul 2025 14:48:28 +0000 (16:48 +0200)] 
[3.13] Fix Queue.shutdown docs for condition to unblock a join (gh-137088) (gh-137102)

2 weeks ago[3.13] Fix docs for Queue.shutdown (gh-137028) (gh-137081)
Miss Islington (bot) [Thu, 24 Jul 2025 17:54:42 +0000 (19:54 +0200)] 
[3.13] Fix docs for Queue.shutdown (gh-137028) (gh-137081)

2 weeks ago[3.13] gh-136759: rename `lock.h` to `pylock.h` (GH-137041) (#137075)
AN Long [Thu, 24 Jul 2025 16:06:25 +0000 (01:06 +0900)] 
[3.13] gh-136759: rename `lock.h` to `pylock.h` (GH-137041) (#137075)

Rename `lock.h` to `pylock.h` to avoid conflicts with headers of other projects.
(cherry picked from commit ec02db5caa546cb4759999453bd6efc1d517b95c)

2 weeks ago[3.13] gh-136516: Mention installation artifacts as de-facto resources (GH-136419...
Miss Islington (bot) [Thu, 24 Jul 2025 07:01:12 +0000 (09:01 +0200)] 
[3.13] gh-136516: Mention installation artifacts as de-facto resources (GH-136419) (GH-137039)

Files like NUL on windows are, from `importlib.resources` point of
view, an artifact caused by installing to a filesystem directory.
Mention these.
(cherry picked from commit fac4964fdb2ae12969b485de496dd6d064fdbe99)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2 weeks ago[3.13] gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading...
Miss Islington (bot) [Wed, 23 Jul 2025 14:42:53 +0000 (16:42 +0200)] 
[3.13] gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading docs (GH-137042) (#137046)

gh-137043: mention `PyList_GET_ITEM` as unsafe borrowed API in free-threading docs (GH-137042)
(cherry picked from commit 38b936cc9912fc6847265917f94af53f0bf228e9)

Co-authored-by: Guido Imperiale <crusaderky@gmail.com>
2 weeks ago[3.13] gh-136437: Convert more ``os.path`` functions to positional-only in the docs...
Miss Islington (bot) [Tue, 22 Jul 2025 13:44:36 +0000 (15:44 +0200)] 
[3.13] gh-136437: Convert more ``os.path`` functions to positional-only in the docs (GH-136970) (#137001)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 weeks ago[3.13] gh-118350: Fix support of elements "textarea" and "title" in HTMLParser (GH...
Miss Islington (bot) [Tue, 22 Jul 2025 12:17:59 +0000 (14:17 +0200)] 
[3.13] gh-118350: Fix support of elements "textarea" and "title" in HTMLParser (GH-135310) (GH-136985)

(cherry picked from commit 4d02f31cdd45d81b95540d9076222b709d4f2335)

Co-authored-by: Timon Viola <44016238+timonviola@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2 weeks ago[3.13] gh-131531: Android test fixes (GH-136845) (#136963)
Miss Islington (bot) [Tue, 22 Jul 2025 11:27:02 +0000 (13:27 +0200)] 
[3.13] gh-131531: Android test fixes (GH-136845) (#136963)

Modifies the test runner script to no longer export the the HOST environment
variable, and to allow for tests that produce no Python output (output from the
Android console is still expected and required). These changes stem from
knowledge gained during developing a PR for Android support in cibuildwheel.
(cherry picked from commit 149bddcc216a398d71ec9497e9bf3ec03d6f2914)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2 weeks ago[3.13] gh-135661: Fix parsing attributes with whitespaces around the "=" separator...
Miss Islington (bot) [Tue, 22 Jul 2025 09:56:10 +0000 (11:56 +0200)] 
[3.13] gh-135661: Fix parsing attributes with whitespaces around the "=" separator in HTMLParser (GH-136908) (GH-136918)

This fixes a regression introduced in GH-135930.
(cherry picked from commit dee650189497735edbc08a54edabb5b06ef1bd09)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 weeks ago[3.13] gh-136859: Improve `StrEnum` docs (GH-136864) (#136937)
Miss Islington (bot) [Tue, 22 Jul 2025 08:32:30 +0000 (10:32 +0200)] 
[3.13] gh-136859: Improve `StrEnum` docs (GH-136864) (#136937)

Co-authored-by: Nacho Caballero <nachocab@gmail.com>
Co-authored-by: Nacho Caballero <nacho.caballero@astrazeneca.com>
Co-authored-by: Antonio Spadaro <ilovelinux@users.noreply.github.com>
2 weeks ago[3.13] gh-135468: Improve ``BaseHandler.http_error_default()`` parameter descriptions...
Miss Islington (bot) [Tue, 22 Jul 2025 08:29:59 +0000 (10:29 +0200)] 
[3.13] gh-135468: Improve ``BaseHandler.http_error_default()`` parameter descriptions (GH-136797) (#136826)

Co-authored-by: Valerio Gianella <49408327+valeriogianella@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2 weeks ago[3.13] gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946...
Miss Islington (bot) [Mon, 21 Jul 2025 18:28:55 +0000 (20:28 +0200)] 
[3.13] gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946) (#136948)

gh-136437: Document `os.path.dirname` as accepting only pos-only (GH-136946)
(cherry picked from commit 322442945084ea9055f86a17fa5096b11ba5b344)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 weeks ago[3.13] gh-136437: Document some `os.path` functions as requiring pos-only (GH-136812...
Miss Islington (bot) [Mon, 21 Jul 2025 18:07:56 +0000 (20:07 +0200)] 
[3.13] gh-136437: Document some `os.path` functions as requiring pos-only (GH-136812) (#136945)

gh-136437: Document some `os.path` functions as requiring pos-only (GH-136812)
(cherry picked from commit b5428bb0e786f5b67c6077472c0068cadd0b5ea9)

Co-authored-by: sobolevn <mail@sobolevn.me>
2 weeks ago[3.13] Pedantic rewording of why relative importing doesn't work in main modules...
Miss Islington (bot) [Mon, 21 Jul 2025 16:58:32 +0000 (18:58 +0200)] 
[3.13] Pedantic rewording of why relative importing doesn't work in main modules (GH-136846) (#136941)

Pedantic rewording of why relative importing doesn't work in main modules (GH-136846)

Pedantically reword the section about relative imports and main modules.
(cherry picked from commit 4b68289ca6954b8d135e2ee2344e67fae38239fd)

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
2 weeks ago[3.13] gh-135148: Correctly handle f/t strings with comments and debug expressions...
Lysandros Nikolaou [Mon, 21 Jul 2025 14:54:29 +0000 (16:54 +0200)] 
[3.13] gh-135148: Correctly handle f/t strings with comments and debug expressions (#135198) (#136899)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2 weeks ago[3.13] gh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small...
Miss Islington (bot) [Mon, 21 Jul 2025 09:21:30 +0000 (11:21 +0200)] 
[3.13] gh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small (GH-134415) (#136911)

gh-134411: assert `PyLong_FromLong(x) != NULL` when `x` is known to be small (GH-134415)

Since `PyLong_From Long(PY_MONITORING_DEBUGGER_ID)` falls to `small_int` case and can't return `NULL`. Added `assert`s for extra confidence.
https://github.com/python/cpython/issues/134411#issuecomment-2897653868
(cherry picked from commit cf19b6435d02dd7be11b84a44f4a8a9f1a935b15)

Co-authored-by: Sergey Muraviov <smurav@mail.ru>
2 weeks ago[3.13] gh-136882: Update stale link in the basic logging tutorial. (GH-136885) (...
Miss Islington (bot) [Mon, 21 Jul 2025 09:04:28 +0000 (11:04 +0200)] 
[3.13] gh-136882: Update stale link in the basic logging tutorial. (GH-136885) (#136906)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 weeks ago[3.13] gh-86608: Improve and restructure tarfile examples (GH-121771) (#136867)
Miss Islington (bot) [Sun, 20 Jul 2025 13:16:26 +0000 (15:16 +0200)] 
[3.13] gh-86608: Improve and restructure tarfile examples (GH-121771) (#136867)

gh-86608: Improve and restructure tarfile examples (GH-121771)

Add an example on how to write a tarfile to stdout; general improvements.
(cherry picked from commit cc81b4e501138b5793d419c81c3a2859a17207a7)

Co-authored-by: Dominic H <dom@dominic.sk>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 weeks ago[3.13] gh-130655: gettext: Add fallback testcase (GH-136857) (#136863)
Miss Islington (bot) [Sun, 20 Jul 2025 12:30:09 +0000 (14:30 +0200)] 
[3.13] gh-130655: gettext: Add fallback testcase (GH-136857) (#136863)

gh-130655: gettext: Add fallback testcase (GH-136857)
(cherry picked from commit c6e6fe92cd8b90d546652764e3eaf1631da16f8f)

Co-authored-by: Dominic H <dom@dominic.sk>
3 weeks ago[3.13] gh-136854: Exit on error in `make venv` (GH-136856) (#136861)
Miss Islington (bot) [Sun, 20 Jul 2025 12:14:42 +0000 (14:14 +0200)] 
[3.13] gh-136854: Exit on error in `make venv` (GH-136856) (#136861)

Co-authored-by: Nacho Caballero <nachocab@gmail.com>
Co-authored-by: Nacho Caballero <nacho.caballero@astrazeneca.com>
3 weeks ago[3.13] Doc/c-api/memory.rst: extend --without-pymalloc doc with ASan information...
Miss Islington (bot) [Sun, 20 Jul 2025 08:55:40 +0000 (10:55 +0200)] 
[3.13] Doc/c-api/memory.rst: extend --without-pymalloc doc with ASan information (GH-136790) (#136799)

Extends the documentation for disabling pymalloc with the `--without-pymalloc` flag regarding why it is worth to use it when enabling AddressSanitizer for Python build (which is done, e.g., in CPython's CI builds).

(cherry picked from commit d19bb4471331ca2cb87b86e4c904bc9a2bafb044)

Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 weeks ago[3.13] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136842)
Miss Islington (bot) [Sat, 19 Jul 2025 19:01:42 +0000 (21:01 +0200)] 
[3.13] gh-136764: improve comment in enum.verify.__call__ (GH-136774) (GH-136842)

gh-136764: improve comment in enum.verify.__call__ (GH-136774)
(cherry picked from commit 6a1c93af806d0ca5d3fb86cd183d00013bbf28d1)

Co-authored-by: Saurav Singh <sauravsinghshakya@yahoo.com>
3 weeks ago[3.13] gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794...
Miss Islington (bot) [Sat, 19 Jul 2025 14:50:37 +0000 (16:50 +0200)] 
[3.13] gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794) (#136828)

gh-136752: Clarify documentation for ``IPv{N}Address.is_reserved`` (GH-136794)
(cherry picked from commit 6293d8a1a648a498b7ac899631b74fa25c71c1ac)

Co-authored-by: Matthieu Lienart <50069805+mlnrt@users.noreply.github.com>
Co-authored-by: Matthieu Lienart <matthieu.lienart@axians.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 weeks ago[3.13] gh-54732: Make argparse error caused by empty rows in option files explicit...
Miss Islington (bot) [Sat, 19 Jul 2025 14:28:57 +0000 (16:28 +0200)] 
[3.13] gh-54732: Make argparse error caused by empty rows in option files explicit (GH-136795) (#136819)

gh-54732: Make argparse error caused by empty rows in option files explicit (GH-136795)
(cherry picked from commit 8ffc3ef01e83ffe629c6107082677de4d23974d5)

Co-authored-by: jdunter <2ve@mailbox.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
3 weeks ago[3.13] gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803...
Miss Islington (bot) [Sat, 19 Jul 2025 12:58:08 +0000 (14:58 +0200)] 
[3.13] gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803) (GH-136807)

gh-135730: Clarify multiprocessing.Queue close() documentation (GH-136803)

Add a copy of the text from SimpleQueue.close()

---------
(cherry picked from commit f575588ccf27d8d54a1e99cfda944f2614b3255c)

Co-authored-by: aggshruti99 <aggshruti99@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
3 weeks ago[3.13] gh-136769: Include fixed-width integers in the fundamental data types table...
Miss Islington (bot) [Sat, 19 Jul 2025 10:25:37 +0000 (12:25 +0200)] 
[3.13] gh-136769: Include fixed-width integers in the fundamental data types table (GH-136784) (#136786)

gh-136769: Include fixed-width integers in the fundamental data types table (GH-136784)

Fixed-sized types, like ``c_int32``, are currently missing from the fundamental data types table
in the ``ctypes`` documentation. This commit adds them, and  notes that ``c_[u]int8`` is an alias
of ``c_[u]byte``.
(cherry picked from commit acefb978dcb5dd554e3c49a3015ee5c2ad6bfda1)

Co-authored-by: Sina Zel taat <111974143+SZeltaat@users.noreply.github.com>
3 weeks ago[3.13] Docs: Improve example for ``itertools.batched()`` (GH-136775) (#136779)
Miss Islington (bot) [Sat, 19 Jul 2025 09:35:48 +0000 (11:35 +0200)] 
[3.13] Docs: Improve example for ``itertools.batched()`` (GH-136775) (#136779)

Docs: Improve example for ``itertools.batched()`` (GH-136775)

The current example `batched('ABCDEFG', n=3) → ABC DEF G` can confuse readers because both, the size of the tuples and the number of tuples are 3.
By using a batch size of n=2, it is clearer that the `n` argument refers to the size of the resulting tuples.
I.e. the new example is: `batched('ABCDEFG', n=2) → AB CD EF G`
(cherry picked from commit 3eecc72ac70943f7e33297eea17803af15322c88)

Co-authored-by: RafaelWO <38643099+RafaelWO@users.noreply.github.com>
3 weeks ago[3.13] parser_generator.py typo - keywods -> keywords (GH-135014) (#136773)
Miss Islington (bot) [Sat, 19 Jul 2025 09:17:27 +0000 (11:17 +0200)] 
[3.13] parser_generator.py typo - keywods -> keywords (GH-135014) (#136773)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
3 weeks ago[3.13] gh-136697: Use the standard audit event format for sys.monitor… (#136750)
Tian Gao [Thu, 17 Jul 2025 18:43:20 +0000 (11:43 -0700)] 
[3.13] gh-136697: Use the standard audit event format for sys.monitor… (#136750)

* [3.13] gh-136697: Use the standard audit event format for sys.monitoring docs (GH-136747)
(cherry picked from commit 28937d3a21cf8168c853ae43374a8287c21f71c9)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
3 weeks ago[3.13] Improved venv docs to indicate that isolation is the default. (GH-136698)...
Facundo Batista [Thu, 17 Jul 2025 10:25:31 +0000 (07:25 -0300)] 
[3.13] Improved venv docs to indicate that isolation is the default. (GH-136698) (GH-136725)

(cherry picked from commit 8e2f4b448380b4c835442534d566618f06e32573)

3 weeks ago[3.13] gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704...
Miss Islington (bot) [Wed, 16 Jul 2025 16:40:22 +0000 (18:40 +0200)] 
[3.13] gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704) (GH-136724)

gh-126548: Add a thread-unsafety warning for `importlib.reload()` (GH-136704)
(cherry picked from commit 69d8fe50ddc4dbe757c9929a532e2e882f0261ba)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
3 weeks ago[3.13] gh-136710: Fix bad indentation in `os.chdir` docstring (GH-136721)
Zachary Ware [Wed, 16 Jul 2025 16:33:46 +0000 (11:33 -0500)] 
[3.13] gh-136710: Fix bad indentation in `os.chdir` docstring (GH-136721)

(cherry picked from commit bde808ad6ba5eee8a6201983cf071449d7ce7e39)

Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
3 weeks ago[3.13] Add `.gram` file to the `.editorconfig` (GH-136680) (#136715)
sobolevn [Wed, 16 Jul 2025 15:05:47 +0000 (18:05 +0300)] 
[3.13] Add `.gram` file to the `.editorconfig` (GH-136680) (#136715)

(cherry picked from commit 2f0db9b05f0598548c0c136571c31065ecf961e5)

3 weeks ago[3.13] Fix the doctest.testmod() docstring (GH-136675) (GH-136691)
Miss Islington (bot) [Tue, 15 Jul 2025 17:04:57 +0000 (19:04 +0200)] 
[3.13] Fix the doctest.testmod() docstring (GH-136675) (GH-136691)

__test__ = None is not supported since Python 2.4.
(cherry picked from commit cb59eaefeda5ff44ac0c742bff2b8afc023be313)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.13] Fix index entry and anchor for module.__test__ (GH-136674) (GH-136689)
Miss Islington (bot) [Tue, 15 Jul 2025 15:59:45 +0000 (17:59 +0200)] 
[3.13] Fix index entry and anchor for module.__test__ (GH-136674) (GH-136689)

It was "doctest.module attribute". Now it is "module attribute".
(cherry picked from commit 7689407fa4406ab79d7e9e02363f50be4ec35b5e)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
3 weeks ago[3.13] gh-136682: Remove incorrect statement that `os.path.samestat` accepts file...
Miss Islington (bot) [Tue, 15 Jul 2025 12:56:33 +0000 (14:56 +0200)] 
[3.13] gh-136682: Remove incorrect statement that `os.path.samestat` accepts file-like objects (GH-136683) (#136685)

gh-136682: Remove incorrect statement that `os.path.samestat` accepts file-like objects (GH-136683)
(cherry picked from commit 7e10a103dfe52feb0ef3d541e08abc2640838101)

Co-authored-by: Ran Benita <ran@unusedvar.com>
3 weeks ago[3.13] gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) (#136679)
Miss Islington (bot) [Tue, 15 Jul 2025 12:10:10 +0000 (14:10 +0200)] 
[3.13] gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) (#136679)

gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676)
(cherry picked from commit a02cf19deed353d1e0e7564468f10aced61c12e8)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>