]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
4 months ago[3.14] gh-63207: Update `time.time` documentation after GH-116822 (GH-136068) (#136138)
Miss Islington (bot) [Mon, 30 Jun 2025 16:16:08 +0000 (18:16 +0200)] 
[3.14] gh-63207: Update `time.time` documentation after GH-116822 (GH-136068) (#136138)

gh-63207: Update `time.time` documentation after GH-116822 (GH-136068)
(cherry picked from commit 486587da42dc2beda1e7807c35678f181b57a60f)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-85702: Catch PermissionError in zoneinfo.load_tzdata() (GH-136117) (#136128)
Miss Islington (bot) [Mon, 30 Jun 2025 14:58:18 +0000 (16:58 +0200)] 
[3.14] gh-85702: Catch PermissionError in zoneinfo.load_tzdata() (GH-136117) (#136128)

gh-85702: Catch PermissionError in zoneinfo.load_tzdata() (GH-136117)
(cherry picked from commit ee47670e8b8648b14fd4cb64a9d47d6ed3c5b6b7)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months ago[3.14] gh-136122: Fix video link for math.tau documentation (GH-136129) (#136131)
Miss Islington (bot) [Mon, 30 Jun 2025 14:49:09 +0000 (16:49 +0200)] 
[3.14] gh-136122: Fix video link for math.tau documentation (GH-136129) (#136131)

Co-authored-by: sedram <54665381+sedram@users.noreply.github.com>
4 months ago[3.14] gh-135607: remove null checking of weakref list in dealloc of extension module...
Victor Stinner [Mon, 30 Jun 2025 13:59:22 +0000 (15:59 +0200)] 
[3.14] gh-135607: remove null checking of weakref list in dealloc of extension modules and objects (#135614) (#136119)

gh-135607: remove null checking of weakref list in dealloc of extension modules and objects (#135614)

(cherry picked from commit b1056c2a446b43452e457d5fd5f1bde66afd3883)

Co-authored-by: Xuanteng Huang <44627253+xuantengh@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 months ago[3.14] gh-48181: Document `codecs.charmap_build` (GH-135997) (#136123)
Miss Islington (bot) [Mon, 30 Jun 2025 13:52:46 +0000 (15:52 +0200)] 
[3.14] gh-48181: Document `codecs.charmap_build` (GH-135997) (#136123)

gh-48181: Document `codecs.charmap_build` (GH-135997)
(cherry picked from commit 2bdd50309f543f449d7d82b64ed6f60ae0aa80b9)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.14] gh-131885: Update documented signatures for `csv.{writer,reader}` (GH-136085...
Miss Islington (bot) [Mon, 30 Jun 2025 13:38:57 +0000 (15:38 +0200)] 
[3.14] gh-131885: Update documented signatures for `csv.{writer,reader}` (GH-136085) (GH-136120)

gh-131885: Update documented signatures for `csv.{writer,reader}` (GH-136085)
(cherry picked from commit 75f40595e555e7d016cf9d2da8aaddb78bb20b2f)

Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
4 months ago[3.14] gh-132813: Fix the csv documentation for quoting and escaping (GH-133209)...
Miss Islington (bot) [Mon, 30 Jun 2025 07:47:29 +0000 (09:47 +0200)] 
[3.14] gh-132813: Fix the csv documentation for quoting and escaping (GH-133209) (#136113)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-136087: Remove `\r` from documented `os.linesep` values (GH-136088) (#136111)
Miss Islington (bot) [Mon, 30 Jun 2025 07:44:29 +0000 (09:44 +0200)] 
[3.14] gh-136087: Remove `\r` from documented `os.linesep` values (GH-136088) (#136111)

gh-136087: Remove `\r` from documented `os.linesep` values (GH-136088)
(cherry picked from commit 980a56843bf631ea80c1486a367d41031dec6a7e)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.14] Doc: fix duplicated words (GH-136086) (#136108)
Miss Islington (bot) [Sun, 29 Jun 2025 22:45:26 +0000 (00:45 +0200)] 
[3.14] Doc: fix duplicated words (GH-136086) (#136108)

Doc: fix duplicated words (GH-136086)

---------
(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>
4 months ago[3.14] gh-123299: Provide replacement for removed sqlite3 attributes in What's New...
Miss Islington (bot) [Sun, 29 Jun 2025 15:40:27 +0000 (17:40 +0200)] 
[3.14] gh-123299: Provide replacement for removed sqlite3 attributes in What's New 3.14 (GH-125566) (#136103)

Co-authored-by: fry69 <142489379+fry69@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-127604: Docs: Include a C stack in the `faulthandler` example (GH-136081...
Miss Islington (bot) [Sun, 29 Jun 2025 15:05:40 +0000 (17:05 +0200)] 
[3.14] gh-127604: Docs: Include a C stack in the `faulthandler` example (GH-136081) (GH-136102)

* gh-127604: Docs: Include a C stack in the `faulthandler` example (GH-136081)
(cherry picked from commit 39478479146f1f4188119a0e7ffdcdc7b6016bd7)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months ago[3.14] gh-136053: Check error for TYPE_SLICE in marshal.c (GH-136054) (GH-136092)
Miss Islington (bot) [Sun, 29 Jun 2025 07:36:04 +0000 (09:36 +0200)] 
[3.14] gh-136053: Check error for TYPE_SLICE in marshal.c (GH-136054) (GH-136092)

Fix a possible crash when deserializing a large marshal data
(at least several GiBs) containing a slice.
(cherry picked from commit 30ba03ea8ed98522b0500d6856b22727c88e818f)

Co-authored-by: Akshat Gupta <akshat.gupta24@gmail.com>
4 months ago[3.14] Doc: Fix duplicate words in idlelib (GH-136089) (#136090)
Miss Islington (bot) [Sun, 29 Jun 2025 07:12:50 +0000 (09:12 +0200)] 
[3.14] Doc: Fix duplicate words in idlelib (GH-136089) (#136090)

Doc: Fix duplicate words in idlelib (GH-136089)
(cherry picked from commit f04d2b8819eb37d5439b7437f1e80a1e5c5c4f07)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.14] gh-91048: Fix external inspection multi-threaded performance (GH-136005) ...
Pablo Galindo Salgado [Sat, 28 Jun 2025 18:12:54 +0000 (19:12 +0100)] 
[3.14] gh-91048: Fix external inspection multi-threaded performance (GH-136005) (#136080)

(cherry picked from commit 5334732f9c8a44722e4b339f4bb837b5b0226991)

4 months ago[3.14] gh-76595: Add note on `PyCapsule_Import` behavior (GH-134022) (GH-136074)
Miss Islington (bot) [Sat, 28 Jun 2025 13:08:15 +0000 (15:08 +0200)] 
[3.14] gh-76595: Add note on `PyCapsule_Import` behavior (GH-134022) (GH-136074)

gh-76595: Add note on `PyCapsule_Import` behavior (GH-134022)
(cherry picked from commit 579acf45629fa0b7787ec78fa4049fc6a6388b71)

Co-authored-by: Nicolas Trangez <ikke@nicolast.be>
4 months ago[3.14] gh-135571: Guard `_hashlib` usage in `test_hashlib.py` (GH-135572) (#136042)
Bénédikt Tran [Sat, 28 Jun 2025 08:15:39 +0000 (10:15 +0200)] 
[3.14] gh-135571: Guard `_hashlib` usage in `test_hashlib.py` (GH-135572) (#136042)

(cherry picked from commit 065194c1a971b59547f1bb2cc64760c4bf0ee674)

Co-authored-by: Will Childs-Klein <willck93@gmail.com>
4 months ago[3.14] gh-135755: rename undocumented `HACL_CAN_COMPILE_SIMD{128,256}` macros (GH...
Bénédikt Tran [Sat, 28 Jun 2025 08:05:58 +0000 (10:05 +0200)] 
[3.14] gh-135755: rename undocumented `HACL_CAN_COMPILE_SIMD{128,256}` macros (GH-135847) (#136045)

Rename undocumented `HACL_CAN_COMPILE_SIMD{128,256}` macros
to `_Py_HACL_CAN_COMPILE_VEC{128,256}`. These macros are private.
(cherry picked from commit 1e975aee28924afbd956183918cef278e09ce8f3)

4 months ago[3.14] gh-108765: fix comment about macro definitions in `_stat.c` post GH-108854...
Miss Islington (bot) [Fri, 27 Jun 2025 15:40:34 +0000 (17:40 +0200)] 
[3.14] gh-108765: fix comment about macro definitions in `_stat.c` post GH-108854 (GH-136027) (#136043)

gh-108765: fix comment about macro definitions in `_stat.c` post GH-108854 (GH-136027)
(cherry picked from commit 0141e7f9e66e5e5ac3949fb018dd6811cd630dca)

Co-authored-by: Lee Dogeon <dev.moreal@gmail.com>
4 months ago[3.14] gh-136028: Fix parsing month names containing "İ" (U+0130) in strptime() ...
Miss Islington (bot) [Fri, 27 Jun 2025 14:12:15 +0000 (16:12 +0200)] 
[3.14] gh-136028: Fix parsing month names containing "İ" (U+0130) in strptime() (GH-136029) (GH-136037)

This affects locales az_AZ, ber_DZ, ber_MA and crh_UA.
(cherry picked from commit 731f5b8ab3970e344bfbc4ff86df767a0795f0fc)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.14] gh-92266: Replace tabs with four spaces in Python files (GH-135983) (#136035)
Miss Islington (bot) [Fri, 27 Jun 2025 13:27:00 +0000 (15:27 +0200)] 
[3.14] gh-92266: Replace tabs with four spaces in Python files (GH-135983) (#136035)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.14] gh-78465: Fix error message for cls.__new__(cls, ...) where cls is not instant...
Miss Islington (bot) [Fri, 27 Jun 2025 12:01:48 +0000 (14:01 +0200)] 
[3.14] gh-78465: Fix error message for cls.__new__(cls, ...) where cls is not instantiable (GH-135981) (GH-136030)

Previous error message suggested to use cls.__new__(), which
obviously does not work. Now the error message is the same as for
cls(...).
(cherry picked from commit c45f4f3ebe34529a8db3a7918e8dd2e9f7ce8e86)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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