]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 months ago[3.14] gh-134768: Fix definition of `mt_continue_should_break()` (GH-134769) (#134916)
Miss Islington (bot) [Fri, 30 May 2025 05:08:43 +0000 (07:08 +0200)] 
[3.14] gh-134768: Fix definition of `mt_continue_should_break()` (GH-134769) (#134916)

gh-134768: Fix definition of `mt_continue_should_break()` (GH-134769)

In 121ed71f4e395948d313249b2ad33e1e21581f8a, mt_continue_should_break
was changed to be guarded by `Py_DEBUG`, but it's used in `compress_mt_continue_lock_held`
with just `assert`, so it needs to be available when `NDEBUG` is undefined
too.

`Py_DEBUG` implies `NDEBUG` is undefined, so we can check just that.
(cherry picked from commit 2f2bee21118adce653ee5bc4eb31d30327465966)

Fixes: 121ed71f4e395948d313249b2ad33e1e21581f8a
Co-authored-by: Sam James <sam@gentoo.org>
5 months ago[3.14] gh-134906: Document CompressionParameter.content_size_flag (GH-134907) (#134915)
Miss Islington (bot) [Fri, 30 May 2025 04:43:33 +0000 (06:43 +0200)] 
[3.14] gh-134906: Document CompressionParameter.content_size_flag (GH-134907) (#134915)

gh-134906: Document CompressionParameter.content_size_flag (GH-134907)

* Document CompressionParameter.content_size_flag
(cherry picked from commit 5f60d0fcccbf6676f5bc924f05452bd5321446f0)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] ast docs: Fix description of ast.Constant (GH-134741) (#134911)
Miss Islington (bot) [Fri, 30 May 2025 04:17:18 +0000 (06:17 +0200)] 
[3.14] ast docs: Fix description of ast.Constant (GH-134741) (#134911)

Contrary to the current docs, ast.Constant will never hold containers
such as frozenset or tuple; the Python parser only emits it for simple
literals.

For precision, add the exact list of types that may be contained in an
ast.Constant.
(cherry picked from commit 381020d41fb1f8b33421f01c609ba0d0edb99764)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] gh-132775: Fix _PyFunctIon_VerifyStateless() (gh-134901)
Miss Islington (bot) [Thu, 29 May 2025 20:55:42 +0000 (22:55 +0200)] 
[3.14] gh-132775: Fix _PyFunctIon_VerifyStateless() (gh-134901)

gh-132775: Fix _PyFunctIon_VerifyStateless() ()

The problem we're fixing here is that we were using PyDict_Size() on "defaults",
which it is actually a tuple.  We're also adding some explicit type checks.

This is a follow-up to gh-133221/gh-133528.

(cherry picked from commit dafd14146f7, AKA gh-134900)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] GH-133912: Fix `PyObject_GenericSetDict` to handle inline values (GH-134725...
Miss Islington (bot) [Thu, 29 May 2025 18:19:58 +0000 (20:19 +0200)] 
[3.14] GH-133912: Fix `PyObject_GenericSetDict` to handle inline values (GH-134725) (#134859)

5 months ago[3.14] gh-133260: Remove claim that PyUnicode_InternFromString immortalizes (GH-13421...
Miss Islington (bot) [Thu, 29 May 2025 13:43:27 +0000 (15:43 +0200)] 
[3.14] gh-133260: Remove claim that PyUnicode_InternFromString immortalizes (GH-134213) (GH-134883)

(cherry picked from commit 4109a9c6b33faa0032ffc95d96cd0db482af3ce2)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
5 months ago[3.14] gh-69011: clarify & deduplicate `ctypes.create_*_buffer` docs (GH-132858)...
Miss Islington (bot) [Thu, 29 May 2025 13:23:19 +0000 (15:23 +0200)] 
[3.14] gh-69011: clarify & deduplicate `ctypes.create_*_buffer` docs (GH-132858) (GH-134881)

This adds a warning about the possibly-missing NUL terminator, but in a way
that doesn't make it sound like a bug/wart.
(cherry picked from commit b783e1791b2076ef560104f8207156d75859c0a6)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
5 months ago[3.14] gh-134262: Add retries to generate_sbom.py (GH-134460)
Miss Islington (bot) [Wed, 28 May 2025 23:52:31 +0000 (01:52 +0200)] 
[3.14] gh-134262: Add retries to generate_sbom.py (GH-134460)

(cherry picked from commit 0c5a8b0b55238a45b9073d06a10c3a59568cdf3c)

Includes fix for off-by-one error from GH-134867
(cherry-picked from commit e64395e8eb8d3a9e35e3e534e87d427ff27ab0a5)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
5 months ago[3.14] gh-134262: Add retries to downloads in PCbuild\get_external.py (GH-134865)
Miss Islington (bot) [Wed, 28 May 2025 23:47:26 +0000 (01:47 +0200)] 
[3.14] gh-134262: Add retries to downloads in PCbuild\get_external.py (GH-134865)

(cherry picked from commit e9d845b41dca9ad84b76ef777d05e647a4b4d8cd)

Includes fix for off-by-one error from GH-134867
(cherry-picked from commit e64395e8eb8d3a9e35e3e534e87d427ff27ab0a5)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] gh-108885: Imporove tests for doctest (GH-134832) (GH-134855)
Miss Islington (bot) [Wed, 28 May 2025 17:41:07 +0000 (19:41 +0200)] 
[3.14] gh-108885: Imporove tests for doctest (GH-134832) (GH-134855)

Test the error and failure report in more detail.
(cherry picked from commit f6324bc7eedc615c3c961fe368a8c56697d42936)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] GH-134848: Use a set to store ``AuditEvents.sources`` (GH-134849) (#134853)
Miss Islington (bot) [Wed, 28 May 2025 16:37:57 +0000 (18:37 +0200)] 
[3.14] GH-134848: Use a set to store ``AuditEvents.sources`` (GH-134849) (#134853)

GH-134848: Use a set to store ``AuditEvents.sources`` (GH-134849)
(cherry picked from commit b265a7ddeb12b2040d80b471d447ce4c3ff4bb95)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
5 months ago[3.14] gh-132983: Convert dict_content to take Py_buffer in ``ZstdDict()`` (GH-133924...
Miss Islington (bot) [Wed, 28 May 2025 16:25:35 +0000 (18:25 +0200)] 
[3.14] gh-132983: Convert dict_content to take Py_buffer in ``ZstdDict()`` (GH-133924) (#134723)

gh-132983: Convert dict_content to take Py_buffer in ``ZstdDict()`` (GH-133924)
(cherry picked from commit f2ce4bbdfdfa2b658fbeef66f414be2ecf7981dd)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
5 months ago[3.14] gh-132983: Split ``_zstd_set_c_parameters`` (GH-133921) (#134838)
Miss Islington (bot) [Wed, 28 May 2025 16:25:06 +0000 (18:25 +0200)] 
[3.14] gh-132983: Split ``_zstd_set_c_parameters`` (GH-133921) (#134838)

gh-132983: Split ``_zstd_set_c_parameters`` (GH-133921)
(cherry picked from commit 11f7a939debd7731d1cb79ed84a473fa87c279c8)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
5 months ago[3.14] gh-133711: Fix test_readline.test_nonascii() for UTF-8 Mode (GH-134841) (...
Miss Islington (bot) [Wed, 28 May 2025 16:10:37 +0000 (18:10 +0200)] 
[3.14] gh-133711: Fix test_readline.test_nonascii() for UTF-8 Mode (GH-134841) (#134851)

gh-133711: Fix test_readline.test_nonascii() for UTF-8 Mode (GH-134841)

Skip the test if the Python UTF-8 Mode is enabled and the LC_CTYPE
encoding is not UTF-8.
(cherry picked from commit 4635115c3f1495fa20e553937df37861fffa7054)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH...
Miss Islington (bot) [Wed, 28 May 2025 15:50:40 +0000 (17:50 +0200)] 
[3.14] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH-134836) (#134845)

gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH-134836)
(cherry picked from commit d83576bf48d07d5e29d5d171c4e25afb048622aa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-133711: Fix test_regrtest for PYTHONUTF8=1 (GH-134839) (#134842)
Miss Islington (bot) [Wed, 28 May 2025 15:48:03 +0000 (17:48 +0200)] 
[3.14] gh-133711: Fix test_regrtest for PYTHONUTF8=1 (GH-134839) (#134842)

gh-133711: Fix test_regrtest for PYTHONUTF8=1 (GH-134839)

Use "backslashreplace" error handler to decode stdout and stderr.
Example:

    vstinner@WIN C:\victor\python\main\build\test_python_worker_8360\x91>
    "C:\victor\python\main\PCbuild\amd64\python_d.exe"  -m test
    --fast-ci --slow-ci --testdir
    C:\Users\vstinner\AppData\Local\Temp\tmp0t59e8da
    test_regrtest_noop1 test_regrtest_noop2 test_regrtest_noop3
    test_regrtest_noop4

Notice the "\x91" byte at the end of the first line: it's the
non-ASCII U+00E6 character encoded to the OEM cp437 code page.
(cherry picked from commit 91618278e7cd1ffc222efa03bb5334bd5a13dc5b)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.14] gh-134817: Document [Timed]RotatingFileHandler shouldRollover method (GH-13481...
Miss Islington (bot) [Wed, 28 May 2025 12:32:59 +0000 (14:32 +0200)] 
[3.14] gh-134817: Document [Timed]RotatingFileHandler shouldRollover method (GH-134818) (GH-134823)

(cherry picked from commit 7be5916f6dc3db95744b5fec945327d82cce0183)

5 months ago[3.14] gh-134160: Block multiple module initialization (GH-134773) (#134827)
Miss Islington (bot) [Wed, 28 May 2025 07:58:49 +0000 (09:58 +0200)] 
[3.14] gh-134160: Block multiple module initialization (GH-134773) (#134827)

gh-134160: Block multiple module initialization (GH-134773)
(cherry picked from commit 469a56470b1d8df03862d8ceb73aebca14772dcf)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
5 months ago[3.14] Update outdated statement from `math` about C standard (GH-134621) (#134825)
Miss Islington (bot) [Wed, 28 May 2025 07:36:40 +0000 (09:36 +0200)] 
[3.14] Update outdated statement from `math` about C standard (GH-134621) (#134825)

Update outdated statement from `math` about C standard (GH-134621)
(cherry picked from commit 21672b694bd1786bad6eb71a9eff89291a91554b)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
5 months ago[3.14] Fix typing.TYPE_CHECKING docs to reflect PEP 649. (GH-134813) (#134822)
Miss Islington (bot) [Wed, 28 May 2025 06:15:17 +0000 (08:15 +0200)] 
[3.14] Fix typing.TYPE_CHECKING docs to reflect PEP 649. (GH-134813) (#134822)

Fix typing.TYPE_CHECKING docs to reflect PEP 649. (GH-134813)

typing.TYPE_CHECKING should no longer steer users towards
manual or automatic stringization (and PEP 563); PEP 649
makes all that unnecessary.
(cherry picked from commit d7256ae4d781932b3b43b162e8425abdb134afa6)

Co-authored-by: larryhastings <larry@hastings.org>
5 months ago[3.14] gh-134679: Fix assertion failure in QSBR (gh-134811) (gh-134814)
Miss Islington (bot) [Tue, 27 May 2025 20:46:02 +0000 (22:46 +0200)] 
[3.14] gh-134679: Fix assertion failure in QSBR (gh-134811) (gh-134814)

This is the same underlying bug as gh-130519. The destructor may call
arbitrary code, changing the `tstate->qsbr pointer` and invalidating the
old `struct _qsbr_thread_state`.
(cherry picked from commit a4d37f88b66bc9a66b2ab277aa66a2a6b20821fa)

Co-authored-by: Sam Gross <colesbury@gmail.com>
5 months ago[3.14] gh-134774: Remove additional Py_DEBUG definition (GH-134791)
Chris Eibl [Tue, 27 May 2025 19:08:41 +0000 (21:08 +0200)] 
[3.14] gh-134774: Remove additional Py_DEBUG definition (GH-134791)

5 months ago[3.14] gh-134789: Document del s[i] operation for mutable sequences (GH-134804) ...
Miss Islington (bot) [Tue, 27 May 2025 18:53:52 +0000 (20:53 +0200)] 
[3.14] gh-134789: Document del s[i] operation for mutable sequences (GH-134804) (#134808)

gh-134789: Document del s[i] operation for mutable sequences (GH-134804)

[main] Update stdtypes.rst

- Added explicit mention of `del s[i]` (item deletion by index) to the Mutable Sequence Types section.
- Clarified that this operation removes the item at the specified index from the sequence.
- Addresses issue GH-134789.
(cherry picked from commit 967f361993c9c97eb3ff3076a409b78ea32938df)

Co-authored-by: Rishabh Singh <67859818+rishabh11336@users.noreply.github.com>
5 months ago[3.14] gh-132917: fix data race on `last_mem` in free-threading gc (GH-134692) ...
Miss Islington (bot) [Tue, 27 May 2025 18:00:19 +0000 (20:00 +0200)] 
[3.14] gh-132917: fix data race on `last_mem` in free-threading gc  (GH-134692) (#134802)

gh-132917: fix data race on `last_mem` in free-threading gc  (GH-134692)
(cherry picked from commit ac539e7e0d1622c61988f30c91acfd4c06521ced)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months ago[3.14] gh-134744: Fix fcntl error handling (#134748) (#134795)
Victor Stinner [Tue, 27 May 2025 16:13:20 +0000 (18:13 +0200)] 
[3.14] gh-134744: Fix fcntl error handling (#134748) (#134795)

gh-134744: Fix fcntl error handling (#134748)

Fix also reference leak on buffer overflow.

(cherry picked from commit 9300a596d37d058e6e58d00a2ad70617c863a3de)

5 months ago[3.14] gh-132775: Always Set __builtins__ In _PyFunction_FromXIData() (gh-134794)
Miss Islington (bot) [Tue, 27 May 2025 16:07:44 +0000 (18:07 +0200)] 
[3.14] gh-132775: Always Set __builtins__ In _PyFunction_FromXIData() (gh-134794)

This is a small follow-up to gh-133481.  There's a corner case
in the behavior of PyImport_ImportModuleAttrString(), where
it expects __builtins__ to be set if __globals__ is set.

(cherry picked from commit 9b5e80000, AKA gh-134758)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-133678: Document C API third party tools (GH-134526) (#134793)
Miss Islington (bot) [Tue, 27 May 2025 15:45:08 +0000 (17:45 +0200)] 
[3.14] gh-133678: Document C API third party tools (GH-134526) (#134793)

gh-133678: Document C API third party tools (GH-134526)
(cherry picked from commit c3c88064f5905889057dcdfaaaa4a48f8e2d53d4)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Steve Dower <steve.dower@python.org>
5 months ago[3.14] GH-128161: Remove redundant GET_ITER from list comprehension code (GH-134778)
Mark Shannon [Tue, 27 May 2025 11:29:48 +0000 (12:29 +0100)] 
[3.14] GH-128161: Remove redundant GET_ITER from list comprehension code (GH-134778)

5 months ago[3.14] gh-62824: Adjust test_alias_modules_exist test to use imports instead of file...
Miss Islington (bot) [Tue, 27 May 2025 09:28:30 +0000 (11:28 +0200)] 
[3.14] gh-62824: Adjust test_alias_modules_exist test to use imports instead of file checks (GH-134777) (GH-134781)

gh-62824: Adjust test_alias_modules_exist test to use imports instead of file checks (GH-134777)
(cherry picked from commit 8704d6b39139d2b1c3dd871590188fb7deb8aaad)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
5 months ago[3.14] gh-134210: handle signals in `_curses.window.getch` (GH-134326) (#134783)
Miss Islington (bot) [Tue, 27 May 2025 09:16:50 +0000 (11:16 +0200)] 
[3.14] gh-134210: handle signals in `_curses.window.getch` (GH-134326) (#134783)

gh-134210: handle signals in `_curses.window.getch` (GH-134326)
(cherry picked from commit 51762b6cadb8f316dd783716bc5c168c2e2d07f0)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] gh-134752: Improve speed of test_tokenize.StringPrefixTest.test_prefixes....
Miss Islington (bot) [Tue, 27 May 2025 09:16:23 +0000 (11:16 +0200)] 
[3.14] gh-134752: Improve speed of test_tokenize.StringPrefixTest.test_prefixes. (GH-134766) (#134782)

gh-134752: Improve speed of test_tokenize.StringPrefixTest.test_prefixes. (GH-134766)
(cherry picked from commit 579686d9fb1bccc74c694d569f0a8bf28d9ca85a)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
5 months ago[3.14] gh-134664: document `cleanup_socket` parameter in `asyncio.start_unix_server...
Miss Islington (bot) [Tue, 27 May 2025 08:34:43 +0000 (10:34 +0200)] 
[3.14] gh-134664: document `cleanup_socket` parameter in `asyncio.start_unix_server` (GH-134750) (#134779)

gh-134664: document `cleanup_socket` parameter in `asyncio.start_unix_server` (GH-134750)
(cherry picked from commit 92ea1eb38ff97ac046a0031d505c30a51f58a43f)

Co-authored-by: Shamil <ashm.tech@proton.me>
5 months ago[3.14] gh-134160: Use multi-phase init in documentation examples (GH-134296) (#134753)
Miss Islington (bot) [Mon, 26 May 2025 21:50:18 +0000 (23:50 +0200)] 
[3.14] gh-134160: Use multi-phase init in documentation examples (GH-134296) (#134753)

gh-134160: Use multi-phase init in documentation examples (GH-134296)
(cherry picked from commit 96905bdd273d2e5724d2c1b6b0f95ecb0daeaabe)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
5 months ago[3.14] gh-132775: Unrevert "Use _PyCode GetScriptXIData()" (gh-134736)
Eric Snow [Mon, 26 May 2025 19:41:14 +0000 (13:41 -0600)] 
[3.14] gh-132775: Unrevert "Use _PyCode GetScriptXIData()" (gh-134736)

This reverts commit 7476f90af2cf9207c792c0dc3ee9a5ca7b4fabfa, AKA gh-134600.

This effectively unreverts commit bbf8048c0f9c (gh-134515).

5 months ago[3.14] gh-134675: Add t-string prefixes to tokenizer module, lexical analysis doc...
Miss Islington (bot) [Mon, 26 May 2025 19:24:24 +0000 (21:24 +0200)] 
[3.14] gh-134675: Add t-string prefixes to tokenizer module, lexical analysis doc, and add a test to make sure we catch this error in the future. (GH-134734) (#134739)

gh-134675: Add t-string prefixes to tokenizer module, lexical analysis doc, and add a test to make sure we catch this error in the future. (GH-134734)

* Add t-string prefixes to _all_string_prefixes, and add a test to make sure we catch this error in the future.

* Update lexical analysis docs for t-string prefixes.
(cherry picked from commit 08c78e02fab4a1c9c075637422d621f9c740959a)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
5 months ago[3.14] gh-134557: Suppress immortalization in _PyCode_GetScriptXIData under free...
Miss Islington (bot) [Mon, 26 May 2025 19:14:58 +0000 (21:14 +0200)] 
[3.14] gh-134557: Suppress immortalization in _PyCode_GetScriptXIData under free-threading (gh134738)

Disable immortalization around Py_CompileString*().

The same approach as 332356b that fixed the refleaks in compile() and eval().

E: 09e72cf can pass test_capi, test_sys and test__interpchannels with this patch for me.

(cherry picked from commit c60f39ada625562bff26400f304690c19fe9f504, AKA gh-134686)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
5 months agoMerge branch '3.14' of https://github.com/python/cpython into 3.14
Hugo van Kemenade [Mon, 26 May 2025 18:51:15 +0000 (21:51 +0300)] 
Merge branch '3.14' of https://github.com/python/cpython into 3.14

5 months ago[3.14] gh-134637: Fix performance regression in calling `ctypes` function pointer...
Miss Islington (bot) [Mon, 26 May 2025 18:51:13 +0000 (20:51 +0200)] 
[3.14] gh-134637: Fix performance regression in calling `ctypes` function pointer in `free threading`. (GH-134702) (#134742)

gh-134637: Fix performance regression in calling `ctypes` function pointer in `free threading`. (GH-134702)

Fix performance regression in calling `ctypes` function pointer in `free threading`.
(cherry picked from commit 3c0525126ef95efe2f578e93db09f3282e3ca08f)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months agoPost 3.14.0b2
Hugo van Kemenade [Mon, 26 May 2025 18:50:01 +0000 (21:50 +0300)] 
Post 3.14.0b2

5 months ago[3.14] Add CODEOWNERS and YAML to end-of-file-fixer and trailing-whitespace (GH-13473...
Miss Islington (bot) [Mon, 26 May 2025 18:08:37 +0000 (20:08 +0200)] 
[3.14] Add CODEOWNERS and YAML to end-of-file-fixer and trailing-whitespace (GH-134730) (#134737)

5 months ago[3.14] gh-119180: Updates to PEP 649/749 docs (GH-134640) (#134731)
Miss Islington (bot) [Mon, 26 May 2025 15:40:43 +0000 (17:40 +0200)] 
[3.14] gh-119180: Updates to PEP 649/749 docs (GH-134640) (#134731)

gh-119180: Updates to PEP 649/749 docs (GH-134640)

- Mention (again) that `type.__annotations__` is unsafe. It is now safe
  when using only classes defined under PEP 649 semantics, but not with
  classes defined using `from __future__ import annotations`.
- Mention that annotations on instances no longer work. There was already
  an issue about this.
- Mention the general changes in the "Porting to Python 3.14" section.
- `annotationlib` was proposed by PEP-749, not PEP-649.
(cherry picked from commit 7291eaba8b20b19e7971d43d88286d5820e5eb56)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
5 months ago[3.14] gh-134693: Fix `[-Wmaybe-uninitialized]` warning in `_remote_debugging_module...
Miss Islington (bot) [Mon, 26 May 2025 15:32:52 +0000 (17:32 +0200)] 
[3.14] gh-134693: Fix `[-Wmaybe-uninitialized]` warning in `_remote_debugging_module.c` (GH-134694) (#134726)

gh-134693: Fix `[-Wmaybe-uninitialized]` warning in `_remote_debugging_module.c` (GH-134694)
(cherry picked from commit 806107d7a2fa9baa76d4025f46fab2c8725963f4)

Co-authored-by: sobolevn <mail@sobolevn.me>
5 months ago[3.14] gh-91048: Add better error messages for remote debugging for CI builds (GH...
Miss Islington (bot) [Mon, 26 May 2025 15:04:36 +0000 (17:04 +0200)] 
[3.14] gh-91048: Add better error messages for remote debugging for CI builds (GH-134682) (#134719)

5 months ago[3.14] Add CODEOWNERS for remote debugging (GH-134720) (#134721)
Miss Islington (bot) [Mon, 26 May 2025 14:46:51 +0000 (16:46 +0200)] 
[3.14] Add CODEOWNERS for remote debugging (GH-134720) (#134721)

5 months agoPython 3.14.0b2 v3.14.0b2
Hugo van Kemenade [Mon, 26 May 2025 13:26:37 +0000 (16:26 +0300)] 
Python 3.14.0b2

5 months ago[3.14] gh-91048: Correct Apple platform includes for iOS. (GH-134712) (#134714)
Miss Islington (bot) [Mon, 26 May 2025 13:10:37 +0000 (15:10 +0200)] 
[3.14] gh-91048: Correct Apple platform includes for iOS. (GH-134712) (#134714)

Correct Apple platform includes for iOS.
(cherry picked from commit 965662ee4a986605b60da470d9e7c1e9a6f922b3)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
5 months ago[3.14] gh-132710: add missing NEWS entry for GH-134697 (GH-134705) (#134707)
Miss Islington (bot) [Mon, 26 May 2025 10:46:29 +0000 (12:46 +0200)] 
[3.14] gh-132710: add missing NEWS entry for GH-134697 (GH-134705) (#134707)

gh-132710: add missing NEWS entry for GH-134697 (GH-134705)
(cherry picked from commit 9eb84d83e00070cec3cfe78f1d0c7a7a0fbef30f)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.14] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC address...
Bénédikt Tran [Mon, 26 May 2025 10:45:36 +0000 (12:45 +0200)] 
[3.14] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC address (GH-132901) (#134697)

(cherry picked from commit 3bffada46728e51f84c41ecbb0d3722595693e63)

5 months ago[3.14] gh-134559: Add versionadded for ``object.__replace__()`` (GH-134672) (#134699)
Miss Islington (bot) [Mon, 26 May 2025 10:29:51 +0000 (12:29 +0200)] 
[3.14] gh-134559: Add versionadded for ``object.__replace__()`` (GH-134672) (#134699)

gh-134559: Add versionadded for ``object.__replace__()`` (GH-134672)
(cherry picked from commit 71290a6fbe79cef3773a3af6fcf08d8bf15c8460)

Co-authored-by: tmlnv <108088921+tmlnv@users.noreply.github.com>
5 months ago[3.14] gh-134208: remove dead AC directives for `_curses.window.{chgat,getstr,instr...
Bénédikt Tran [Mon, 26 May 2025 10:09:02 +0000 (12:09 +0200)] 
[3.14] gh-134208: remove dead AC directives for `_curses.window.{chgat,getstr,instr}` (GH-134325) (#134701)

(cherry picked from commit 29e81159644cf78d958e30aaef208e22a04a8b25)

5 months ago[3.14] gh-132493: Remove __annotations__ usage in inspect._signature_is_functionlike...
Miss Islington (bot) [Mon, 26 May 2025 08:22:14 +0000 (10:22 +0200)] 
[3.14] gh-132493: Remove __annotations__ usage in inspect._signature_is_functionlike (GH-133415) (#133796)

gh-132493: Remove __annotations__ usage in inspect._signature_is_functionlike (GH-133415)

This check is potentially problematic because it could force evaluation of
annotations unnecessarily. This doesn't trigger for builtin objects (functions,
classes, or modules) with annotations, but it could trigger for third-party objects.

The check was not particularly useful anyway, because it succeeds if ``__annotations__``
is a dict or None, so the only thing this did was guard against objects that have an
``__annotations__`` attribute that is of some other type. That doesn't seem particularly
useful, so I just removed the check.
(cherry picked from commit cb6596c6aa30c8c3213c8746d5590e6e2757a6c1)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_e...
Miss Islington (bot) [Mon, 26 May 2025 08:02:52 +0000 (10:02 +0200)] 
[3.14] gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_endchars (GH-134233) (#134678)

Co-authored-by: R. David Murray <rdmurray@bitdance.com>
5 months ago[3.14] gh-127833: lexical analysis: Improve section on Names (GH-131474) (#134423)
Miss Islington (bot) [Mon, 26 May 2025 08:00:17 +0000 (10:00 +0200)] 
[3.14] gh-127833: lexical analysis: Improve section on Names (GH-131474) (#134423)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Blaise Pabon <blaise@gmail.com>
5 months ago[3.14] gh-132876: workaround broken ldexp() on Windows 10 (GH-133135) (#134684)
Miss Islington (bot) [Mon, 26 May 2025 03:23:45 +0000 (05:23 +0200)] 
[3.14] gh-132876: workaround broken ldexp() on Windows 10 (GH-133135) (#134684)

gh-132876: workaround broken ldexp() on Windows 10 (GH-133135)

* gh-132876: workaround broken ldexp() on Windows 10

ldexp() fails to round subnormal results before Windows 11,
so hide their bug.
(cherry picked from commit cf8941c60356acdd00055e5583a2d64761c34af4)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Tim Peters <tim.peters@gmail.com>
5 months ago[3.14] gh-69605: Disable PyREPL module autocomplete fallback on regular completion...
Miss Islington (bot) [Sun, 25 May 2025 23:33:02 +0000 (01:33 +0200)] 
[3.14] gh-69605: Disable PyREPL module autocomplete fallback on regular completion (gh-134181) (gh-134680)

(cherry picked from commit 0e3bc962c6462f836751e35ef35fa837fd952550)

Co-authored-by: Loïc Simon <loic.simon@napta.io>
5 months ago[3.14] gh-91048: Refactor and optimize remote debugging module (#134652) (#134673)
Pablo Galindo Salgado [Sun, 25 May 2025 22:10:20 +0000 (23:10 +0100)] 
[3.14] gh-91048: Refactor and optimize remote debugging module (#134652) (#134673)

gh-91048: Refactor and optimize remote debugging module (#134652)

Completely refactor Modules/_remote_debugging_module.c with improved
code organization, replacing scattered reference counting and error
handling with centralized goto error paths. This cleanup improves
maintainability and reduces code duplication throughout the module while
preserving the same external API.

Implement memory page caching optimization in Python/remote_debug.h to
avoid repeated reads of the same memory regions during debugging
operations. The cache stores previously read memory pages and reuses
them for subsequent reads, significantly reducing system calls and
improving performance.

Add code object caching mechanism with a new code_object_generation
field in the interpreter state that tracks when code object caches need
invalidation. This allows efficient reuse of parsed code object metadata
and eliminates redundant processing of the same code objects across
debugging sessions.

Optimize memory operations by replacing multiple individual structure
copies with single bulk reads for the same data structures. This reduces
the number of memory operations and system calls required to gather
debugging information from the target process.

Update Makefile.pre.in to include Python/remote_debug.h in the headers
list, ensuring that changes to the remote debugging header force proper
recompilation of dependent modules and maintain build consistency across
the codebase.

Also, make the module compatible with the free threading build as an extra :)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
(cherry picked from commit 42b25ad4d3d6bcdc28ddfe07d2bf8831378bb0d1)

5 months ago[3.14] gh-115999: Add PyCodeObject.co_tlbc to the debug offsets (GH-134286) (#134348)
Miss Islington (bot) [Sun, 25 May 2025 21:16:10 +0000 (23:16 +0200)] 
[3.14] gh-115999: Add PyCodeObject.co_tlbc to the debug offsets (GH-134286) (#134348)

gh-115999: Add PyCodeObject.co_tlbc to the debug offsets (GH-134286)
(cherry picked from commit dd7f1130570d50461b2a0f81ab01c55b9ce93700)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
5 months ago[3.14] Fix sphinx-lint warnings (default-role used). (GH-134647) (#134670)
Miss Islington (bot) [Sun, 25 May 2025 19:29:04 +0000 (21:29 +0200)] 
[3.14] Fix sphinx-lint warnings (default-role used). (GH-134647) (#134670)

Fix sphinx-lint warnings (default-role used). (GH-134647)
(cherry picked from commit 24a47155d2172966fab7d56f2bf9181056fba8d0)

Co-authored-by: Julien Palard <julien@palard.fr>
5 months ago[3.14] GH-130328: Fix WindowsConsoleGetEventTests after gh-133728 (gh-134660) (gh...
Miss Islington (bot) [Sun, 25 May 2025 18:43:07 +0000 (20:43 +0200)] 
[3.14] GH-130328: Fix WindowsConsoleGetEventTests after gh-133728 (gh-134660) (gh-134666)

(cherry picked from commit 1000283694136ee0538baa6c6b2eee662ee618d4)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
5 months ago[3.14] gh-133960: Improve typing.evaluate_forward_ref (GH-133961) (#134663)
Miss Islington (bot) [Sun, 25 May 2025 17:52:04 +0000 (19:52 +0200)] 
[3.14] gh-133960: Improve typing.evaluate_forward_ref (GH-133961) (#134663)

gh-133960: Improve typing.evaluate_forward_ref (GH-133961)

As explained in GH-133960, this removes most of the behavior differences with ForwardRef.evaluate.
The remaining difference is about recursive evaluation of forwardrefs; this is practically useful
in cases where an annotation refers to a type alias that itself is string-valued.

This also improves several edge cases that were previously not handled optimally. For example,
the function now takes advantage of the partial evaluation behavior of ForwardRef.evaluate() to
evaluate more ForwardRefs in the FORWARDREF format.

This also fixes GH-133959 as a side effect, because the buggy behavior in GH-133959 derives from
evaluate_forward_ref().
(cherry picked from commit 57fef27cfc2bdfc1e3a65ef8c8a760198d15b14d)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty...
Miss Islington (bot) [Sun, 25 May 2025 17:39:44 +0000 (19:39 +0200)] 
[3.14] annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (GH-134661) (#134662)

annotationlib docs: note that ForwardRef.evaluate eventually defaults to empty globals (GH-134661)
(cherry picked from commit b51b08a0a5fedde4f74e4cc338b8b5ad9656ad50)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] gh-134582: Fix t-strings untokenize() roundtrip removing space between braces...
Miss Islington (bot) [Sun, 25 May 2025 16:48:19 +0000 (18:48 +0200)] 
[3.14] gh-134582: Fix t-strings untokenize() roundtrip removing space between braces (GH-134603) (#134659)

gh-134582: Fix t-strings untokenize() roundtrip removing space between braces (GH-134603)
(cherry picked from commit 52509cc94b1a18cb325dbfa7e5f830b32759a903)

Co-authored-by: Loïc Simon <loic.pano@gmail.com>
5 months ago[3.14] gh-133684: Fix get_annotations() where PEP 563 is involved (GH-133795) (#134656)
Miss Islington (bot) [Sun, 25 May 2025 16:05:19 +0000 (18:05 +0200)] 
[3.14] gh-133684: Fix get_annotations() where PEP 563 is involved (GH-133795) (#134656)

gh-133684: Fix get_annotations() where PEP 563 is involved (GH-133795)
(cherry picked from commit 3e562b394252ff75d9809b7940020a775e4df68b)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] gh-133778: Fix setting `__annotations__` under PEP 563 (GH-133794) (#134655)
Miss Islington (bot) [Sun, 25 May 2025 16:04:22 +0000 (18:04 +0200)] 
[3.14] gh-133778: Fix setting `__annotations__` under PEP 563 (GH-133794) (#134655)

gh-133778: Fix setting `__annotations__` under PEP 563 (GH-133794)
(cherry picked from commit 4443110c3409ecba9f0fd49495d039030cb7ed58)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
5 months ago[3.14] GH-130328: Speedup pasting in legacy console on Windows (gh-133728) (#134653)
Miss Islington (bot) [Sun, 25 May 2025 13:54:28 +0000 (15:54 +0200)] 
[3.14] GH-130328: Speedup pasting in legacy console on Windows (gh-133728) (#134653)

(cherry picked from commit 91b48868a82821c1cbfd2245212699b57d3a24c7)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
5 months ago[3.14] gh-134578: Mark more slow tests (GH-134579) (GH-134590)
Miss Islington (bot) [Sat, 24 May 2025 15:06:54 +0000 (17:06 +0200)] 
[3.14] gh-134578: Mark more slow tests (GH-134579) (GH-134590)

(cherry picked from commit 77eade39f972a4f3d8e9fec00288779f35ceee21)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-134168: fix `http.server` CLI support for IPv6 and `--directory` when servi...
Bénédikt Tran [Sat, 24 May 2025 13:34:31 +0000 (15:34 +0200)] 
[3.14] gh-134168: fix `http.server` CLI support for IPv6 and `--directory` when serving over HTTPS (GH-134169) (#134630)

[3.14] gh-134168: fix `http.server` CLI support for IPv6 and `--directory` when serving over HTTPS (GH-134169)
(cherry picked from commit 2fd09b011031f3c00c342b44e02e2817010e507c)

Co-authored-by: ggqlq <124190229+ggqlq@users.noreply.github.com>
5 months ago[3.14] gh-134595: Update HOWTO to reflect change in CIBW option (GH-134598) (#134622)
Miss Islington (bot) [Sat, 24 May 2025 07:21:34 +0000 (09:21 +0200)] 
[3.14] gh-134595: Update HOWTO to reflect change in CIBW option (GH-134598) (#134622)

Co-authored-by: Jasper Wong <111284156+3willows@users.noreply.github.com>
5 months ago[3.14] gh-80334: fix multiprocessing.freeze_support for other spawn platforms (GH...
Miss Islington (bot) [Sat, 24 May 2025 04:16:02 +0000 (06:16 +0200)] 
[3.14] gh-80334: fix multiprocessing.freeze_support for other spawn platforms (GH-134462) (#134619)

gh-80334: fix multiprocessing.freeze_support for other spawn platforms (GH-134462)

Doc/library/multiprocessing.rst: freeze_support: Change to specify spawn method instead of platform
Have multiprocessing.freeze_support() enable on spawn, not just win32.

---------
(cherry picked from commit 80284b5c5eebd0e603c38322f94a97a2853ceeba)

Co-authored-by: Eddy Mulyono <eddymul@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 months ago[3.14] gh-134546: ensure remote pdb script is readable (GH-134552) (#134616)
Miss Islington (bot) [Sat, 24 May 2025 03:34:17 +0000 (05:34 +0200)] 
[3.14] gh-134546: ensure remote pdb script is readable (GH-134552) (#134616)

gh-134546: ensure remote pdb script is readable (GH-134552)
(cherry picked from commit 74a9c60f3ee2195e506144c3811090f1334c996b)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
5 months ago[3.14] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) ...
Miss Islington (bot) [Sat, 24 May 2025 03:33:35 +0000 (05:33 +0200)] 
[3.14] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) (#134610)

gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841)

GH-128840: Limit the number of parts in IPv6 address parsing
Limit length of IP address string to 39

---------
(cherry picked from commit 47f1161d3a2bec52b5b5e952150141709c247da2)

Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
5 months ago[3.14] gh-132983: Make _zstd C code PEP 7 compliant (GH-134605) (#134609)
Miss Islington (bot) [Sat, 24 May 2025 02:28:40 +0000 (04:28 +0200)] 
[3.14] gh-132983: Make _zstd C code PEP 7 compliant (GH-134605) (#134609)

gh-132983: Make _zstd C code PEP 7 compliant (GH-134605)

Make _zstd C code PEP 7 compliant
(cherry picked from commit 973b8f69d31b4d86c37e0b7194a209f4f2efff06)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] gh-132983: Slightly tweak error messages for _zstd compressor/decompressor...
Miss Islington (bot) [Fri, 23 May 2025 22:18:08 +0000 (00:18 +0200)] 
[3.14] gh-132983: Slightly tweak error messages for _zstd compressor/decompressor options dict (GH-134601) (#134602)

gh-132983: Slightly tweak error messages for _zstd compressor/decompressor options dict (GH-134601)

Slightly tweak error messages for options dict
(cherry picked from commit f478331f98930d94f7efc741f3bed4b693d5cec1)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] gh-134557: Revert "[3.14] gh-132775: Use _PyCode GetScriptXIData()" (gh-134600)
Eric Snow [Fri, 23 May 2025 20:11:38 +0000 (14:11 -0600)] 
[3.14] gh-134557:  Revert "[3.14] gh-132775: Use _PyCode GetScriptXIData()" (gh-134600)

This reverts commit bbf8048c0f9c, AKA gh-134515.

We are reverting due to refleaks on free-threaded builds.

5 months ago[3.14] gh-134381: Fix RuntimeError when starting not-yet started Thread after fork...
Miss Islington (bot) [Fri, 23 May 2025 19:49:13 +0000 (21:49 +0200)] 
[3.14] gh-134381: Fix RuntimeError when starting not-yet started Thread after fork (gh-134514) (gh-134596)

(cherry picked from commit 9a2346df861f26d5f8d054ad2f9c37134dee3822)

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
5 months ago[3.14] gh-133454: Reduce the number of threads in test_racing_getbuf_and_releasebuf...
Miss Islington (bot) [Fri, 23 May 2025 17:23:47 +0000 (19:23 +0200)] 
[3.14] gh-133454: Reduce the number of threads in test_racing_getbuf_and_releasebuf (GH-133458) (GH-134589)

The original reproducer only used 10 threads.
(cherry picked from commit fc0c9c24121c1a62b25b79062286f976699b59e9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] Further improves Advanced installation docs for PyManager (GH-134541) (GH...
Miss Islington (bot) [Fri, 23 May 2025 10:23:06 +0000 (12:23 +0200)] 
[3.14] Further improves Advanced installation docs for PyManager (GH-134541) (GH-134576)

Further improves Advanced installation docs for PyManager (GH-134541)
(cherry picked from commit 99a9ab1c64dce26c0f2dce7621b4d7f75da69856)

Co-authored-by: Steve Dower <steve.dower@python.org>
5 months ago[3.14] gh-133885: Use locks instead of critical sections for _zstd (gh-134289) (gh...
Miss Islington (bot) [Fri, 23 May 2025 10:00:38 +0000 (12:00 +0200)] 
[3.14] gh-133885: Use locks instead of critical sections for _zstd (gh-134289) (gh-134560)

Move from using critical sections to locks for the (de)compression methods.
Since the methods allow other threads to run, we should use a lock rather
than a critical section.
(cherry picked from commit 8dbc11971974a725dc8a11c0dc65d8f6fcb4d902)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
5 months ago[3.14] gh-106318: Add example for `str.count()` (GH-134519) (#134574)
Miss Islington (bot) [Fri, 23 May 2025 09:53:16 +0000 (11:53 +0200)] 
[3.14] gh-106318: Add example for `str.count()` (GH-134519) (#134574)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
5 months ago[3.14] gh-106318: Add example for `str.center()` (GH-134518) (#134571)
Miss Islington (bot) [Fri, 23 May 2025 09:51:17 +0000 (11:51 +0200)] 
[3.14] gh-106318: Add example for `str.center()` (GH-134518) (#134571)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
5 months ago[3.14] gh-134451: Converted `asyncio.tools.CycleFoundException` from dataclass to...
Miss Islington (bot) [Fri, 23 May 2025 05:40:56 +0000 (07:40 +0200)] 
[3.14] gh-134451: Converted `asyncio.tools.CycleFoundException` from dataclass to a regular exception type. (GH-134513) (#134564)

gh-134451: Converted `asyncio.tools.CycleFoundException` from dataclass to a regular exception type. (GH-134513)
(cherry picked from commit f9324cb3cb4d9bb9f0aef2e48b8afa895bde4b0d)

Co-authored-by: Evgeny Demchenko <v1mpire@icloud.com>
5 months ago[3.14] gh-114177: avoid calling connection lost callbacks when loop is already closed...
Miss Islington (bot) [Fri, 23 May 2025 04:58:51 +0000 (06:58 +0200)] 
[3.14] gh-114177: avoid calling connection lost callbacks when loop is already closed in asyncio subprocess (GH-134508) (#134561)

gh-114177: avoid calling connection lost callbacks when loop is already closed in asyncio subprocess (GH-134508)
(cherry picked from commit 5804ee7b467d86131be3ff7d569443efb0d0f9fd)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months ago[3.14] gh-128307: Update docs for asyncio.create_task, TaskGroup.create_task, asyncio...
Miss Islington (bot) [Fri, 23 May 2025 04:06:19 +0000 (06:06 +0200)] 
[3.14] gh-128307: Update docs for asyncio.create_task, TaskGroup.create_task, asyncio.create_task (GH-134202) (#134553)

gh-128307: Update docs for asyncio.create_task, TaskGroup.create_task, asyncio.create_task (GH-134202)
(cherry picked from commit a3d0306ca08d09b1417d72df62e3b9d775143031)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
5 months ago[3.14] Docs: fix link in free-threading-python.rst (GH-134548) (#134555)
Miss Islington (bot) [Fri, 23 May 2025 00:42:48 +0000 (02:42 +0200)] 
[3.14] Docs: fix link in free-threading-python.rst (GH-134548) (#134555)

5 months ago[3.14] GH-131769: fix detecting a pydebug build of the build Python when building...
Brett Cannon [Thu, 22 May 2025 22:07:21 +0000 (15:07 -0700)] 
[3.14] GH-131769: fix detecting a pydebug build of the build Python when building for WASI (GH-133219)

5 months ago[3.14] GH-130397: remove special-casing of C stack depth for WASI (GH-134469) (GH...
Miss Islington (bot) [Thu, 22 May 2025 21:42:23 +0000 (23:42 +0200)] 
[3.14] GH-130397: remove special-casing of C stack depth for WASI (GH-134469) (GH-134547)

GH-130397: remove special-casing of C stack depth for WASI (GH-134469)

Removed special-casing for WASI when setting C stack depth limits. Since WASI has its own C stack checking this isn't a security risk.

Also disabled some tests that stopped passing. They all happened to have already been disabled under Emscripten.
(cherry picked from commit ad42dc1909bdf8ec775b63fb22ed48ff42797a17)

Co-authored-by: Brett Cannon <brett@python.org>
5 months ago[3.14] Avoid `__file__` in `hashlib` example (GH-134540) (#134549)
Miss Islington (bot) [Thu, 22 May 2025 21:37:52 +0000 (23:37 +0200)] 
[3.14] Avoid `__file__` in `hashlib` example (GH-134540) (#134549)

Avoid `__file__` in `hashlib` example (GH-134540)
(cherry picked from commit 9b292ff0223dab0f999d5c1e13355552fd7cd528)

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
5 months ago[3.14] Docs: Add note to tutorial clarifying scope (GH-134534) (#134536)
Miss Islington (bot) [Thu, 22 May 2025 18:32:49 +0000 (20:32 +0200)] 
[3.14] Docs: Add note to tutorial clarifying scope (GH-134534) (#134536)

Docs: Add note to tutorial clarifying scope (GH-134534)

* Add note to tutorial

* Update formatting
(cherry picked from commit 742d5b5c5d75eae44c66a43ebfa24a4f286ea8a1)

Co-authored-by: Kattni <kattni@kattni.com>
5 months ago[3.14] gh-132775: Fix Recently Introduced Warnings (gh-134532)
Miss Islington (bot) [Thu, 22 May 2025 17:49:05 +0000 (19:49 +0200)] 
[3.14] gh-132775: Fix Recently Introduced Warnings (gh-134532)

(cherry picked from commit ac06b534eed, AKA gh-134530)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-132775: Make _PyXI_session Opaque (gh-134522)
Miss Islington (bot) [Thu, 22 May 2025 17:12:52 +0000 (19:12 +0200)] 
[3.14] gh-132775: Make _PyXI_session Opaque (gh-134522)

This is mostly a refactor to clean things up a bit, most notably the "XI namespace" code.

Making the session opaque requires adding the following internal-only functions:

* _PyXI_NewSession()
* _PyXI_FreeSession()
* _PyXI_GetMainNamespace()

(cherry picked from commit 4a4ac3ab4d, gh-134452)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-134322: Fix `repr(threading.RLock)` (GH-134389) (#134528)
Miss Islington (bot) [Thu, 22 May 2025 17:12:21 +0000 (19:12 +0200)] 
[3.14] gh-134322: Fix `repr(threading.RLock)` (GH-134389) (#134528)

gh-134322: Fix `repr(threading.RLock)` (GH-134389)

Fix the `__repr__` value of `threading.RLock` from `_thread` module, when just created.
(cherry picked from commit fade146cfb1616ad7b3b918bedb86756dedf79e6)

Co-authored-by: Duprat <yduprat@gmail.com>
5 months ago[3.14] gh-132775: Use _PyCode GetScriptXIData() (gh-134515)
Miss Islington (bot) [Thu, 22 May 2025 15:07:11 +0000 (17:07 +0200)] 
[3.14] gh-132775: Use _PyCode GetScriptXIData() (gh-134515)

(cherry picked from commit 09e72cf091d, AKA gh-134511)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-133740: Fix locale.nl_langinfo(ALT_DIGITS) (GH-134468) (#134512)
Miss Islington (bot) [Thu, 22 May 2025 14:31:26 +0000 (16:31 +0200)] 
[3.14] gh-133740: Fix locale.nl_langinfo(ALT_DIGITS) (GH-134468) (#134512)

gh-133740: Fix locale.nl_langinfo(ALT_DIGITS) (GH-134468)

Set the LC_CTYPE locale to the LC_TIME locale even if
nl_langinfo(ALT_DIGITS) result is ASCII. The result is a list
separated by NUL characters and the code only checks the first list
item which can be ASCII whereas following items are non-ASCII.

Fix test__locale for the uk_UA locale on RHEL 7.
(cherry picked from commit 899c7dc283cb899fdfd79fb479b38352f48e454a)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] gh-134323: Fix the new `threading.RLock.locked` method (GH-134368) (#134510)
Miss Islington (bot) [Thu, 22 May 2025 14:14:53 +0000 (16:14 +0200)] 
[3.14] gh-134323: Fix the new `threading.RLock.locked` method (GH-134368) (#134510)

gh-134323: Fix the new `threading.RLock.locked` method (GH-134368)
(cherry picked from commit 3effede97cc13fc0c5ab5dcde26cc319f388e84c)

Co-authored-by: Duprat <yduprat@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
5 months ago[3.14] gh-134370: Added clarification on instance annotations (GH-134387) (#134509)
Miss Islington (bot) [Thu, 22 May 2025 13:52:37 +0000 (15:52 +0200)] 
[3.14] gh-134370: Added clarification on instance annotations (GH-134387) (#134509)

gh-134370: Added clarification on instance annotations (GH-134387)

Instances of classes cannot have annotations,
however sometimes they will erroneously have the
__annotations__ attribute
(cherry picked from commit bd4046f4f869039a1a2ebe2d1d18bfbc2a2951b6)

Co-authored-by: Alex Kautz <alex@takemobi.com>
5 months ago[3.14] gh-132775: Use _PyObject_GetXIData (With Fallback) (gh-134507)
Miss Islington (bot) [Thu, 22 May 2025 13:21:05 +0000 (15:21 +0200)] 
[3.14] gh-132775: Use _PyObject_GetXIData (With Fallback) (gh-134507)

This change includes some semi-related refactoring of queues and channels.

(cherry picked from commit d0eedfa10e, gh-134440)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
5 months ago[3.14] gh-134455: Fix `build-details.json` to use the ``c_api.headers`` key (GH-13445...
Miss Islington (bot) [Thu, 22 May 2025 12:26:26 +0000 (14:26 +0200)] 
[3.14] gh-134455: Fix `build-details.json` to use the ``c_api.headers`` key (GH-134456) (#134504)

Co-authored-by: Michał Górny <mgorny@gentoo.org>
Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
5 months ago[3.14] gh-71339: Use new assertion methods in tests (GH-129046) (GH-134498)
Miss Islington (bot) [Thu, 22 May 2025 10:42:50 +0000 (12:42 +0200)] 
[3.14] gh-71339: Use new assertion methods in tests (GH-129046) (GH-134498)

(cherry picked from commit 2602d8ae981c4bae1cada2c174b367d97f712efb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.14] Consistent sentence case in docs template files (GH-134412) (#134495)
Miss Islington (bot) [Thu, 22 May 2025 09:57:42 +0000 (11:57 +0200)] 
[3.14] Consistent sentence case in docs template files (GH-134412) (#134495)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 months ago[3.14] gh-131357: Add some extra tests for empty bytes and bytearray (GH-134458)...
Miss Islington (bot) [Thu, 22 May 2025 08:34:46 +0000 (10:34 +0200)] 
[3.14] gh-131357: Add some extra tests for empty bytes and bytearray (GH-134458) (#134489)

gh-131357: Add some extra tests for empty bytes and bytearray (GH-134458)
(cherry picked from commit 7309eb60c077836b4b05a86ed23c710dbff737ec)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>