]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 months ago[3.14] gh-128051: Fix tests if sys.float_repr_style is 'legacy' (GH-135908) (#136025)
Miss Islington (bot) [Fri, 27 Jun 2025 10:26:51 +0000 (12:26 +0200)] 
[3.14] gh-128051: Fix tests if sys.float_repr_style is 'legacy' (GH-135908) (#136025)

gh-128051: Fix tests if sys.float_repr_style is 'legacy' (GH-135908)
(cherry picked from commit f3aec60d7a01c5f085a3ef2d6670d46b42b8ddd3)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 months ago[3.14] gh-53203: Fix strptime() for %c, %x and %X formats on some locales (GH-135971...
Miss Islington (bot) [Fri, 27 Jun 2025 08:16:31 +0000 (10:16 +0200)] 
[3.14] gh-53203: Fix strptime() for %c, %x and %X formats on some locales (GH-135971) (GH-136019)

* Add detection of decimal non-ASCII alt digits.
* Add support of non-decimal alt digits on locale lzh_TW.
* Accept only numbers in correct range if alt digits are known.
* Fix bug in detecting the position of the week day name on locales byn_ER and wal_ET.
* Fix support of single-digit hour on locales ar_SA and bg_BG.
* Add support for %T, %R, %r, %C, %OC.
* Prepare code to use nl_langinfo().

(cherry picked from commit 07183ebce36462aaaea4d20e0502b20821dd2682)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-135966: Modify iOS testbed to make app_packages a site directory (GH-135967...
Miss Islington (bot) [Fri, 27 Jun 2025 05:30:51 +0000 (07:30 +0200)] 
[3.14] gh-135966: Modify iOS testbed to make app_packages a site directory (GH-135967) (#136012)

The iOS testbed now treats the app_packages folder as a site folder. This ensures it is
on the path, but also ensures any .pth files are processed on app startup.
(cherry picked from commit b38810bab76c11ea09260a817b3354aebc2af580)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
4 months ago[3.14] gh-135968: Add iOS binary stubs for strip (GH-135970) (#136014)
Miss Islington (bot) [Fri, 27 Jun 2025 05:24:55 +0000 (07:24 +0200)] 
[3.14] gh-135968: Add iOS binary stubs for strip (GH-135970) (#136014)

Adds iOS binary stubs for invoking `strip`
(cherry picked from commit 0c6c09b7377e10dcf80844c961b578fbdc6f5375)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
4 months ago[3.14] Docs: Fix duplicate word typos (GH-135958) (GH-136007)
Miss Islington (bot) [Fri, 27 Jun 2025 00:05:53 +0000 (02:05 +0200)] 
[3.14] Docs: Fix duplicate word typos (GH-135958) (GH-136007)

(cherry picked from commit 34ce1920ca33c11ca2c379ed0ef30a91010bef4f)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
4 months ago[3.14] gh-135995: Fix missing char in palmos encoding (GH-135990) (#136001)
Miss Islington (bot) [Thu, 26 Jun 2025 23:01:43 +0000 (01:01 +0200)] 
[3.14] gh-135995: Fix missing char in palmos encoding (GH-135990) (#136001)

gh-135995: Fix missing char in palmos encoding (GH-135990)

0x8b correctly encodes to ‹, but 0x9b was mistakenly marked as a control character instead of ›.
---------
(cherry picked from commit 58a42dea97f4fa0df38ef4a95a2ede65e0549f71)

Co-authored-by: Nathan Korth <nkorth@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 months ago[3.14] IDLE: Update NEWS2x.txt with 2.7.0 release date (GH-129908) (#135999)
Miss Islington (bot) [Thu, 26 Jun 2025 20:46:14 +0000 (22:46 +0200)] 
[3.14] IDLE: Update NEWS2x.txt with 2.7.0 release date (GH-129908) (#135999)

IDLE: Update NEWS2x.txt with 2.7.0 release date (GH-129908)
(cherry picked from commit 642e5dfc74310d15bb81f8e94167590380a5fbfb)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] GH-133600: Backport file reorg of `Tools/wasm/wasi` (GH-135950)
Brett Cannon [Thu, 26 Jun 2025 19:24:33 +0000 (12:24 -0700)] 
[3.14] GH-133600: Backport file reorg of `Tools/wasm/wasi` (GH-135950)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-129958: New syntax error in format spec applies to both f-strings and t...
Miss Islington (bot) [Thu, 26 Jun 2025 16:40:09 +0000 (18:40 +0200)] 
[3.14] gh-129958: New syntax error in format spec applies to both f-strings and t-strings (GH-135570) (#135982)

(cherry picked from commit fb9e292919d82326acea456aa071c9af6aff5626)

Co-authored-by: Dylan <dylwil3@gmail.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
4 months ago[3.14] gh-91555: add warning to docs about possibility of deadlock/infinite recursion...
Miss Islington (bot) [Thu, 26 Jun 2025 14:25:36 +0000 (16:25 +0200)] 
[3.14] gh-91555: add warning to docs about possibility of deadlock/infinite recursion (GH-135954) (GH-135988)

(cherry picked from commit a4625d597f9fc2d083fbb9c22d3ffcec73b2061a)

4 months ago[3.14] gh-135110: Fix misleading `generator.close()` documentation (GH-135152) (GH...
Miss Islington (bot) [Thu, 26 Jun 2025 13:34:33 +0000 (15:34 +0200)] 
[3.14] gh-135110: Fix misleading `generator.close()` documentation (GH-135152) (GH-135985)

gh-135110: Fix misleading `generator.close()` documentation (GH-135152)

The documentation incorrectly stated that generator.close() 'raises' a
GeneratorExit exception. This was misleading because the method doesn't
raise the exception to the caller - it sends the exception internally
to the generator and returns None.
(cherry picked from commit 0d76dccc3b4376ba075a1737f58809e3d83aaaa3)

Co-authored-by: Connor Denihan <188690869+cdenihan@users.noreply.github.com>
4 months ago[3.14] gh-135965: Delete duplicate word in isolating-extensions howto (GH-135964...
Miss Islington (bot) [Thu, 26 Jun 2025 11:47:17 +0000 (13:47 +0200)] 
[3.14] gh-135965: Delete duplicate word in isolating-extensions howto (GH-135964) (#135977)

gh-135965: Delete duplicate word in isolating-extensions howto (GH-135964)

Change use use to use.
(cherry picked from commit ffb2a02f98d904505c8a82d8540c36dee4c67eed)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.14] gh-125206: Make _Py_FFI_SUPPORT_C_COMPLEX private (GH-135932) (GH-135973)
Miss Islington (bot) [Thu, 26 Jun 2025 10:13:47 +0000 (12:13 +0200)] 
[3.14] gh-125206: Make _Py_FFI_SUPPORT_C_COMPLEX private (GH-135932) (GH-135973)

(cherry picked from commit 9193efdeab4596f987528ba278afa2eca93a9e8a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-135755: Move `PyFunction_GET_BUILTINS` to the private API (GH-135938) ...
Miss Islington (bot) [Thu, 26 Jun 2025 10:08:28 +0000 (12:08 +0200)] 
[3.14] gh-135755: Move `PyFunction_GET_BUILTINS` to the private API (GH-135938) (GH-135972)

(cherry picked from commit 10a3d431881bb9169abde97f85ea6a670e1ef3cc)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months ago[3.14] gh-131591: Add Py_ prefix to MAX_SCRIPT_PATH_SIZE; remove unprefixed struct...
Miss Islington (bot) [Thu, 26 Jun 2025 08:23:39 +0000 (10:23 +0200)] 
[3.14] gh-131591: Add Py_ prefix to MAX_SCRIPT_PATH_SIZE; remove unprefixed struct tag (GH-135924) (GH-135969)

Names/macros defined in public headers should have `Py`/`_Py` prefixes.
(cherry picked from commit a1da208eec3028b1ecae804d4c0dc6b43cdddae9)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-135956: Remove duplicate word in _pydatetime docstring (GH-135957) (#135962)
Miss Islington (bot) [Thu, 26 Jun 2025 04:09:11 +0000 (06:09 +0200)] 
[3.14] gh-135956: Remove duplicate word in _pydatetime docstring (GH-135957) (#135962)

gh-135956: Remove duplicate word in _pydatetime docstring (GH-135957)

_pydatetime.isoformat docstring repeats 'giving'.
(cherry picked from commit e3ea6f2b3b084700a34ce392f5cf897407469b3a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 months ago[3.14] Add whatsnew text for warnings module changes. (gh-135869) (gh-135961)
Miss Islington (bot) [Thu, 26 Jun 2025 03:09:09 +0000 (05:09 +0200)] 
[3.14] Add whatsnew text for warnings module changes. (gh-135869) (gh-135961)

Add whatsnew text for warnings module changes. (gh-135869)
(cherry picked from commit 1f5e23fd7015a8f7b14d0181ec83efa95c5d5b68)

Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
4 months ago[3.14] gh-135721: skip `test_trashcan_python_class` on wasm buildbots with stack...
Miss Islington (bot) [Wed, 25 Jun 2025 23:02:39 +0000 (01:02 +0200)] 
[3.14] gh-135721: skip `test_trashcan_python_class` on wasm buildbots with stack overflow (GH-135766) (GH-135955)

gh-135721: skip `test_trashcan_python_class` on wasm buildbots with stack overflow (GH-135766)
(cherry picked from commit 3fb6cfe7a95081e6775ad2dca845713a3ea4c799)

Co-authored-by: Pastukhov Nikita <diementros@yandex.ru>
4 months ago[3.14] Docs: Fix indentation in `slice` class of `functions.rst` (GH-134393) (#135948)
Miss Islington (bot) [Wed, 25 Jun 2025 17:52:59 +0000 (19:52 +0200)] 
[3.14] Docs: Fix indentation in `slice` class of `functions.rst` (GH-134393) (#135948)

Docs: Fix indentation in `slice` class of `functions.rst` (GH-134393)

Paragraph should not be under `slice.step`. It applies to the whole class.

(cherry picked from commit 6227662ff3bf838d31e9441eda935d24733d705a)

Co-authored-by: Rob Reynolds <13379223+reynoldsnlp@users.noreply.github.com>
4 months ago[3.14] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout...
Miss Islington (bot) [Wed, 25 Jun 2025 17:07:07 +0000 (19:07 +0200)] 
[3.14] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout (gh-135872) (gh-135946)

The free threading build could spin unnecessarily on `_Py_yield()` if the initial
compare and swap failed.
(cherry picked from commit cbfaf41caf135b8598a560854cd59e992a2ccfed)

Co-authored-by: Joseph Tibbertsma <josephtibbertsma@gmail.com>
4 months ago[3.14] gh-91555: Revert disabling of logger while handling log record. (GH-135858...
Miss Islington (bot) [Wed, 25 Jun 2025 17:03:13 +0000 (19:03 +0200)] 
[3.14] gh-91555: Revert disabling of logger while handling log record. (GH-135858) (GH-135910)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
4 months ago[3.14] gh-135839: Fix `module_traverse` and `module_clear` in subinterp modules ...
Miss Islington (bot) [Wed, 25 Jun 2025 14:42:57 +0000 (16:42 +0200)] 
[3.14] gh-135839: Fix `module_traverse` and `module_clear` in subinterp modules (GH-135937) (#135939)

gh-135839: Fix `module_traverse` and `module_clear` in subinterp modules (GH-135937)
(cherry picked from commit bcc2cbaa7f112323939e853ed69fd82f19568ccf)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] Docs: Add cross-reference for `positional_item` in the `calls` productionlist...
Miss Islington (bot) [Wed, 25 Jun 2025 14:30:42 +0000 (16:30 +0200)] 
[3.14] Docs: Add cross-reference for `positional_item` in the `calls` productionlist (GH-129977) (GH-135940)

Docs: Add cross-reference for `positional_item` in the `calls` productionlist (GH-129977)

Add missing hyperlink for `positional_item`
(cherry picked from commit d2154912b3b10823c138e904e74f2a1e7e7ca96c)

Co-authored-by: HarryLHW <123lhw321@gmail.com>
4 months ago[3.14] gh-131591: Make --without-remote-debug work (GH-135925) (GH-135931)
Miss Islington (bot) [Wed, 25 Jun 2025 12:08:27 +0000 (14:08 +0200)] 
[3.14] gh-131591: Make --without-remote-debug work (GH-135925) (GH-135931)

gh-131591: Make --without-remote-debug work (GH-135925)

The feature is checked using `defined(Py_REMOTE_DEBUG)`; defining
the macro (even as `0`) enables it.
(cherry picked from commit c2f2fd4eca3b342e781355f9b9e716827fc81a5b)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-135755: Move SPECIAL_ constants to a private header (GH-135922) (GH-135926)
Petr Viktorin [Wed, 25 Jun 2025 11:36:46 +0000 (13:36 +0200)] 
[3.14] gh-135755: Move SPECIAL_ constants to a private header (GH-135922) (GH-135926)

Macros without a `Py`/`_Py` prefix should not be defined in public headers.
(cherry picked from commit 1b1ae82fab0093924b8b89eb1c7eea11d7be7b18)

4 months ago[3.14] gh-135839: Fix `module_traverse` and `module_clear` in `_interpchannelsmodule...
Miss Islington (bot) [Wed, 25 Jun 2025 09:20:29 +0000 (11:20 +0200)] 
[3.14] gh-135839: Fix `module_traverse` and `module_clear` in `_interpchannelsmodule` (GH-135840) (#135918)

gh-135839: Fix `module_traverse` and `module_clear` in `_interpchannelsmodule` (GH-135840)
(cherry picked from commit dd59c786cfb1018eb5abe877bfa7265ea9a3c2b9)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] gh-135755: Docs: C API: Document missing `PyFunction_GET*` macros (GH-135762...
Miss Islington (bot) [Wed, 25 Jun 2025 08:50:56 +0000 (10:50 +0200)] 
[3.14] gh-135755: Docs: C API: Document missing `PyFunction_GET*` macros (GH-135762) (GH-135916)

gh-135755: Docs: C API: Document missing `PyFunction_GET*` macros (GH-135762)

(cherry picked from commit ca87a47b3d92aabaefbbe79c0493d66602184b41)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-135855: Raise TypeError When Passing Non-dict Object to `_interpreters...
Miss Islington (bot) [Tue, 24 Jun 2025 19:19:31 +0000 (21:19 +0200)] 
[3.14] gh-135855: Raise TypeError When Passing Non-dict Object to `_interpreters.set___main___attrs` (gh-135900)

(cherry picked from commit 4e6f0d116, AKA gh-135856)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
4 months ago[3.14] gh-135805: Document the X option and env var for controlling thread-local...
Miss Islington (bot) [Tue, 24 Jun 2025 17:33:15 +0000 (19:33 +0200)] 
[3.14] gh-135805: Document the X option and env var for controlling thread-local bytecode (GH-135868) (#135897)

gh-135805: Document the X option and env var for controlling thread-local bytecode (GH-135868)

Document the X option and env var for controlling thread-local bytecode.
(cherry picked from commit fea5ccc55d8486300beb1d0254da030a4da10394)

Co-authored-by: mpage <mpage@meta.com>
4 months ago[3.14] gh-135878: Fix crash in `types.SimpleNamespace.__repr__` (GH-135889) (#135896)
Miss Islington (bot) [Tue, 24 Jun 2025 16:58:57 +0000 (18:58 +0200)] 
[3.14] gh-135878: Fix crash in `types.SimpleNamespace.__repr__` (GH-135889) (#135896)

gh-135878: Fix crash in `types.SimpleNamespace.__repr__` (GH-135889)
(cherry picked from commit b3ab94acd308591bbdf264f1722fedc7ee25d6fa)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months ago[3.14] gh-135487: fix `reprlib.Repr.repr_int` when given very large integers (GH...
Miss Islington (bot) [Tue, 24 Jun 2025 12:02:02 +0000 (14:02 +0200)] 
[3.14] gh-135487: fix `reprlib.Repr.repr_int` when given very large integers (GH-135506) (#135887)

gh-135487: fix `reprlib.Repr.repr_int` when given very large integers (GH-135506)
(cherry picked from commit e5f03b94b6d4decbf433d385f692c1b8d9b7e88d)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] gh-135494: Fix python -m test --pgo -x test_re (GH-135713) (#135880)
Miss Islington (bot) [Tue, 24 Jun 2025 10:48:10 +0000 (12:48 +0200)] 
[3.14] gh-135494: Fix python -m test --pgo -x test_re (GH-135713) (#135880)

gh-135494: Fix python -m test --pgo -x test_re (GH-135713)

Fix regrtest to support excluding tests from --pgo tests.
(cherry picked from commit 15c6d63fe6fc62c6d78d2fad81965a8e6f7b7b98)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 months ago[3.14] gh-135648: Document that `shutil.copyfileobj` doesn't flush (GH-135737) (...
Miss Islington (bot) [Tue, 24 Jun 2025 01:22:07 +0000 (03:22 +0200)] 
[3.14] gh-135648: Document that `shutil.copyfileobj` doesn't flush (GH-135737) (#135873)

Adds a note about flush/close on copyfileobj, and updates
the Emscripten build script to follow documented advice.
(cherry picked from commit 34393cbdd46fd965de86f1e7bc89ab111f506723)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
4 months ago[3.14] Fix example according to PEP 750 in "What's new in 3.14" (GH-134727) (GH-135870)
Miss Islington (bot) [Mon, 23 Jun 2025 23:42:04 +0000 (01:42 +0200)] 
[3.14] Fix example according to PEP 750 in "What's new in 3.14" (GH-134727) (GH-135870)

Fix example according to PEP 750 in "What's new in 3.14" (GH-134727)

A redundant extra part was written. Added a closing tag, to match the usage in PEP 750.
(cherry picked from commit 2793b68f758c10fb63b264787f10d46a71fc8086)

Co-authored-by: Vincent Poulailleau <vpoulailleau@gmail.com>
4 months ago[3.14] Docs: Use `arguments` to replace `args` in `argparse.rst` (GH-135510) (GH...
Miss Islington (bot) [Mon, 23 Jun 2025 22:59:24 +0000 (00:59 +0200)] 
[3.14] Docs: Use `arguments` to replace `args` in `argparse.rst` (GH-135510) (GH-135866)

Docs: Use `arguments` to replace `args` in `argparse.rst` (GH-135510)
(cherry picked from commit caad163b691b2343d823541cfbf741f481ee9f3e)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
4 months ago[3.14] Bump mypy to 1.16.1 (GH-135720) (#135848)
Miss Islington (bot) [Mon, 23 Jun 2025 13:09:24 +0000 (15:09 +0200)] 
[3.14] Bump mypy to 1.16.1 (GH-135720) (#135848)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987...
Miss Islington (bot) [Mon, 23 Jun 2025 10:53:55 +0000 (12:53 +0200)] 
[3.14] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987) (#135841)

gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987)

Using Ubuntu 24.04 on the Windows Subsystem for Linux, perf will raise a
`PermissionError` instead of `FileNotFoundError`. This commit modifies
the tests to catch that.
(cherry picked from commit 6ab842fce50a6125797bcddfc4a4b2622aa6c6a9)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
4 months ago[3.14] gh-89488: Add warning about `Py_BuildValue("p")` needing exact `int` (GH-13561...
Miss Islington (bot) [Mon, 23 Jun 2025 10:41:39 +0000 (12:41 +0200)] 
[3.14] gh-89488: Add warning about `Py_BuildValue("p")` needing exact `int` (GH-135610) (GH-135843)

(cherry picked from commit 6aa0826ed7688e5f40742cdcaf57420b284e194f)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] patchcheck: use URL paths to identify upstream remote (GH-135806) (#135808)
Miss Islington (bot) [Mon, 23 Jun 2025 09:56:06 +0000 (11:56 +0200)] 
[3.14] patchcheck: use URL paths to identify upstream remote (GH-135806) (#135808)

Co-authored-by: Kattni <kattni@kattni.com>
4 months ago[3.14] gh-135815: skip `netrc` security checks if `os.getuid` is missing (GH-135816...
Miss Islington (bot) [Sun, 22 Jun 2025 20:12:57 +0000 (22:12 +0200)] 
[3.14] gh-135815: skip `netrc` security checks if `os.getuid` is missing (GH-135816) (#135825)

gh-135815: skip `netrc` security checks if `os.getuid` is missing (GH-135816)
(cherry picked from commit b57b619e34cdfc87b47943c988b0b4d69f8f1fe4)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] Docs: Remove unnecessary trailing backslashes (GH-135781) (GH-135791)
Miss Islington (bot) [Sat, 21 Jun 2025 13:07:51 +0000 (15:07 +0200)] 
[3.14] Docs: Remove unnecessary trailing backslashes (GH-135781) (GH-135791)

Docs: Remove unnecessary trailing backslashes (GH-135781)

This fixes Sphinx's gettext extraction for translations.
(cherry picked from commit 6a16b3c440cf9ecabecd3e90f44310e3b0765780)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
4 months ago[3.14] gh-127146: Skip test_os.test_mode for Emscripten (GH-135764) (#135784)
Miss Islington (bot) [Sat, 21 Jun 2025 11:13:40 +0000 (13:13 +0200)] 
[3.14] gh-127146: Skip test_os.test_mode for Emscripten (GH-135764) (#135784)

Temporarily skip test_os.test_mode on Emscripten; this fails consistently
on the buildbot, but not on other test configurations. Reported as GH-135783
for follow up.
(cherry picked from commit f4911258a80409cb641f13578137475204ab43b5)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-135557: use atomic stores in `heapq` operations in free-threading (GH-13560...
Miss Islington (bot) [Sat, 21 Jun 2025 11:02:27 +0000 (13:02 +0200)] 
[3.14] gh-135557: use atomic stores in `heapq` operations in free-threading (GH-135601) (#135787)

gh-135557: use atomic stores in `heapq` operations in free-threading (GH-135601)
(cherry picked from commit 13cac833471885564cbfde72a4cbac64ade3137a)

Co-authored-by: Xuanteng Huang <44627253+xuantengh@users.noreply.github.com>
4 months ago[3.14] gh-135645: Added `supports_isolated_interpreters` to `sys.implementation`...
Miss Islington (bot) [Sat, 21 Jun 2025 08:21:50 +0000 (10:21 +0200)] 
[3.14] gh-135645: Added `supports_isolated_interpreters` to `sys.implementation` (GH-135667) (#135786)

gh-135645: Added `supports_isolated_interpreters` to `sys.implementation` (GH-135667)
(cherry picked from commit 8ca1e4d846e868a20834cf442c48a3648b558bbe)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
4 months ago[3.14] gh-135756: Fix nonexistent parameter in tkinter docs (GH-135770) (#135776)
Miss Islington (bot) [Fri, 20 Jun 2025 23:35:37 +0000 (01:35 +0200)] 
[3.14] gh-135756: Fix nonexistent parameter in tkinter docs (GH-135770) (#135776)

gh-135756: Fix nonexistent parameter in tkinter docs (GH-135770)

Remove nonexistent color parameter from tkinter.commondialog.Dialog.show() method documentation.
(cherry picked from commit 4ddf505d9982dc8afead8f52f5754eea5ebde623)

Co-authored-by: Marcell Perger <102254594+MarcellPerger1@users.noreply.github.com>
4 months ago[3.14] gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size...
Miss Islington (bot) [Fri, 20 Jun 2025 20:51:01 +0000 (22:51 +0200)] 
[3.14] gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size (gh-135775)

We weren't handling non-positive maxsize values (including the default) properly
in Queue.full().  This change fixes that and adjusts an associated assert.

(cherry picked from commit c5ea8e8e8, AKA gh-135724)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
4 months ago[3.14] Docs: Document `PyExceptionClass` functions in the C API (GH-135697) (GH-135757)
Miss Islington (bot) [Fri, 20 Jun 2025 14:03:46 +0000 (16:03 +0200)] 
[3.14] Docs: Document `PyExceptionClass` functions in the C API (GH-135697) (GH-135757)

Docs: Document `PyExceptionClass` functions in the C API (GH-135697)

* Docs: Document `PyExceptionClass_Name`

`PyExceptionClass_Name` is an undocumented function in the limited API.

* Document `PyExceptionClass_Check`
(cherry picked from commit 59963e866a1bb8128a50cd53d1b13eeab03df06e)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
4 months ago[3.14] gh-89083: add links to RFC 9562 sections in UUID docs (GH-135684) (#135747)
Miss Islington (bot) [Fri, 20 Jun 2025 11:09:14 +0000 (13:09 +0200)] 
[3.14] gh-89083: add links to RFC 9562 sections in UUID docs (GH-135684) (#135747)

gh-89083: add links to RFC 9562 sections in UUID docs (GH-135684)

We also sync the docs for UUIDv1 and UUIDv6 concerning the node address and clock sequence.

---------
(cherry picked from commit b881e3db1eb501980c43161d7361d8892c94ac81)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] gh-135532: update `Modules/_hacl/python_hacl_namespaces.h` (GH-135741) (#135745)
Miss Islington (bot) [Fri, 20 Jun 2025 11:00:37 +0000 (13:00 +0200)] 
[3.14] gh-135532: update `Modules/_hacl/python_hacl_namespaces.h` (GH-135741) (#135745)

gh-135532: update `Modules/_hacl/python_hacl_namespaces.h` (GH-135741)
(cherry picked from commit 57dba7c9a59ab345f859810bad6608a9d1a0fdd6)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] gh-135532: simplify handling of HACL* errors in `_hmac` (GH-135740) (#135743)
Miss Islington (bot) [Fri, 20 Jun 2025 09:22:29 +0000 (11:22 +0200)] 
[3.14] gh-135532: simplify handling of HACL* errors in `_hmac` (GH-135740) (#135743)

gh-135532: simplify handling of HACL* errors in `_hmac` (GH-135740)
(cherry picked from commit 2dbada179f1c7cfcfffceac4ac91902154b5a356)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] gh-135608: Add a null check for attribute promotion to fix a JIT crash (GH...
Ken Jin [Fri, 20 Jun 2025 07:24:25 +0000 (15:24 +0800)] 
[3.14] gh-135608: Add a null check for attribute promotion to fix a JIT crash (GH-135613) (#135739)

gh-135608: Add a null check for attribute promotion to fix a JIT crash (GH-135613)

Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
4 months ago[3.14] gh-127146: Add skip_emscripten_stack_overflow in a few places (GH-135722)...
Miss Islington (bot) [Thu, 19 Jun 2025 21:54:04 +0000 (23:54 +0200)] 
[3.14] gh-127146: Add skip_emscripten_stack_overflow in a few places (GH-135722) (#135733)

More tests that hit stack limits on some platforms.
(cherry picked from commit c8c13f8036051c2858956905769b7b9dfde4bbd7)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months agogh-135543: Emit sys.remote_exec audit event when sys.remote_exec is called (GH-135544)
Miss Islington (bot) [Thu, 19 Jun 2025 20:51:06 +0000 (22:51 +0200)] 
gh-135543: Emit sys.remote_exec audit event when sys.remote_exec is called (GH-135544)

(cherry picked from commit 1ddfe593200fec992d283a9b4d6ad2f1b535c018)

Co-authored-by: Nadeshiko Manju <me@manjusaka.me>
4 months ago[3.14] gh-135561: ensure that the GIL is held when handling an HACL* error in `_hmac...
Miss Islington (bot) [Thu, 19 Jun 2025 19:48:29 +0000 (21:48 +0200)] 
[3.14] gh-135561: ensure that the GIL is held when handling an HACL* error in `_hmac` (GH-135562) (#135725)

gh-135561: ensure that the GIL is held when handling an HACL* error in `_hmac` (GH-135562)
(cherry picked from commit c76568339867422eca35876cabf82c06a55bbf56)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.14] gh-135709: Fix two compile warnings on WASM buildbot (GH-135712) (#135723)
Miss Islington (bot) [Thu, 19 Jun 2025 16:14:08 +0000 (18:14 +0200)] 
[3.14] gh-135709: Fix two compile warnings on WASM buildbot (GH-135712) (#135723)

gh-135709: Fix two compile warnings on WASM buildbot (GH-135712)
(cherry picked from commit 9c3c02019cf0bc7792bbdd3a314e45642178e3b5)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] gh-135273: Unify `ZoneInfo.from_file` signatures (GH-135274) (#135716)
Miss Islington (bot) [Thu, 19 Jun 2025 15:14:14 +0000 (17:14 +0200)] 
[3.14] gh-135273: Unify `ZoneInfo.from_file` signatures (GH-135274) (#135716)

gh-135273: Unify `ZoneInfo.from_file` signatures (GH-135274)

Align `ZoneInfo.from_file` pure-Python signature with Argument Clinic signature.
(cherry picked from commit 7cc89496922b7edb033e2ed47550c7c9e2ae8525)

Co-authored-by: Andrii Hrimov <andrew.hrimov@gmail.com>
4 months ago[3.14] Docs: Add missing lines between regex and text (GH-134505) (GH-135718)
Miss Islington (bot) [Thu, 19 Jun 2025 15:07:12 +0000 (17:07 +0200)] 
[3.14] Docs: Add missing lines between regex and text (GH-134505) (GH-135718)

Docs: Add missing lines between regex and text (GH-134505)
(cherry picked from commit 754190287ece5a2e66684161aadafb18f5f44868)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
4 months ago[3.14] Docs: Emphasize parameter name in `pkgutil.iter_importers` (GH-135597) (GH...
Miss Islington (bot) [Thu, 19 Jun 2025 13:02:22 +0000 (15:02 +0200)] 
[3.14] Docs: Emphasize parameter name in `pkgutil.iter_importers` (GH-135597) (GH-135710)

Docs: Emphasize parameter name in `pkgutil.iter_importers` (GH-135597)
(cherry picked from commit ff639af8eee11e7ca09999b2724bc10652a00e5d)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
4 months ago[3.14] gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution (GH-135681) (#135704)
Miss Islington (bot) [Thu, 19 Jun 2025 10:06:57 +0000 (12:06 +0200)] 
[3.14] gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution (GH-135681) (#135704)

gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution (GH-135681)

Use 10 ms for CLOCK_RES instead of 100 ms to tolerate slow buildbots.
(cherry picked from commit 5c25c884b93eb79f640c47d6dba20f11fdf0ade4)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 months ago[3.14] Document that PyType_GetModuleByDef returns a borrowed reference (GH-135666...
Miss Islington (bot) [Thu, 19 Jun 2025 07:17:53 +0000 (09:17 +0200)] 
[3.14] Document that PyType_GetModuleByDef returns a borrowed reference (GH-135666) (GH-135701)

(cherry picked from commit 140731ff671395fb7a869c2784429c14dc83fb27)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-133485: Use interpreters.Interpreter in InterpreterPoolExecutor (gh-135695)
Miss Islington (bot) [Thu, 19 Jun 2025 00:23:12 +0000 (02:23 +0200)] 
[3.14] gh-133485: Use interpreters.Interpreter in InterpreterPoolExecutor (gh-135695)

Most importantly, this resolves the issues with functions and types defined in __main__.
It also expands the number of supported objects and simplifies the implementation.

(cherry picked from commit 725da50520, AKA gh-133957)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
4 months ago[3.14] gh-135450: Remove assertion in `_PyCode_CheckNoExternalState` (gh-135694)
Miss Islington (bot) [Wed, 18 Jun 2025 23:57:18 +0000 (01:57 +0200)] 
[3.14] gh-135450: Remove assertion in `_PyCode_CheckNoExternalState` (gh-135694)

The assertion reflected a misunderstanding of situations where "hidden" variables might exist,
namely generator expressions and comprehensions.

(cherry picked from commit 15f2bac02c5e, AKA gh-135466)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months agogh-134538: Add link to shutil.rmtree example in function docs (GH-135540)
Miss Islington (bot) [Wed, 18 Jun 2025 21:16:07 +0000 (23:16 +0200)] 
gh-134538: Add link to shutil.rmtree example in function docs (GH-135540)

(cherry picked from commit e9b647dd30d22cef465972d898a34c4b1bb6615d)

Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
4 months ago[3.14] gh-135641: Fix flaky `test_capi.test_lock_two_threads` test case (gh-135642...
Miss Islington (bot) [Wed, 18 Jun 2025 18:49:43 +0000 (20:49 +0200)] 
[3.14] gh-135641: Fix flaky `test_capi.test_lock_two_threads` test case (gh-135642) (gh-135687)

The mutex may have the `_Py_HAS_PARKED` bit set.
(cherry picked from commit 17ac3933c3c860e08f7963cf270116a39a063be7)

Co-authored-by: Sam Gross <colesbury@gmail.com>
4 months ago[3.14] Docs: Fix markups for emphasis (GH-135598) (GH-135685)
Miss Islington (bot) [Wed, 18 Jun 2025 17:39:06 +0000 (19:39 +0200)] 
[3.14] Docs: Fix markups for emphasis (GH-135598) (GH-135685)

Docs: Fix markups for emphasis (GH-135598)

The word emphasis character `_` is not supported as sphinx markup, so changed to `*`.
(cherry picked from commit 46c60e0d0b716e8e6f0b74a0f9d0542605b1efd4)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
4 months ago[3.14] gh-135376: Fix and improve test_random (GH-135377) (GH-135680)
Miss Islington (bot) [Wed, 18 Jun 2025 15:51:47 +0000 (17:51 +0200)] 
[3.14] gh-135376: Fix and improve test_random (GH-135377) (GH-135680)

* Remove duplicated code. Tests for Random and SystemRandom now share
  the code.
* Move implementation agnostic tests that was only run for SystemRandom,
  so they are now run for Random too.
* Add tests for __index__() support.
* Add tests for randint().
(cherry picked from commit c55512311b7cb8b7c27c19f56cd8f872be29aedc)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-135676: lexical analysis: Improve section on Numeric literals (GH-134850...
Miss Islington (bot) [Wed, 18 Jun 2025 14:40:28 +0000 (16:40 +0200)] 
[3.14] gh-135676: lexical analysis: Improve section on Numeric literals (GH-134850) (GH-135677)

gh-135676: lexical analysis: Improve section on Numeric literals (GH-134850)
(cherry picked from commit 21f3d15534c08d9a49d5c119a0e690855173fde4)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.14] gh-135646: Raise consistent `NameError` exceptions in `ForwardRef.evaluate...
Miss Islington (bot) [Wed, 18 Jun 2025 13:26:58 +0000 (15:26 +0200)] 
[3.14] gh-135646: Raise consistent `NameError` exceptions in `ForwardRef.evaluate()` (GH-135663) (#135673)

gh-135646: Raise consistent `NameError` exceptions in `ForwardRef.evaluate()` (GH-135663)
(cherry picked from commit 343719d98e60d28d6102002f8ad3fd9dc5a58bd1)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
4 months ago[3.14] gh-135335: flush stdout/stderr in forkserver after preloading modules (GH...
Miss Islington (bot) [Wed, 18 Jun 2025 12:42:18 +0000 (14:42 +0200)] 
[3.14] gh-135335: flush stdout/stderr in forkserver after preloading modules (GH-135338) (#135670)

gh-135335: flush stdout/stderr in forkserver after preloading modules (GH-135338)

If a preloaded module writes to stdout or stderr, and the stream is buffered,
child processes will inherit the buffered data after forking. Attempt to
prevent this by flushing the streams after preload.
(cherry picked from commit 9877d191f441741fc27ae5e7a6dd7ab6d4bcc6b7)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 months ago[3.14] gh-135627: Remove documentation for LOAD_CONST_IMMORTAL opcode (GH-135632...
Miss Islington (bot) [Wed, 18 Jun 2025 07:27:26 +0000 (09:27 +0200)] 
[3.14] gh-135627: Remove documentation for LOAD_CONST_IMMORTAL opcode (GH-135632) (GH-135649)

gh-135627: Remove documentation for LOAD_CONST_IMMORTAL opcode (GH-135632)

Remove documentation for LOAD_CONST_IMMORTAL opcode
(cherry picked from commit 711700259135b5f9e21c56b199f4ebc0048b18b4)

Co-authored-by: Vladyslav Lazoryk <80263725+lazorikv@users.noreply.github.com>
4 months ago[3.14] gh-134632: Add iOS/Android test skip for C API check for headers. (GH-135656...
Miss Islington (bot) [Wed, 18 Jun 2025 06:48:03 +0000 (08:48 +0200)] 
[3.14] gh-134632: Add iOS/Android test skip for C API check for headers. (GH-135656) (#135657)

iOS and Android don't ship headers in the testbed, so we can't test for their existence.
(cherry picked from commit 1c7efaf58a62d848421b2da97360ba3df7d7856b)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
4 months ago[3.14] gh-127146: Enable large files on Emscripten (GH-135635) (#135655)
Miss Islington (bot) [Wed, 18 Jun 2025 04:53:01 +0000 (06:53 +0200)] 
[3.14] gh-127146: Enable large files on Emscripten (GH-135635) (#135655)

Large files have been fully supported by Emscripten for a long time.
(cherry picked from commit 01c80b265060f016d3534eb74d540363808804e1)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-119180: Only fetch globals and locals if necessary in `annotationlib.get_an...
Miss Islington (bot) [Wed, 18 Jun 2025 04:24:08 +0000 (06:24 +0200)] 
[3.14] gh-119180: Only fetch globals and locals if necessary in `annotationlib.get_annotations()` (GH-135644) (#135654)

gh-119180: Only fetch globals and locals if necessary in `annotationlib.get_annotations()` (GH-135644)
(cherry picked from commit 504ae606e192a88805996a7e934f38bc5cb7f28a)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
4 months ago[3.14] gh-127146: Emscripten: Fix pathlib glob_dotdot test (GH-135624) (#135653)
Miss Islington (bot) [Wed, 18 Jun 2025 04:19:43 +0000 (06:19 +0200)] 
[3.14] gh-127146: Emscripten: Fix pathlib glob_dotdot test (GH-135624) (#135653)

The Emscripten path resolver uses the same mechanism for resolving `..`
at a file system root as for resolving symlinks. This is because
roots don't store their mountpoints. If the parent of a node is itself,
it is a root but it might be a mountpoint in some other file system.

If a path has enough `..`'s at the root, it will return ELOOP.
Enough turns out to be 49.
(cherry picked from commit e4ccd46bf75fff2938d7c21c7284e49b0ab795b0)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-127146: Emscripten: Fix test failure due to missing os.link (GH-135626...
Miss Islington (bot) [Wed, 18 Jun 2025 04:03:32 +0000 (06:03 +0200)] 
[3.14] gh-127146: Emscripten: Fix test failure due to missing os.link (GH-135626) (#135652)

Check for existence of os.link, rather than assuming it exists.
(cherry picked from commit ce58afb400672aeec79f2017ab99acbbc65cb4ab)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-127146: Emscripten: Skip test_url2pathname_resolve_host (GH-135634) (#135651)
Miss Islington (bot) [Wed, 18 Jun 2025 03:23:31 +0000 (05:23 +0200)] 
[3.14] gh-127146: Emscripten: Skip test_url2pathname_resolve_host (GH-135634) (#135651)

Emscripten currently `gethostbyname_r()` returns an incorrect
IP address for `localhost`. Will be resolved by upstream PR:
https://github.com/emscripten-core/emscripten/pull/24593
(cherry picked from commit 2a49c54ab2c5cf0ee96a8e577971c1525a966940)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-127146: Allow ignored keys to be missing in test_sysconfig (GH-135622)...
Miss Islington (bot) [Wed, 18 Jun 2025 03:17:22 +0000 (05:17 +0200)] 
[3.14] gh-127146: Allow ignored keys to be missing in test_sysconfig (GH-135622) (#135650)

Fixes the test on Emscripten where userbase can be missing.
(cherry picked from commit 28c71ee4b2eb66983b78018896ca56892580816a)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] gh-132775: Fix Interpreter.call() __main__ Visibility (gh-135638)
Miss Islington (bot) [Tue, 17 Jun 2025 20:24:08 +0000 (22:24 +0200)] 
[3.14] gh-132775: Fix Interpreter.call() __main__ Visibility (gh-135638)

As noted in the new tests, there are a few situations we must carefully accommodate
for functions that get pickled during interp.call().  We do so by running the script
from the main interpreter's __main__ module in a hidden module in the other
interpreter.  That hidden module is used as the function __globals__.

(cherry picked from commit 269e19e0a7, AKA gh-135595)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
4 months agoPost 3.14.0b3
Hugo van Kemenade [Tue, 17 Jun 2025 18:31:06 +0000 (21:31 +0300)] 
Post 3.14.0b3

4 months agoPython 3.14.0b3 v3.14.0b3
Hugo van Kemenade [Tue, 17 Jun 2025 15:40:33 +0000 (18:40 +0300)] 
Python 3.14.0b3

4 months ago[3.14] gh-132815: Add support for JUMP_BACKWARD in specialization stats (GH-135606...
Miss Islington (bot) [Tue, 17 Jun 2025 12:38:22 +0000 (14:38 +0200)] 
[3.14] gh-132815: Add support for JUMP_BACKWARD in specialization stats (GH-135606) (#135612)

gh-132815: Add support for JUMP_BACKWARD in specialization stats (GH-135606)
(cherry picked from commit a9e66a7c506680263b39bc8c150ddc5e72213c45)

Co-authored-by: PuQing <me@puqing.work>
4 months ago[3.14] gh-134262: Catch both URLError and ConnectionError in retries (GH-135365)...
Miss Islington (bot) [Tue, 17 Jun 2025 12:16:17 +0000 (14:16 +0200)] 
[3.14] gh-134262: Catch both URLError and ConnectionError in retries (GH-135365) (#135611)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
4 months ago[3.14] gh-134262: increase retries in `Tools/build/generate_sbom.py` … (#135596)
Emma Smith [Tue, 17 Jun 2025 11:50:15 +0000 (07:50 -0400)] 
[3.14] gh-134262: increase retries in `Tools/build/generate_sbom.py` … (#135596)

4 months ago[3.14] gh-134632: Fix `build-details.json` to use `INCLUDEPY` path (GH-134633) (...
Miss Islington (bot) [Tue, 17 Jun 2025 08:31:10 +0000 (10:31 +0200)] 
[3.14] gh-134632: Fix `build-details.json` to use `INCLUDEPY` path (GH-134633) (#135605)

gh-134632: Fix `build-details.json` to use `INCLUDEPY` path (GH-134633)

* gh-134632: Fix `build-details.json` to use `INCLUDEPY` path

Fix ``build-details.json`` generation to use ``INCLUDEPY``, in order to
reference the ``pythonX.Y`` subdirectory of the include directory, as
required in :pep:`739`, instead of the top-level include directory.

* test_build_details: Add tests for the c_api section

* test_build_details: Expect pkgconfig for CPython unconditionally
(cherry picked from commit 0d582def34babca7417ece8a9e4e16cc2a752d44)

Co-authored-by: Michał Górny <mgorny@gentoo.org>
4 months ago[3.14] gh-123299: Add PEP 779 to What's New in Python 3.14 (GH-135555) (#135602)
Miss Islington (bot) [Tue, 17 Jun 2025 06:10:24 +0000 (08:10 +0200)] 
[3.14] gh-123299: Add PEP 779 to What's New in Python 3.14 (GH-135555) (#135602)

gh-123299: Add PEP 779 to What's New in Python 3.14 (GH-135555)
(cherry picked from commit c51f241c97c5bcc8ae6830842db5b00f76d6a592)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-135489: Show verbose output for failing tests during PGO profiling step...
Miss Islington (bot) [Tue, 17 Jun 2025 05:37:39 +0000 (07:37 +0200)] 
[3.14] gh-135489: Show verbose output for failing tests during PGO profiling step with `--enable-optimizations` (#135599)

(cherry picked from commit 5b3a826888ed3b598dc4bcdc6a48d5f6ae231f8d)

Co-authored-by: PuQing <me@puqing.work>
4 months ago[3.14] gh-135443: Sometimes Fall Back to __main__.__dict__ For Globals (gh-135593)
Miss Islington (bot) [Mon, 16 Jun 2025 23:59:30 +0000 (01:59 +0200)] 
[3.14] gh-135443: Sometimes Fall Back to __main__.__dict__ For Globals (gh-135593)

For several builtin functions, we now fall back to __main__.__dict__ for the globals
when there is no current frame and _PyInterpreterState_IsRunningMain() returns
true.  This allows those functions to be run with Interpreter.call().

The affected builtins:

* exec()
* eval()
* globals()
* locals()
* vars()
* dir()

We take a similar approach with "stateless" functions, which don't use any
global variables.

(cherry picked from commit a450a0ddec, AKA gh-135491)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
4 months ago[3.14] gh-119132: Update 'Using Python on macOS' documentation. (GH-135591) (#135594)
Miss Islington (bot) [Mon, 16 Jun 2025 23:43:24 +0000 (01:43 +0200)] 
[3.14] gh-119132: Update 'Using Python on macOS' documentation. (GH-135591) (#135594)

Remove `experimental` qualification for free-threading in the document text. Note that images included in the document will be updated later in the release cycle.
(cherry picked from commit 7c685894cd9c2c669f09fad31365e3ad6c0c3861)

Co-authored-by: Ned Deily <nad@python.org>
4 months ago[3.14] gh-128627: Emscripten: Add missing semicolon in ios detection code (GH-135590...
Miss Islington (bot) [Mon, 16 Jun 2025 23:41:46 +0000 (01:41 +0200)] 
[3.14] gh-128627: Emscripten: Add missing semicolon in ios detection code (GH-135590) (#135592)

(cherry picked from commit 68b7e1a6677d7a8fb47fbd28cb5d39a87217273c)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
4 months ago[3.14] Use replacements to update versions in "Using Python on macOS" (GH-130400...
Miss Islington (bot) [Mon, 16 Jun 2025 22:15:15 +0000 (00:15 +0200)] 
[3.14] Use replacements to update versions in "Using Python on macOS" (GH-130400) (#135586)

(cherry picked from commit 21bac3aecd03805ea74ca67a3a291a9eb347588f)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-116738: Make _heapq module thread-safe (GH-135036) (gh-135309)
Miss Islington (bot) [Mon, 16 Jun 2025 17:27:43 +0000 (19:27 +0200)] 
[3.14] gh-116738: Make _heapq module thread-safe (GH-135036) (gh-135309)

Use critical sections to make heapq methods that update the heap thread-safe when the GIL is disabled.
(cherry picked from commit a58026a5e3da9ca2d09ef51aa90fe217f9a975ec)

Co-authored-by: Alper <alperyoney@fb.com>
Co-authored-by: mpage <mpage@meta.com>
4 months ago[3.14] gh-132617: Fix `dict.update()` mutation check (gh-134815) (gh-135581)
Miss Islington (bot) [Mon, 16 Jun 2025 17:19:58 +0000 (19:19 +0200)] 
[3.14] gh-132617: Fix `dict.update()` mutation check (gh-134815) (gh-135581)

Use `ma_used` instead of `ma_keys->dk_nentries` for modification check
so that we only check if the dictionary is modified, not if new keys are
added to a different dictionary that shared the same keys object.
(cherry picked from commit d8994b0a77cc9821772d05db00a6ab23382fa17d)

Co-authored-by: Sam Gross <colesbury@gmail.com>
4 months ago[3.14] gh-135513: Fix unused variable warning in `crossinterp.c` (GH-135514) (#135577)
Miss Islington (bot) [Mon, 16 Jun 2025 16:37:26 +0000 (18:37 +0200)] 
[3.14] gh-135513: Fix unused variable warning in `crossinterp.c` (GH-135514) (#135577)

gh-135513: Fix unused variable warning in `crossinterp.c` (GH-135514)
(cherry picked from commit 4c15505071498439407483004721d0369f110229)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] gh-134160: Split extension module init from PyModule docs; emphasize multi...
Miss Islington (bot) [Mon, 16 Jun 2025 15:01:09 +0000 (17:01 +0200)] 
[3.14] gh-134160: Split extension module init from PyModule docs; emphasize multi-phase init (GH-135126) (#135470)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-119132: Remove "experimental" tag from the CPython free-threading. (gh...
Miss Islington (bot) [Mon, 16 Jun 2025 14:58:14 +0000 (16:58 +0200)] 
[3.14] gh-119132: Remove "experimental" tag from the CPython free-threading. (gh-135550) (gh-135565)

---------
(cherry picked from commit f0799795994bfd9ab0740c4d70ac54270991ba47)

Co-authored-by: Donghee Na <donghee.na@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: T. Wouters <thomas@python.org>
4 months ago[3.14] GH-135171: Revert async generator expressions behavior (#135352)
Mikhail Efimov [Mon, 16 Jun 2025 14:45:42 +0000 (17:45 +0300)] 
[3.14] GH-135171: Revert async generator expressions behavior (#135352)

4 months ago[3.14] gh-120608: fix NEWS entry typo (GH-135535) (#135558)
Miss Islington (bot) [Mon, 16 Jun 2025 10:17:37 +0000 (12:17 +0200)] 
[3.14] gh-120608: fix NEWS entry typo (GH-135535) (#135558)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
4 months ago[3.14] gh-127319: Disable port reuse on HTTP, XMLRPC, and logging TCP servers (GH...
Miss Islington (bot) [Mon, 16 Jun 2025 07:05:26 +0000 (09:05 +0200)] 
[3.14] gh-127319: Disable port reuse on HTTP, XMLRPC, and logging TCP servers (GH-135405) (GH-135538)

(cherry picked from commit 2bd3895fcabb2dfdae5c0c72e60483e3d3267f0f)

4 months ago[3.14] gh-111178: fix UBSan failures for `RemoteUnwinderObject` (GH-135539) (#135547)
Miss Islington (bot) [Sun, 15 Jun 2025 20:54:23 +0000 (22:54 +0200)] 
[3.14] gh-111178: fix UBSan failures for `RemoteUnwinderObject` (GH-135539) (#135547)

4 months ago[3.14] gh-67022: Document bytes/str inconsistency in email.header.decode_header(...
Miss Islington (bot) [Sun, 15 Jun 2025 20:02:16 +0000 (22:02 +0200)] 
[3.14] gh-67022: Document bytes/str inconsistency in email.header.decode_header() and suggest email.headerregistry.HeaderRegistry as a sane alternative (GH-92900) (#135548)

gh-67022: Document bytes/str inconsistency in email.header.decode_header() and suggest email.headerregistry.HeaderRegistry as a sane alternative (GH-92900)

* gh-67022: Document bytes/str inconsistency in email.header.decode_header()

This function's possible return types have been surprising and error-prone
for the entirety of its Python 3.x history. It can return either:

1. `typing.List[typing.Tuple[bytes, typing.Optional[str]]]` of length >1
2. or `typing.List[typing.Tuple[str, None]]`, of length exactly 1

This means that any user of this function must be prepared to accept either
`bytes` or `str` for the first member of the 2-tuples it returns, which is a
very surprising behavior in Python 3.x, particularly given that the second
member of the tuple is supposed to represent the charset/encoding of the
first member.

This patch documents the behavior of this function, and adds test cases
to demonstrate it.

As discussed in bpo-22833, this cannot be changed in a backwards-compatible
way, and some users of this function depend precisely on the existing
behavior.

Add warnings about obsolescence of 'email.header.decode_header' and 'email.header.make_header' functions.

Recommend use of `email.headerregistry.HeaderRegistry` instead, as suggested
in https://github.com/python/cpython/pull/92900#discussion_r1112472177
(cherry picked from commit 60181f4ed0e48ff35dc296da6b51473bfc553d16)

Co-authored-by: Dan Lenski <dlenski@gmail.com>