]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
7 months ago[3.13] Escape hyphens in manpage (GH-132291) (#132334)
Miss Islington (bot) [Wed, 9 Apr 2025 22:47:32 +0000 (00:47 +0200)] 
[3.13] Escape hyphens in manpage (GH-132291) (#132334)

Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
7 months ago[3.13] Remove a duplicate word in the Makefile (GH-132301) (#132325)
Miss Islington (bot) [Wed, 9 Apr 2025 21:57:54 +0000 (23:57 +0200)] 
[3.13] Remove a duplicate word in the Makefile (GH-132301) (#132325)

Co-authored-by: Chu <tomzz233333@gmail.com>
7 months ago[3.13] gh-130587: Invoke regen-token rst with rstfile as an argument (GH-132304)...
Miss Islington (bot) [Wed, 9 Apr 2025 18:44:49 +0000 (20:44 +0200)] 
[3.13] gh-130587: Invoke regen-token rst with rstfile as an argument (GH-132304) (#132327)

Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
7 months ago[3.13] gh-131434: Improve error reporting for incorrect format in strptime() (GH...
Miss Islington (bot) [Wed, 9 Apr 2025 10:50:24 +0000 (12:50 +0200)] 
[3.13] gh-131434: Improve error reporting for incorrect format in strptime() (GH-131568) (GH-132309)

In particularly, fix regression in detecting stray % at the end of the
format string.
(cherry picked from commit 3feac7a093b3fcd549c5dc54277f26f585f2ab0c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 months ago[3.13] gh-130631: Make join_header_words() more similar to the original Perl version...
Serhiy Storchaka [Wed, 9 Apr 2025 09:18:31 +0000 (12:18 +0300)] 
[3.13] gh-130631: Make join_header_words() more similar to the original Perl version (GH-130632) (GH-132303)

* Always quote strings with non-ASCII characters.
* Allow some non-separator and non-control characters (like "." or "-")
  be unquoted.
* Always quote strings that end with "\n".
* Use the fullmatch() method for clarity and optimization.
(cherry picked from commit 7ebbd271444d89218870169624921b795a717470)

7 months ago[3.13] gh-131507: Add a way to recreate the `Misc/mypy` symlinks if missing (GH-13227...
Miss Islington (bot) [Tue, 8 Apr 2025 23:37:26 +0000 (01:37 +0200)] 
[3.13] gh-131507: Add a way to recreate the `Misc/mypy` symlinks if missing (GH-132274) (#132293)

They will be removed in source tarballs so they don't appear in the SBOM.

(cherry picked from commit 16dcb576f7623e19f22be631bbc0e565335da969)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
7 months ago[3.13] gh-106670: Fix a typo in doc of pdb's exceptions command (GH-132277) (#132279)
Miss Islington (bot) [Tue, 8 Apr 2025 21:28:35 +0000 (23:28 +0200)] 
[3.13] gh-106670: Fix a typo in doc of pdb's exceptions command (GH-132277) (#132279)

gh-106670: Fix a typo in doc of pdb's exceptions command (GH-132277)
(cherry picked from commit efd8aca62c214dde6115822a659403fb05340680)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
7 months ago[3.13] gh-132250: Clear error in lsprof callback when method descriptor raises an...
Miss Islington (bot) [Tue, 8 Apr 2025 21:19:40 +0000 (23:19 +0200)] 
[3.13] gh-132250: Clear error in lsprof callback when method descriptor raises an excep… (GH-132251) (#132281)

gh-132250: Clear error in lsprof callback when method descriptor raises an excep… (GH-132251)
(cherry picked from commit ab64130b572424695bf072f7608a536997dce14f)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
7 months agoMerge branch '3.13' of https://github.com/python/cpython into 3.13
Thomas Wouters [Tue, 8 Apr 2025 17:22:26 +0000 (19:22 +0200)] 
Merge branch '3.13' of https://github.com/python/cpython into 3.13

7 months agoPost 3.13.3
Thomas Wouters [Tue, 8 Apr 2025 17:19:59 +0000 (19:19 +0200)] 
Post 3.13.3

7 months ago[3.13] gh-132063: ensure that `ProcessPoolExecutor` does not swallow falsey exception...
Miss Islington (bot) [Tue, 8 Apr 2025 15:36:52 +0000 (17:36 +0200)] 
[3.13] gh-132063: ensure that `ProcessPoolExecutor` does not swallow falsey exceptions (GH-132129) (#132275)

gh-132063: ensure that `ProcessPoolExecutor` does not swallow falsey exceptions (GH-132129)
(cherry picked from commit 933c6653cba235b3af2250bb19713694b560c367)

Co-authored-by: Duprat <yduprat@gmail.com>
7 months agoPython 3.13.3 v3.13.3
Thomas Wouters [Tue, 8 Apr 2025 13:53:49 +0000 (15:53 +0200)] 
Python 3.13.3

7 months ago[3.13] gh-117779: Fix reading duplicated entries in zipfile by name (GH-129254) ...
Miss Islington (bot) [Tue, 8 Apr 2025 11:19:40 +0000 (13:19 +0200)] 
[3.13] gh-117779: Fix reading duplicated entries in zipfile by name (GH-129254) (GH-132263)

(cherry picked from commit 0f04f2456a2ff996cc670342a287928ab5f9b706)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 months ago[3.13] gh-131998: Fix `NULL` dereference when using an unbound method descriptor...
Peter Bierma [Tue, 8 Apr 2025 11:02:29 +0000 (07:02 -0400)] 
[3.13] gh-131998: Fix `NULL` dereference when using an unbound method descriptor in a specialized code path (GH-132000) (#132262)

(cherry picked from commit ac3c439cdfee8452f2bcceacd67a1f4e423ac3cf)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Mark Shannon <mark@hotpy.org>
7 months ago[3.13] gh-71339: Use new assertion methods in test_import and test_importlib (GH...
Serhiy Storchaka [Tue, 8 Apr 2025 10:43:04 +0000 (13:43 +0300)] 
[3.13] gh-71339: Use new assertion methods in test_import and test_importlib (GH-129052) (#129123)

(cherry picked from commit f7cc7d296c2cbb33d3f0bde4ace82e8569f7dbc3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 months ago[3.13] gh-102136: Add -m to options that work with -i (GH-119271) (GH-119285)
Miss Islington (bot) [Tue, 8 Apr 2025 10:31:47 +0000 (12:31 +0200)] 
[3.13] gh-102136: Add -m to options that work with -i (GH-119271) (GH-119285)

(cherry picked from commit 172690227e771c2e8ab137815073e3a172c08dec)

Co-authored-by: Melanie Arbor <hellomelaniec@gmail.com>
7 months ago[3.13] gh-130164: Fix inspect.Signature.bind() handling of positional-only args witho...
Miss Islington (bot) [Tue, 8 Apr 2025 09:08:06 +0000 (11:08 +0200)] 
[3.13] gh-130164: Fix inspect.Signature.bind() handling of positional-only args without defaults (GH-130192) (GH-130271)

Follow-up to 9c15202.
(cherry picked from commit dab456dcefd886bde44eb204dc6f1b2f14de0e9d)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
7 months ago[3.13] gh-132021: Add bool type to the list of allowed JSON key types (GH-132048...
Miss Islington (bot) [Tue, 8 Apr 2025 08:51:39 +0000 (10:51 +0200)] 
[3.13] gh-132021: Add bool type to the list of allowed JSON key types (GH-132048) (#132255)

gh-132021: Add bool type to the list of allowed JSON key types (GH-132048)
(cherry picked from commit 403886c28ddb350bbcaea478f8d754ed14e10337)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
7 months ago[3.13] gh-130775: Allow negative locations in `ast` (GH-130795) (#132243)
sobolevn [Tue, 8 Apr 2025 08:47:24 +0000 (11:47 +0300)] 
[3.13] gh-130775: Allow negative locations in `ast` (GH-130795) (#132243)

(cherry picked from commit bc5233b6a5cdd8f77a4737ce317f94110869c082)

Co-authored-by: Victor Stinner <vstinner@python.org>
7 months ago[3.13] gh-132174: Fix function name in error message of `_interpreters.run_string...
Miss Islington (bot) [Tue, 8 Apr 2025 08:46:13 +0000 (10:46 +0200)] 
[3.13] gh-132174: Fix function name in error message of `_interpreters.run_string` (GH-132175) (#132209)

gh-132174: Fix function name in error message of `_interpreters.run_string` (GH-132175)
(cherry picked from commit f2daa96c81a45b26bdcf3d5c3887cec02137974e)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
7 months ago[3.13] gh-115684: Clarify datetime `replace` documentation (GH-116519) (#131676)
Miss Islington (bot) [Tue, 8 Apr 2025 08:45:21 +0000 (10:45 +0200)] 
[3.13] gh-115684: Clarify datetime `replace` documentation (GH-116519) (#131676)

gh-115684: Clarify datetime `replace` documentation (GH-116519)

* Clarify datetime `replace` documentation

In GH-115684, HopedForLuck noted that `datetime.date.replace()`
documentation was confusing because it looked like it would be changing
immutable objects.

This documentation change specifies that the `replace()` methods in
`datetime` return new objects. This uses similar wording to the
documentation for `datetime.combine()`, which specifies that a new
datetime is returned. This is also similar to wording for
`string.replace()`, except `string.replace()` emphasizes that a "copy"
is returned.

Resolves GH-115684.

* Include reviewer comments

Thanks Privat33r-dev for the comments!

---------
(cherry picked from commit d2d886215cf694d5f3e7f0cbd76507a96bac322b)

Co-authored-by: David Lowry-Duda <david@lowryduda.com>
Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
7 months ago[3.13] Add psfhosted Plausible instance to analytics (GH-132252) (#132253)
Miss Islington (bot) [Tue, 8 Apr 2025 07:51:18 +0000 (09:51 +0200)] 
[3.13] Add psfhosted Plausible instance to analytics (GH-132252) (#132253)

Add psfhosted Plausible instance to analytics (GH-132252)
(cherry picked from commit 40844164b1d1d0f072990ff94202c348771676d6)

Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
7 months ago[3.13] GH-130673: Gracefully handle missing sections in JIT build (GH-131749)
Miss Islington (bot) [Tue, 8 Apr 2025 02:16:23 +0000 (04:16 +0200)] 
[3.13] GH-130673: Gracefully handle missing sections in JIT build (GH-131749)

(cherry picked from commit a26a301f8b09c1825b288fc8649f8174576361f4)
Co-authored-by: Bojun Ren <bj.ren.coding@outlook.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
7 months ago[3.13] gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192) (#132236)
Miss Islington (bot) [Mon, 7 Apr 2025 21:24:55 +0000 (23:24 +0200)] 
[3.13] gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192) (#132236)

* gh-131809: Upgrade vendored expat to 2.7.1 (GH-132192)
(cherry picked from commit c0de6500249469e6fc5b458d6afb6bad1b6755cd)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
* make regen-sbom

---------

Co-authored-by: Gregory P. Smith <greg@krypto.org>
7 months ago[3.13] Docs HTML: Remove self-closing tags (GH-132220) (#132228)
Hugo van Kemenade [Mon, 7 Apr 2025 21:06:06 +0000 (00:06 +0300)] 
[3.13] Docs HTML: Remove self-closing tags (GH-132220) (#132228)

(cherry picked from commit ce724571b35f4e79fff1c862fcd9afa4c26b605f)

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
7 months ago[3.13] gh-130521: Add Open Graph meta tags to template pages (GH-130523) (#132239)
Miss Islington (bot) [Mon, 7 Apr 2025 21:05:15 +0000 (23:05 +0200)] 
[3.13] gh-130521: Add Open Graph meta tags to template pages (GH-130523) (#132239)

gh-130521: Add Open Graph meta tags to template pages (GH-130523)
(cherry picked from commit f5639d87f59043d3075dbd3d9075f30e872dd91a)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
7 months ago[3.13] GH-127953: Make line number lookup O(1) regardless of the size of the code...
Mark Shannon [Mon, 7 Apr 2025 18:15:02 +0000 (19:15 +0100)] 
[3.13] GH-127953: Make line number lookup O(1) regardless of the size of the code object (#129127)

GH-127953: Make line number lookup O(1) regardless of the size of the code object (GH-128350)

7 months ago[3.13] gh-131988: Fix a multithreaded scaling regression (#131989)
Sam Gross [Mon, 7 Apr 2025 18:13:02 +0000 (14:13 -0400)] 
[3.13] gh-131988: Fix a multithreaded scaling regression (#131989)

gh-131988: Fix a multithreaded scaling regression

The 3.13 free threaded build immortalizes certain objects to avoid
reference count contention. In gh-127114 the condition was
unintentionally changed to happen when the first thread was created
instead of the first non-main thread. The `interp->gc.immortalize` field
is then cleared again during `_PyGC_Init()`.

Change the condition so that we check if we should immortalize objects
using deferred reference counting whenever a non-main thread is created.

7 months ago[3.13] gh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` (GH-13222...
Miss Islington (bot) [Mon, 7 Apr 2025 14:52:55 +0000 (16:52 +0200)] 
[3.13] gh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` (GH-132222) (#132226)

gh-132221: Fix `__match_args__` generation docs in `dataclasses.rst` (GH-132222)
(cherry picked from commit 8b62374b344f5da852bed9f16619736d4d43936b)

Co-authored-by: sobolevn <mail@sobolevn.me>
7 months ago[3.13] gh-131852: Filter out POT-Creation-Date in msgfmt (GH-131880) (GH-132217)
Miss Islington (bot) [Mon, 7 Apr 2025 14:52:02 +0000 (16:52 +0200)] 
[3.13] gh-131852: Filter out POT-Creation-Date in msgfmt (GH-131880) (GH-132217)

(cherry picked from commit ad6a032cebf59d1668caa7e726aa5da72e1cbb5c)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
7 months ago[3.13] gh-132171: Fix `_interpreters.run_string` crash on string subclass (GH-132173...
Miss Islington (bot) [Mon, 7 Apr 2025 12:23:02 +0000 (14:23 +0200)] 
[3.13] gh-132171: Fix `_interpreters.run_string` crash on string subclass (GH-132173) (#132219)

gh-132171: Fix `_interpreters.run_string` crash on string subclass (GH-132173)
(cherry picked from commit 398071871066548954f4c51e8250d13b7c9659e0)

Co-authored-by: sobolevn <mail@sobolevn.me>
7 months ago[3.13] gh-122040: reword `Modules/xxmodule.c` module-level comment (GH-132201) (...
Miss Islington (bot) [Mon, 7 Apr 2025 08:27:34 +0000 (10:27 +0200)] 
[3.13] gh-122040: reword `Modules/xxmodule.c` module-level comment (GH-132201) (#132207)

gh-122040: reword `Modules/xxmodule.c` module-level comment (GH-132201)
(cherry picked from commit af8d1b95377917036aaedf18b9cc047d8877259c)

Co-authored-by: Sonny Ding <93831983+sonnyding1@users.noreply.github.com>
7 months ago[3.13] gh-131912: Improve description of grouping options in the format specification...
Prometheus3375 [Mon, 7 Apr 2025 07:19:13 +0000 (10:19 +0300)] 
[3.13] gh-131912: Improve description of grouping options in the format specification docs (GH-132030) (#132123)

(cherry picked from commit 06a110f5227ba9d52f6205fde55924a14cab36ff)

7 months ago[3.13] gh-129204: Add _PYTHON_SUBPROCESS_USE_POSIX_SPAWN environment knob (GH-132184...
Miss Islington (bot) [Mon, 7 Apr 2025 06:24:24 +0000 (08:24 +0200)] 
[3.13] gh-129204: Add _PYTHON_SUBPROCESS_USE_POSIX_SPAWN environment knob (GH-132184) (#132191)

gh-129204: Add _PYTHON_SUBPROCESS_USE_POSIX_SPAWN environment knob (GH-132184)

* Add _PYTHON_SUBPROCESS_USE_POSIX_SPAWN environment knob

Add support for disabling the use of `posix_spawn` via a variable in
the process environment.

While it was previously possible to toggle this by modifying the value
of `subprocess._USE_POSIX_SPAWN`, this required either patching CPython
or modifying it within the interpreter instance which is not always
possible, such as when running applications or scripts not under a
user's control.

* fixup NEWS entry

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

Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Co-authored-by: Vincent Fazio <vfazio@gmail.com>
7 months ago[3.13] gh-124111: Update macOS installer to use Tcl/Tk 8.6.16. (GH-132190)
Miss Islington (bot) [Mon, 7 Apr 2025 06:09:43 +0000 (08:09 +0200)] 
[3.13] gh-124111: Update macOS installer to use Tcl/Tk 8.6.16. (GH-132190)

(cherry picked from commit c55c0201fc09336f193cfc9992dc5e506fd7172d)
Co-authored-by: Ned Deily <nad@python.org>
7 months ago[3.13] gh-131423: Update macOS installer to use OpenSSL 3.0.16. (GH-132189)
Miss Islington (bot) [Mon, 7 Apr 2025 05:40:11 +0000 (07:40 +0200)] 
[3.13] gh-131423: Update macOS installer to use OpenSSL 3.0.16. (GH-132189)

Patch by Bénédikt Tran.
(cherry picked from commit ce49022b07928d58d1aecfbcd8ea1bf1055065ed)
Co-authored-by: Ned Deily <nad@python.org>
7 months ago[3.13] gh-91132: Update macOS installer to use ncurses 6.5. (GH-129990)
Miss Islington (bot) [Mon, 7 Apr 2025 03:44:56 +0000 (05:44 +0200)] 
[3.13] gh-91132: Update macOS installer to use ncurses 6.5. (GH-129990)

(cherry picked from commit 0dbe543d70d7f014d4c1e0308f04c1d91bd815ca)

Co-authored-by: Ned Deily <nad@python.org>
7 months ago[3.13] Docs: Add a single table summary for ``cmath`` (GH-131887) (#132179)
Miss Islington (bot) [Sun, 6 Apr 2025 23:42:49 +0000 (01:42 +0200)] 
[3.13] Docs: Add a single table summary for ``cmath`` (GH-131887) (#132179)

Docs: Add a single table summary for ``cmath`` (GH-131887)
(cherry picked from commit 6eaa4aeef25f77a31768d8ba5a03f614766aba95)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
7 months ago[3.13] gh-132011: Fix crash on invalid `CALL_LIST_APPEND` deoptimization (GH-132018...
sobolevn [Sun, 6 Apr 2025 17:08:48 +0000 (20:08 +0300)] 
[3.13] gh-132011: Fix crash on invalid `CALL_LIST_APPEND` deoptimization (GH-132018) (#132161)

* [3.13] gh-132011: Fix crash on invalid `CALL_LIST_APPEND` deoptimization (GH-132018)
(cherry picked from commit c0661df42ad20e488dbfa3e0fec22462833fc3d6)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
7 months ago[3.13] gh-132159: Do not shadow user arguments in generated `__new__` by `@warnings...
Miss Islington (bot) [Sun, 6 Apr 2025 17:00:54 +0000 (19:00 +0200)] 
[3.13] gh-132159: Do not shadow user arguments in generated `__new__` by `@warnings.deprecated` (GH-132160) (#132163)

gh-132159: Do not shadow user arguments in generated `__new__` by `@warnings.deprecated` (GH-132160)
(cherry picked from commit 7bb1e1a23634bae81bf76fdb34e9f9f7e59b3793)

Co-authored-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
7 months ago[3.13] gh-132038: Make perf version check in test_perf_profiler more robust (GH-13203...
Miss Islington (bot) [Sun, 6 Apr 2025 09:28:22 +0000 (11:28 +0200)] 
[3.13] gh-132038: Make perf version check in test_perf_profiler more robust (GH-132039) (#132058)

gh-132038: Make perf version check in test_perf_profiler more robust (GH-132039)

Should work also if the version string includes a commit hash, like `perf version 6.12.9.g242e6068fd5c`
(cherry picked from commit b6c92ec419cfa1e4483b072996bab403c9970a5d)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
7 months ago[3.13] Docs: Replace dead hyperlink for CGI environment variables (GH-132137) (#132150)
Miss Islington (bot) [Sun, 6 Apr 2025 08:53:15 +0000 (10:53 +0200)] 
[3.13] Docs: Replace dead hyperlink for CGI environment variables (GH-132137) (#132150)

Docs: Replace dead hyperlink for CGI environment variables (GH-132137)
(cherry picked from commit 0a10b45dd16a8c971363d917b9ebd1266e65f710)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
7 months ago[3.13] gh-132134: Add the clangd ``.cache`` directory to ``.gitignore`` (GH-132135...
Miss Islington (bot) [Sun, 6 Apr 2025 04:49:10 +0000 (06:49 +0200)] 
[3.13] gh-132134: Add the clangd ``.cache`` directory to ``.gitignore`` (GH-132135) (#132144)

gh-132134: Add the clangd ``.cache`` directory to ``.gitignore`` (GH-132135)
(cherry picked from commit 86804003ed70acbf8a2531c6784895d750c50456)

Signed-off-by: Manjusaka <me@manjusaka.me>
Co-authored-by: Nadeshiko Manju <me@manjusaka.me>
7 months ago[3.13] Fix numbered list syntax in programming.rst (GH-130158) (#132140)
Miss Islington (bot) [Sat, 5 Apr 2025 19:26:40 +0000 (21:26 +0200)] 
[3.13] Fix numbered list syntax in programming.rst (GH-130158) (#132140)

Fix numbered list syntax in programming.rst (GH-130158)
(cherry picked from commit 376631829aab72e320e19102fc55cbca5af8c733)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
7 months ago[3.13] Skip a test for Bluetooth HCI socket (added in GH-132023) if it fails (GH...
Miss Islington (bot) [Sat, 5 Apr 2025 14:05:27 +0000 (16:05 +0200)] 
[3.13] Skip a test for Bluetooth HCI socket (added in GH-132023) if it fails (GH-132072) (GH-132125)

(cherry picked from commit ef70f029255b10faf659a54f79f9de4c003ec331)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 months ago[3.13] Add tests for Bluetooth RFCOMM, HCI and SCO (GH-132023) (GH-132071)
Serhiy Storchaka [Sat, 5 Apr 2025 12:01:35 +0000 (15:01 +0300)] 
[3.13] Add tests for Bluetooth RFCOMM, HCI and SCO (GH-132023) (GH-132071)

(cherry picked from commit 2ccd6aae4dff09a672a68303032f0056b43622dd)

7 months ago[3.13] gh-131015: Add test for bytes formatting errors (#131881) (#132115)
Bénédikt Tran [Sat, 5 Apr 2025 09:40:33 +0000 (11:40 +0200)] 
[3.13] gh-131015: Add test for bytes formatting errors (#131881) (#132115)

* gh-131015: Add test for bytes formatting errors (#131881)

Co-authored-by: Ageev Maxim <maksim170901@gmail.com>
(cherry picked from commit 05557788f3c284ede73e6f94810ec796bb9d3721)

7 months ago[3.13] Docs: document `plistlib.InvalidFileException` (GH-132069) (#132116)
Miss Islington (bot) [Sat, 5 Apr 2025 08:53:13 +0000 (10:53 +0200)] 
[3.13] Docs: document `plistlib.InvalidFileException` (GH-132069) (#132116)

Docs: document `plistlib.InvalidFileException` (GH-132069)
(cherry picked from commit 99e9798d612222785db427eb295c847147fe5e78)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
7 months ago[3.13] gh-130115: fix thread identifiers for 32-bit musl (GH-130391) (GH-132089)
Miss Islington (bot) [Fri, 4 Apr 2025 20:57:35 +0000 (22:57 +0200)] 
[3.13] gh-130115: fix thread identifiers for 32-bit musl (GH-130391) (GH-132089)

CPython's pthread-based thread identifier relies on pthread_t being able
to be represented as an unsigned integer type.

This is true in most Linux libc implementations where it's defined as an
unsigned long, however musl typedefs it as a struct *.

If the pointer has the high bit set and is cast to PyThread_ident_t, the
resultant value can be sign-extended [0]. This can cause issues when
comparing against threading._MainThread's identifier. The main thread's
identifier value is retrieved via _get_main_thread_ident which is backed
by an unsigned long which truncates sign extended bits.

  >>> hex(threading.main_thread().ident)
  '0xb6f33f3c'
  >>> hex(threading.current_thread().ident)
  '0xffffffffb6f33f3c'

Work around this by conditionally compiling in some code for non-glibc
based Linux platforms that are at risk of sign-extension to return a
PyLong based on the main thread's unsigned long thread identifier if the
current thread is the main thread.

[0]: https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Arrays-and-pointers-implementation.html

---------
(cherry picked from commit 72123063ddee84bb2c9d591a23f420997e35af5a)

Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Co-authored-by: Vincent Fazio <vfazio@gmail.com>
7 months ago[3.13] Fix typo in `template_replace()` test helper docstring (GH-132094) (#132095)
Miss Islington (bot) [Fri, 4 Apr 2025 18:04:18 +0000 (20:04 +0200)] 
[3.13] Fix typo in `template_replace()` test helper docstring (GH-132094) (#132095)

Fix typo in `template_replace()` test helper docstring (GH-132094)
(cherry picked from commit ac3a7bfeccb752a59d88861e45b454db360aa69d)

Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
7 months ago[3.13] gh-128632: fix segfault on nested __classdict__ type param (GH-128744) (#132085)
Tomasz Pytel [Fri, 4 Apr 2025 15:23:40 +0000 (11:23 -0400)] 
[3.13] gh-128632: fix segfault on nested __classdict__ type param (GH-128744) (#132085)

(cherry picked from commit 891c61c1fa480928dd60cce8bbc8764630c95025)

Co-authored-by: Tomasz Pytel <tompytel@gmail.com>
7 months ago[3.13] gh-130655: Add a test for corrupt `.mo` files in `gettext` (GH-131911) (#132079)
Miss Islington (bot) [Fri, 4 Apr 2025 14:49:42 +0000 (16:49 +0200)] 
[3.13] gh-130655: Add a test for corrupt `.mo` files in `gettext` (GH-131911) (#132079)

gh-130655: Add a test for corrupt `.mo` files in `gettext` (GH-131911)
(cherry picked from commit a126cefc176a7ddbd1a09ce560195f6fd81a5c92)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
7 months ago[3.13] gh-130655: Add a test for bad magic numbers in `.mo` files parsed by `gettext...
Miss Islington (bot) [Fri, 4 Apr 2025 14:49:31 +0000 (16:49 +0200)] 
[3.13] gh-130655: Add a test for bad magic numbers in `.mo` files parsed by `gettext` (GH-131909) (#132077)

gh-130655: Add a test for bad magic numbers in `.mo` files parsed by `gettext` (GH-131909)
(cherry picked from commit 16a6270aa61c86c430a308c0f766a69a88c9a3a5)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
7 months ago[3.13] gh-130655: Add tests for `gettext.find()` (GH-130691) (#132084)
Miss Islington (bot) [Fri, 4 Apr 2025 14:39:35 +0000 (16:39 +0200)] 
[3.13] gh-130655: Add tests for `gettext.find()` (GH-130691) (#132084)

gh-130655: Add tests for `gettext.find()` (GH-130691)

(cherry picked from commit 3118693a1a3db0da96c565a2de015a806c892625)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
7 months ago[3.13] gh-132075: Fix possible use of sockaddr structures with uninitialized members...
Miss Islington (bot) [Fri, 4 Apr 2025 14:33:57 +0000 (16:33 +0200)] 
[3.13] gh-132075: Fix possible use of sockaddr structures with uninitialized members (GH-132076) (GH-132086)

Now all structure members are initialized with zeroes by default.
(cherry picked from commit 345baa77ba2ce3b8ea8f2fad84754e5cc0b10938)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
7 months agogh-131423: Update OpenSSL build tag to 3.0.16.2 to fix ARM64 crash (GH-132051)
Miss Islington (bot) [Thu, 3 Apr 2025 18:16:21 +0000 (20:16 +0200)] 
gh-131423: Update OpenSSL build tag to 3.0.16.2 to fix ARM64 crash (GH-132051)

(cherry picked from commit 24decb05ddda445d96f45e2cd0b39497318c98d4)

Co-authored-by: Steve Dower <steve.dower@python.org>
7 months ago[3.13] gh-130197: pygettext: Test the --escape option (GH-131902) (GH-132032)
Tomas R. [Wed, 2 Apr 2025 20:30:26 +0000 (22:30 +0200)] 
[3.13] gh-130197: pygettext: Test the --escape option (GH-131902) (GH-132032)

(cherry picked from commit 87d9983994e9a423e9e0050b1bbee52ebaf84367)

7 months ago[3.13] gh-131544: Update docs for PyType_AddWatcher (gh-132015) (gh-132019)
Miss Islington (bot) [Wed, 2 Apr 2025 16:24:43 +0000 (18:24 +0200)] 
[3.13] gh-131544: Update docs for PyType_AddWatcher (gh-132015) (gh-132019)

gh-131544: Update docs for PyType_AddWatcher (gh-132015)
(cherry picked from commit 25275bda790e8a689092e83855d6d0574f26061b)

Co-authored-by: Donghee Na <donghee.na@python.org>
7 months ago[3.13] gh-131888: fix ResourceWarning in test_ftplib (GH-131889) (#132009)
Miss Islington (bot) [Wed, 2 Apr 2025 12:54:21 +0000 (14:54 +0200)] 
[3.13] gh-131888: fix ResourceWarning in test_ftplib (GH-131889) (#132009)

gh-131888: fix ResourceWarning in test_ftplib (GH-131889)
(cherry picked from commit b0f77c4d250789fd1deaab4912919e2e6b89e583)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
7 months ago[3.13] gh-132002: Fix crash of `ContextVar` on unhashable `str` subtype (GH-132003...
Miss Islington (bot) [Wed, 2 Apr 2025 12:15:44 +0000 (14:15 +0200)] 
[3.13] gh-132002: Fix crash of `ContextVar` on unhashable `str` subtype (GH-132003) (#132007)

gh-132002: Fix crash of `ContextVar` on unhashable `str` subtype (GH-132003)
(cherry picked from commit ab2a3dda1d3b6668162a847bf5b6aca2855a3416)

Co-authored-by: sobolevn <mail@sobolevn.me>
7 months ago[3.13] Backport miscellaneous Android testbed changes (#131985)
Malcolm Smith [Wed, 2 Apr 2025 00:11:57 +0000 (01:11 +0100)] 
[3.13] Backport miscellaneous Android testbed changes (#131985)

Backport miscellaneous Android testbed changes from #125946, but without the
Android API version bump.

7 months ago[3.13] gh-111178: Fix getsockaddrarg() undefined behavior (#131668) (#131977)
Victor Stinner [Tue, 1 Apr 2025 14:40:00 +0000 (16:40 +0200)] 
[3.13] gh-111178: Fix getsockaddrarg() undefined behavior (#131668) (#131977)

gh-111178: Fix getsockaddrarg() undefined behavior (#131668)

Don't pass direct references to sockaddr members since their type may
not match PyArg_ParseTuple() types. Instead, use temporary 'int' and
'unsigned char' variables, and update sockaddr members afterwards.

On FreeBSD, treat BTPROTO_HCI node name as a bytes string,
not as an integer.

(cherry picked from commit 8cd29c2b533e5a1a262238695d05f2a7c44d6455)

7 months ago[3.13] gh-131736: only apply `security_level` workaround in `test_ssl` for security...
Miss Islington (bot) [Tue, 1 Apr 2025 08:22:28 +0000 (10:22 +0200)] 
[3.13] gh-131736: only apply `security_level` workaround in `test_ssl` for security levels greater than 1 (GH-131739) (#131967)

gh-131736: only apply `security_level` workaround in `test_ssl` for security levels greater than 1 (GH-131739)
(cherry picked from commit 3b3720f1a26ab34377542b48eb6a6565f78ff892)

Co-authored-by: Will Childs-Klein <willck93@gmail.com>
7 months ago[3.13] Minor improvements to the programming FAQ (GH-127261) (#131964)
Miss Islington (bot) [Tue, 1 Apr 2025 07:25:40 +0000 (09:25 +0200)] 
[3.13] Minor improvements to the programming FAQ (GH-127261) (#131964)

Minor improvements to the programming FAQ (GH-127261)
(cherry picked from commit 23a658b9af410b72beeb28ba4ace2d83896c5631)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
7 months ago[3.13] gh-125957: sync argument naming in sphinx docs of the cmath and help() (GH...
Miss Islington (bot) [Tue, 1 Apr 2025 07:22:29 +0000 (09:22 +0200)] 
[3.13] gh-125957: sync argument naming in sphinx docs of the cmath and help() (GH-125958) (#131962)

gh-125957: sync argument naming in sphinx docs of the cmath and help() (GH-125958)
(cherry picked from commit 0a3eb8855ccea52c618db1cf09840c6368a3745f)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
7 months ago[3.13] gh-131531: Add `android.py package` command (GH-131532) (#131960)
Miss Islington (bot) [Tue, 1 Apr 2025 02:05:39 +0000 (04:05 +0200)] 
[3.13] gh-131531: Add `android.py package` command (GH-131532) (#131960)

Adds a `package` entry point to the `android.py` build script to support
creating an Android distribution artefact.
(cherry picked from commit fe5c4c53e7bc6d780686013eaab17de2237b2176)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
7 months ago[3.13] gh-129917: Update installers to use SQLite 3.49.1 (GH-131025) (#131957)
Miss Islington (bot) [Mon, 31 Mar 2025 21:37:14 +0000 (23:37 +0200)] 
[3.13] gh-129917: Update installers to use SQLite 3.49.1 (GH-131025) (#131957)

gh-129917: Update installers to use SQLite 3.49.1 (GH-131025)

(cherry picked from commit 45a3ab5a81769eadd94da3e26eb9bb2f3ae80fb1)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Ned Deily <nad@python.org>
7 months ago[3.13] gh-131675: Fix `mi_atomic_yield` in mimalloc on 32-bit ARM (gh-131784) (gh...
Miss Islington (bot) [Mon, 31 Mar 2025 18:58:29 +0000 (20:58 +0200)] 
[3.13] gh-131675: Fix `mi_atomic_yield` in mimalloc on 32-bit ARM (gh-131784) (gh-131954)

Use the standard `__ARM_ARCH` macro, which is supported by GCC and Clang.

The branching logic for of `__ARMEL__` has been removed so if the target
architecture supports v7+ instructions, a yield is emitted, otherwise a nop
is emitted. This covers both big and little endian scenarios.
(cherry picked from commit 03f6c8e239723637811fd8d278661f5292351197)

Signed-off-by: Vincent Fazio <vfazio@gmail.com>
Co-authored-by: Vincent Fazio <vfazio@gmail.com>
7 months ago[3.13] gh-131865: Properly apply exported CFLAGS for dtrace/systemtap builds (GH...
Miss Islington (bot) [Mon, 31 Mar 2025 18:15:45 +0000 (20:15 +0200)] 
[3.13] gh-131865: Properly apply exported CFLAGS for dtrace/systemtap builds (GH-131866) (#131950)

gh-131865: Properly apply exported CFLAGS for dtrace/systemtap builds (GH-131866)

When using --with-dtrace the resulting object file could be missing
specific CFLAGS exported by the build system due to the systemtap
script using specific defaults.

Exporting the CC and CFLAGS variables before the dtrace invocation
allows us to properly apply CFLAGS exported by the build system
even when cross-compiling.

The fix does not affect the dtrace invocation on Solaris/macOS.
(cherry picked from commit 0cd4befb02df07c0b320cd6246227c13e57b2efb)

Co-authored-by: stratakis <cstratak@redhat.com>
7 months ago[3.13] gh-131936: Strengthen check in `_suggestions._generate_suggestions` (GH-131945...
Miss Islington (bot) [Mon, 31 Mar 2025 17:54:20 +0000 (19:54 +0200)] 
[3.13] gh-131936: Strengthen check in `_suggestions._generate_suggestions` (GH-131945) (#131949)

gh-131936: Strengthen check in `_suggestions._generate_suggestions` (GH-131945)
(cherry picked from commit 511d3440a0bbb19731f4d96dde65dffbf85cdda5)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
7 months ago[3.13] gh-126033: fix UAF in `xml.etree.ElementTree.Element.remove` when concurrent...
Miss Islington (bot) [Mon, 31 Mar 2025 12:50:03 +0000 (14:50 +0200)] 
[3.13] gh-126033: fix UAF in `xml.etree.ElementTree.Element.remove` when concurrent mutations happen (GH-126124) (#131929)

gh-126033: fix UAF in `xml.etree.ElementTree.Element.remove` when concurrent mutations happen (GH-126124)
(cherry picked from commit bab1398a47f6d0cfc1be70497f306874c749ef7c)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
7 months ago[3.13] gh-126037: fix UAF in `xml.etree.ElementTree.Element.find*` when current mutat...
Bénédikt Tran [Mon, 31 Mar 2025 12:48:42 +0000 (14:48 +0200)] 
[3.13] gh-126037: fix UAF in `xml.etree.ElementTree.Element.find*` when current mutations happen (#127964) (#131931)

gh-126037: fix UAF in `xml.etree.ElementTree.Element.find*` when concurrent mutations happen (#127964)

We fix a use-after-free in the `find`, `findtext` and `findall` methods of `xml.etree.ElementTree.Element`
objects that can be triggered when the tag to find implements an `__eq__` method that mutates the
element being queried.

(cherry picked from commit c57623c221d46daeaedfbf2b32d041fde0c882de)

7 months ago[3.13] gh-129994: update docs when using `dualstack_ipv6` in `socket.create_server...
Miss Islington (bot) [Sun, 30 Mar 2025 10:07:08 +0000 (12:07 +0200)] 
[3.13] gh-129994: update docs when using `dualstack_ipv6` in `socket.create_server` (GH-129996) (#131890)

gh-129994: update docs when using `dualstack_ipv6` in `socket.create_server` (GH-129996)
(cherry picked from commit 044a1e13d5cfc91b0a8774e936877e91cbac3a16)

Co-authored-by: Alexander Ershov <150328014+AEErshov@users.noreply.github.com>
7 months ago[3.13] gh-131885: Document that `dict.setdefault` and `dict.get` take no keyword...
Miss Islington (bot) [Sun, 30 Mar 2025 09:28:49 +0000 (11:28 +0200)] 
[3.13] gh-131885: Document that `dict.setdefault` and `dict.get` take no keyword arguments (GH-128208) (#131893)

gh-131885: Document that `dict.setdefault` and `dict.get` take no keyword arguments (GH-128208)
(cherry picked from commit edfbd8c062285e83dc5f596288df2a762e68bcdc)

Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
7 months ago[3.13] gh-128770: raise warnings as errors in test suite - except for test_socket...
Thomas Grainger [Sat, 29 Mar 2025 19:21:33 +0000 (19:21 +0000)] 
[3.13] gh-128770: raise warnings as errors in test suite - except for test_socket which still logs warnings, and internal test warnings that are now logged (#131802)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
(cherry picked from commit 8a00c9a4d2ce9d373b13f8f0a2265a65f4523293)

7 months ago[3.13] gh-131050: skip `test_dh_params` when TLS library lacks FFDHE ciphersuites...
Miss Islington (bot) [Sat, 29 Mar 2025 10:54:11 +0000 (11:54 +0100)] 
[3.13] gh-131050: skip `test_dh_params` when TLS library lacks FFDHE ciphersuites (GH-131051) (#131874)

gh-131050: skip `test_dh_params` when TLS library lacks FFDHE ciphersuites (GH-131051)
(cherry picked from commit be2d2181e62cd138b0cdf80ebc0dd4058187c52a)

Co-authored-by: Will Childs-Klein <willck93@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
7 months ago[3.13] gh-127541: Update os.walk example (GH-127765) (GH-131869)
Miss Islington (bot) [Sat, 29 Mar 2025 06:49:15 +0000 (07:49 +0100)] 
[3.13] gh-127541: Update os.walk example (GH-127765) (GH-131869)

gh-127541: Update os.walk example (GH-127765)

Update os.walk example to be more modern, skip `__pycache__` dirs rather than `CVS` dirs.
(cherry picked from commit a5949986d631391d37b1b329ad8badcf2000f9a9)

Co-authored-by: Totosuki <116938397+totosuki@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
7 months ago[3.13] gh-131807: fix ResourceWarning in test_ucn.py (GH-131808) (#131845)
Miss Islington (bot) [Fri, 28 Mar 2025 19:54:35 +0000 (20:54 +0100)] 
[3.13] gh-131807: fix ResourceWarning in test_ucn.py (GH-131808) (#131845)

gh-131807: fix ResourceWarning in test_ucn.py (GH-131808)
(cherry picked from commit adb67ed7e465410829ac0b1f903ec5678e0e51cc)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
7 months ago[3.13] gh-117174: Adapt `test_multiple_statements_fail_early` to new REPL behavior...
Miss Islington (bot) [Fri, 28 Mar 2025 16:51:04 +0000 (17:51 +0100)] 
[3.13] gh-117174: Adapt `test_multiple_statements_fail_early` to new REPL behavior (follow-up gh-131065) (GH-131836) (#131841)

gh-117174: Adapt `test_multiple_statements_fail_early` to new REPL behavior (follow-up gh-131065) (GH-131836)

Adapt test to new REPL behavior (follow-up gh-117174)
(cherry picked from commit a6cf8275f8b477d34c86c8f89a3ca32e78084add)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
7 months agogh-131423: Update to OpenSSL 3.0.16. (GH-131839)
Steve Dower [Fri, 28 Mar 2025 16:28:11 +0000 (16:28 +0000)] 
gh-131423: Update to OpenSSL 3.0.16. (GH-131839)

The bin tag is 3.0.16.1 because we rebuilt without uplink support to fix gh-131804.
This PR also prevents making calls that are now unsafe without uplink, and updates
the tests to property interpret these failures as unsupported.

7 months ago[3.13] gh-117174: Adapt test_multiple_statements_fail_early now that we have always...
Miss Islington (bot) [Fri, 28 Mar 2025 15:39:13 +0000 (16:39 +0100)] 
[3.13] gh-117174: Adapt test_multiple_statements_fail_early now that we have always source (GH-131065) (#131850)

gh-117174: Adapt test_multiple_statements_fail_early now that we have always source (GH-131065)
(cherry picked from commit 4192ce17ba643e5b0bc9d2182a429002e4cc9dfe)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
7 months ago[3.13] gh-127949: fix resource warnings in `test_tasks.py` (GH-128172) (#131805)
Miss Islington (bot) [Fri, 28 Mar 2025 14:02:03 +0000 (15:02 +0100)] 
[3.13] gh-127949: fix resource warnings in `test_tasks.py` (GH-128172) (#131805)

gh-127949: fix resource warnings in `test_tasks.py` (GH-128172)
(cherry picked from commit b66a4ad9fc32b63da2ba10db24cbc8f4e29f781a)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
7 months ago[3.13] gh-118518: Minor improvements to perf docs (GH-130866) (#131059)
Miss Islington (bot) [Fri, 28 Mar 2025 11:42:58 +0000 (12:42 +0100)] 
[3.13] gh-118518: Minor improvements to perf docs (GH-130866) (#131059)

gh-118518: Minor improvements to perf docs (GH-130866)

Minor improvements to perf docs
(cherry picked from commit ecdf6b15b0c0570c3c3302ab95bdbfd3007ea941)

Co-authored-by: stratakis <cstratak@redhat.com>
7 months ago[3.13] gh-128231: Use `runcode()` return value for failing early (GH-129488) (#130513)
Miss Islington (bot) [Fri, 28 Mar 2025 11:11:45 +0000 (12:11 +0100)] 
[3.13] gh-128231: Use `runcode()` return value for failing early (GH-129488) (#130513)

gh-128231: Use `runcode()` return value for failing early (GH-129488)
(cherry picked from commit 7ed3dc6392613832f66c63507385b1da109cbf21)

Co-authored-by: Bartosz Sławecki <bartoszpiotrslawecki@gmail.com>
7 months ago[3.13] gh-128446: Run Windows CI tests on each commit (GH-131702) (#131705)
Miss Islington (bot) [Fri, 28 Mar 2025 11:08:18 +0000 (12:08 +0100)] 
[3.13] gh-128446: Run Windows CI tests on each commit (GH-131702) (#131705)

gh-128446: Run Windows CI tests on each commit (GH-131702)
(cherry picked from commit 7d9442f0d55a7169940b9371d6e58a7c2ec1fa8a)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
7 months ago[3.13] gh-131818: Add imply `-P` in `-I`'s help message (GH-131819) (#131822)
Miss Islington (bot) [Fri, 28 Mar 2025 08:13:00 +0000 (09:13 +0100)] 
[3.13] gh-131818: Add imply `-P` in `-I`'s help message (GH-131819) (#131822)

gh-131818: Add imply `-P` in `-I`'s help message (GH-131819)
(cherry picked from commit 8bd88e2827b2a887c2ea8e5ed0c0575704bfacdf)

Co-authored-by: Hang <bebound@gmail.com>
7 months ago[3.13] Fix typo in importlib.metadata.rst (gh-131596) (#131630)
Miss Islington (bot) [Thu, 27 Mar 2025 13:42:47 +0000 (14:42 +0100)] 
[3.13] Fix typo in importlib.metadata.rst (gh-131596) (#131630)

Fix typo in importlib.metadata.rst (gh-131596)
(cherry picked from commit 5fc889ffbfd271c651f563ab0afe2d345bacbca5)

Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
7 months ago[3.13] gh-131712: Build _suggestions extension on Windows (GH-131759) (#131790)
Miss Islington (bot) [Thu, 27 Mar 2025 09:19:46 +0000 (10:19 +0100)] 
[3.13] gh-131712: Build _suggestions extension on Windows (GH-131759) (#131790)

gh-131712: Build _suggestions extension on Windows (GH-131759)

Add a test checking that the '_suggestions' extension is available.
(cherry picked from commit 9ef9d687ff7cfc4bbf422ba61db04207b7f343d2)

Co-authored-by: Victor Stinner <vstinner@python.org>
7 months ago[3.13] gh-131762: Fixed dereferencing the pointer 'parser_token->metadata' with a...
Miss Islington (bot) [Wed, 26 Mar 2025 19:07:51 +0000 (20:07 +0100)] 
[3.13] gh-131762: Fixed dereferencing the pointer 'parser_token->metadata' with a NULL value (GH-131764) (#131774)

gh-131762: Fixed dereferencing the pointer 'parser_token->metadata' with a NULL value (GH-131764)
(cherry picked from commit 2c686a9ac243800b630d4a09622c8eb789f5b354)

Co-authored-by: rialbat <47256826+rialbat@users.noreply.github.com>
7 months ago[3.13] gh-131740: Update PyUnstable_GC_VisitObjects to traverse perm … (gh-131754)
Donghee Na [Wed, 26 Mar 2025 17:43:16 +0000 (02:43 +0900)] 
[3.13] gh-131740: Update PyUnstable_GC_VisitObjects to traverse perm … (gh-131754)

* [3.13] gh-131740: Update PyUnstable_GC_VisitObjects to traverse perm gen (gh-131744)

(cherry picked from commit 7bb41aef4b7b8f3c3f07c11b801c5b7f8afaac7f)

* fix

7 months ago[3.13] gh-131649: fix test_string_literals SyntaxWarning (GH-131650) (#131766)
Brian Schubert [Wed, 26 Mar 2025 16:31:59 +0000 (12:31 -0400)] 
[3.13] gh-131649: fix test_string_literals SyntaxWarning (GH-131650) (#131766)

(cherry picked from commit 2d83891dfd51f595de68b0336b3bfc876f7b2507)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
7 months ago[3.13] gh-131741: Add documentation for Windows version detection change in `platform...
Miss Islington (bot) [Wed, 26 Mar 2025 14:56:44 +0000 (15:56 +0100)] 
[3.13] gh-131741: Add documentation for Windows version detection change in `platform` (GH-131742) (#131767)

gh-131741: Add documentation for Windows version detection change in `platform` (GH-131742)

Document the behavior change between 3.11 & 3.12, where ``platform`` now correctly detects Windows 11 and Windows Server releases past Windows Server 2012.
(cherry picked from commit b9ca438daab6a4e2513ab38171e94c75da03d6e3)

Co-authored-by: Idan Noiman <idann@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Wulian <1055917385@qq.com>
7 months ago[3.13] document that `sys._is_gil_enabled` is CPython-specific (GH-131748) (#131760)
Miss Islington (bot) [Wed, 26 Mar 2025 12:14:47 +0000 (13:14 +0100)] 
[3.13] document that `sys._is_gil_enabled` is CPython-specific (GH-131748) (#131760)

document that `sys._is_gil_enabled` is CPython-specific (GH-131748)
(cherry picked from commit ac12de2e6a6f5c1da83de0412bb7d03c28fdab63)

Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
7 months ago[3.13] gh-129900: Fix `SystemExit` return codes when the REPL is started from the...
Miss Islington (bot) [Tue, 25 Mar 2025 20:15:00 +0000 (21:15 +0100)] 
[3.13] gh-129900: Fix `SystemExit` return codes when the REPL is started from the command line (GH-129901) (#131734)

gh-129900: Fix `SystemExit` return codes when the REPL is started from the command line (GH-129901)
(cherry picked from commit 90b82f2b61219c8f94e2deddc989a4c4fe9ea7c7)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
7 months ago[3.13] gh-131719: add NULL pointer check to `_PyMem_FreeDelayed` (gh-131720) (gh...
Miss Islington (bot) [Tue, 25 Mar 2025 15:15:26 +0000 (16:15 +0100)] 
[3.13] gh-131719: add NULL pointer check to `_PyMem_FreeDelayed` (gh-131720) (gh-131722)

(cherry picked from commit 0a91456ad14bb598646f50bf8f034e8887c0c468)

Co-authored-by: Tomasz Pytel <tompytel@gmail.com>
7 months ago[3.13] gh-131677: Fix flaky test_lru_cache_threaded3 (gh-131679) (gh-131692)
Miss Islington (bot) [Mon, 24 Mar 2025 21:05:55 +0000 (22:05 +0100)] 
[3.13] gh-131677: Fix flaky test_lru_cache_threaded3 (gh-131679) (gh-131692)

The call to `with self.subTest(...)` was not thread-safe.
(cherry picked from commit a1232459860235f4fb7896cc95966d87a51cbe32)

Co-authored-by: Sam Gross <colesbury@gmail.com>
7 months ago[3.13] gh-131670: Fix crash in `anext()` when `__anext__` is sync and raises (GH...
Miss Islington (bot) [Mon, 24 Mar 2025 19:27:01 +0000 (20:27 +0100)] 
[3.13] gh-131670: Fix crash in `anext()` when `__anext__` is sync and raises (GH-131682) (#131686)

gh-131670: Fix crash in `anext()` when `__anext__` is sync and raises (GH-131682)
(cherry picked from commit 929afd1d6ee4fb89ac818037effe6577947103de)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
7 months ago[3.13] gh-131645: fix ResourceWarnings in `test_asyncio.test_events` (#131646) (...
Thomas Grainger [Mon, 24 Mar 2025 13:18:57 +0000 (13:18 +0000)] 
[3.13] gh-131645: fix ResourceWarnings in `test_asyncio.test_events` (#131646) (#131661)

gh-131645: fix ResourceWarnings in `test_asyncio.test_events` (#131646)

(cherry picked from commit 71ce4acb25eb640a4582904172d2bb9600983f4c)

7 months ago[3.13] gh-130587: Add hand-written docs for non-OP tokens (GH-130588) (GH-131465)
Petr Viktorin [Mon, 24 Mar 2025 12:34:23 +0000 (13:34 +0100)] 
[3.13] gh-130587: Add hand-written docs for non-OP tokens (GH-130588) (GH-131465)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
7 months ago[3.13] gh-131045: [Enum] fix flag containment checks when using values (GH-131053...
Miss Islington (bot) [Sun, 23 Mar 2025 16:51:26 +0000 (17:51 +0100)] 
[3.13] gh-131045: [Enum] fix flag containment checks when using values (GH-131053) (#131167)

gh-131045: [Enum] fix flag containment checks when using values (GH-131053)

Check would fail if value would create a pseudo-member, but that member
had not yet been created.  We now attempt to create a pseudo-member for
a passed-in value first.
(cherry picked from commit 17d06aeb5476099bc1acd89cd6f69e239e0f9350)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>