]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
5 months ago[3.13] feat(docs): type fix - apply pep8 by using docstring instead of comment in...
Miss Islington (bot) [Fri, 6 Jun 2025 13:23:07 +0000 (15:23 +0200)] 
[3.13] feat(docs): type fix - apply pep8 by using docstring instead of comment in the doc. (GH-135181) (#135211)

feat(docs): type fix - apply pep8 by using docstring instead of comment in the doc. (GH-135181)

Giving the right example incitates the tutorial readers to do the same in the future.
(cherry picked from commit 343182853f19a42c0ba8980d3104076a8c7bcfe7)

Co-authored-by: Jean-Louis GUENEGO <jlguenego@gmail.com>
5 months ago[3.13] gh-135120: Add test.support.subTests() (GH-135121) (GH-135210)
Serhiy Storchaka [Fri, 6 Jun 2025 13:16:50 +0000 (16:16 +0300)] 
[3.13] gh-135120: Add test.support.subTests() (GH-135121) (GH-135210)

(cherry picked from commit 6ef06fad84244261c695ec337c7d2734277054db)

5 months ago[3.13] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#135206)
Miss Islington (bot) [Fri, 6 Jun 2025 12:36:50 +0000 (14:36 +0200)] 
[3.13] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#135206)

gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188)
(cherry picked from commit e004cf8fd5c006a7a1c60807a03066f4c43452e5)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.13] gh-135151: Fix incorrect packaging of pyconfig.h in Windows installer (GH...
Steve Dower [Thu, 5 Jun 2025 22:03:38 +0000 (23:03 +0100)] 
[3.13] gh-135151: Fix incorrect packaging of pyconfig.h in Windows installer (GH-135180)

5 months ago[3.13] gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165) (#135182)
Victor Stinner [Thu, 5 Jun 2025 15:02:09 +0000 (17:02 +0200)] 
[3.13] gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165) (#135182)

gh-134989: Fix Py_RETURN_NONE in the limited C API (GH-135165)

Fix Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE macros in the
limited C API 3.11 and older:
Don't treat Py_None, Py_True and Py_False as immortal.

(cherry picked from commit 9258f3da9175134d03f2c8c7c7eed223802ad945)

5 months ago[3.13] gh-131884: Fix incorrect formatting in json.dumps() when using indent and...
Serhiy Storchaka [Thu, 5 Jun 2025 14:38:11 +0000 (17:38 +0300)] 
[3.13] gh-131884: Fix incorrect formatting in json.dumps() when using indent and skipkeys=True (GH-132200) (GH-135061)

(cherry picked from commit ec12559ebafca01ded22c9013de64abe535c838d)

Co-authored-by: Roei Ben Artzi <155478676+roeibenartzi@users.noreply.github.com>
5 months ago[3.13] gh-135124: Change stdout errors in regrtest worker process (GH-135138) (#135169)
Miss Islington (bot) [Thu, 5 Jun 2025 10:11:26 +0000 (12:11 +0200)] 
[3.13] gh-135124: Change stdout errors in regrtest worker process (GH-135138) (#135169)

gh-135124: Change stdout errors in regrtest worker process (GH-135138)

Set sys.stdout encoder error handler to backslashreplace in regrtest
workers to avoid UnicodeEncodeError when printing a traceback
or any other non-encodable character.

Move the code from the Regrtest class to setup_process().

Call setup_process() earlier, before displaying regrtest headers.
(cherry picked from commit 3d396ab7591d544ac8bc1fb49615b4e867ca1c83)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.13] gh-131531: android.py enhancements to support cibuildwheel (GH-132870) (#135164)
Malcolm Smith [Thu, 5 Jun 2025 09:23:46 +0000 (10:23 +0100)] 
[3.13] gh-131531: android.py enhancements to support cibuildwheel (GH-132870) (#135164)

Modifies the environment handling and execution arguments of the Android management
script to support the compilation of third-party binaries, and the use of the testbed to
invoke third-party test code.
(cherry picked from commit 2e1544fd2b0cd46ba93fc51e3cdd47f4781d7499)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
5 months ago[3.13] gh-129876: Update IDLE News3.txt to May 2025 (GH-135139) (#135141)
Miss Islington (bot) [Wed, 4 Jun 2025 15:50:21 +0000 (17:50 +0200)] 
[3.13] gh-129876: Update IDLE News3.txt to May 2025 (GH-135139) (#135141)

gh-129876: Update IDLE News3.txt to May 2025 (GH-135139)
(cherry picked from commit 0df15d0d4d55dcf7b7a7f4b2985bf84fd092d257)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
5 months ago[3.13] gh-134989: Implement PyObject_DelAttr() as a macro in the limited C API (GH...
Victor Stinner [Wed, 4 Jun 2025 15:10:51 +0000 (17:10 +0200)] 
[3.13] gh-134989: Implement PyObject_DelAttr() as a macro in the limited C API (GH-135021) (#135134)

gh-134989: Implement PyObject_DelAttr() as a macro in the limited C API (GH-135021)

(cherry picked from commit c21113072cd1f0da83729f99d3576647db85d816)

5 months ago[3.13] gh-133256: Add _Py_NONSTRING macro (#133257) (#135135)
Victor Stinner [Wed, 4 Jun 2025 15:10:35 +0000 (17:10 +0200)] 
[3.13] gh-133256: Add _Py_NONSTRING macro (#133257) (#135135)

gh-133256: Add _Py_NONSTRING macro (#133257)

Fix GCC 15 compiler warnings such as:

    In file included from Python/pylifecycle.c:26:
    Include/internal/pycore_runtime.h:47:26: warning:
    initializer-string for array of 'char' truncates NUL terminator
    but destination lacks 'nonstring' attribute (9 chars into 8
    available) [-Wunterminated-string-initialization]
       47 | #define _Py_Debug_Cookie "xdebugpy"
          |                          ^~~~~~~~~~

(cherry picked from commit e26bafd107aa86a4bdd6051848640f36a56d0efb)

5 months ago[3.13] gh-126483: disable warnings filters mutation in concurrent test (GH-132694...
Miss Islington (bot) [Wed, 4 Jun 2025 13:29:22 +0000 (15:29 +0200)] 
[3.13] gh-126483: disable warnings filters mutation in concurrent test (GH-132694) (GH-135132)

The `test_ssl_in_multiple_threads` test failed because `test_check_hostname_idn()`
modified the global warnings filters via `warnings_helper.check_no_resource_warning()`.
Disable the warnings check in the multi-threaded test because `warnings_helper` isn't
thread-safe in 3.13 or earlier.
(cherry picked from commit 40c8be0008ecadb5d0dc9a017434b1133a3a6e06)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* Fix for 3.13

---------

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
5 months ago[3.13] gh-135074: Fix exception messages in test.support module (GH-135076) (GH-135130)
Miss Islington (bot) [Wed, 4 Jun 2025 13:22:02 +0000 (15:22 +0200)] 
[3.13] gh-135074: Fix exception messages in test.support module (GH-135076) (GH-135130)

(cherry picked from commit bc00ce941e03347dade3faa8822f19836b5bbfe4)

Co-authored-by: Daniel Hollas <daniel.hollas@bristol.ac.uk>
5 months ago[3.13] gh-135108: Fix utmp.h inclusion in posixmodule.c on NetBSD (GH-135109) (GH...
Miss Islington (bot) [Wed, 4 Jun 2025 13:16:09 +0000 (15:16 +0200)] 
[3.13] gh-135108: Fix utmp.h inclusion in posixmodule.c on NetBSD (GH-135109) (GH-135128)

(cherry picked from commit 5b3865418ceb1448bfbf15cddf52c900cd5882a3)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
5 months ago[3.13] gh-134160: Improve multi-phase init note on isolation & subinterpreters (GH...
Miss Islington (bot) [Wed, 4 Jun 2025 12:50:54 +0000 (14:50 +0200)] 
[3.13] gh-134160: Improve multi-phase init note on isolation & subinterpreters (GH-134775) (GH-134983)

(cherry picked from commit eb145fabbdd755f803296beba2d235fc32efe592)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
5 months ago[3.13] gh-135101: When choosing the default simulator device, don't use `simctl ...
Miss Islington (bot) [Wed, 4 Jun 2025 00:54:42 +0000 (02:54 +0200)] 
[3.13] gh-135101: When choosing the default simulator device, don't use `simctl --set testing` (GH-135102) (#135114)

On a fresh Xcode install (including some CI provider configurations), there is
no pre-existing testing set that can be used to identify simulator models. Use
the default device set to detect available models instead. Live testing
simulators are still created in the testing set.
(cherry picked from commit dba9de731b231ca0c079205f496d1e3d178b4fd3)

Co-authored-by: Joe Rickerby <joerick@mac.com>
5 months agoMerge branch '3.13' of https://github.com/python/cpython into 3.13
Thomas Wouters [Tue, 3 Jun 2025 20:22:54 +0000 (22:22 +0200)] 
Merge branch '3.13' of https://github.com/python/cpython into 3.13

5 months agoPost 3.13.4
Thomas Wouters [Tue, 3 Jun 2025 20:22:30 +0000 (22:22 +0200)] 
Post 3.13.4

5 months ago[3.13] Backport PyManager support to PC/layout script (GH-135096)
Steve Dower [Tue, 3 Jun 2025 20:21:11 +0000 (21:21 +0100)] 
[3.13] Backport PyManager support to PC/layout script (GH-135096)

5 months ago[3.13] gh-127081: use `getlogin_r` if available (gh-132751) (#135098)
Sam Gross [Tue, 3 Jun 2025 18:41:26 +0000 (14:41 -0400)] 
[3.13] gh-127081: use `getlogin_r` if available (gh-132751) (#135098)

The `getlogin` function is not thread-safe: replace with `getlogin_r` where
available.
(cherry picked from commit 1ffe913c2017b44804aca18befd45689df06c069)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
5 months agoPython 3.13.4 v3.13.4
Thomas Wouters [Tue, 3 Jun 2025 15:34:08 +0000 (17:34 +0200)] 
Python 3.13.4

5 months ago[3.13] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict...
T. Wouters [Tue, 3 Jun 2025 13:59:54 +0000 (15:59 +0200)] 
[3.13] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict='allow_missing')` (GH-135037) (GH-135064)

Addresses CVEs 2024-12718, 2025-4138, 2025-4330, and 2025-4517.
(cherry picked from commit 3612d8f51741b11f36f8fb0494d79086bac9390a)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Signed-off-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.13] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (GH-128606...
Miss Islington (bot) [Tue, 3 Jun 2025 13:54:53 +0000 (15:54 +0200)] 
[3.13] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (GH-128606) (GH-135077) (#135083)

[3.14] gh-128605: Add branch protections for x86_64 in asm_trampoline.S (GH-128606) (GH-135077)

Apply Intel Control-flow Technology for x86-64 on asm_trampoline.S.

Required for mitigation against return-oriented programming (ROP)
and Call or Jump Oriented Programming (COP/JOP) attacks.

Manual application is required for the assembly files.

See also: https://sourceware.org/annobin/annobin.html/Test-cf-protection.html
(cherry picked from commit 899cca6dbf76bf3e06a99f60a5f996ad6ba0761f)

Co-authored-by: stratakis <cstratak@redhat.com>
5 months ago[3.13] gh-134875: Fix mimallc build error for the old compilers (gh-134994) (gh-135054)
Miss Islington (bot) [Tue, 3 Jun 2025 08:04:20 +0000 (10:04 +0200)] 
[3.13] gh-134875: Fix mimallc build error for the old compilers (gh-134994) (gh-135054)

gh-134875: Fix mimallc build error for the old compilers (gh-134994)
(cherry picked from commit b525e31b7fc50e7a498f8b9b16437cb7b9656f6f)

Co-authored-by: Donghee Na <donghee.na@python.org>
5 months ago[3.13] gh-133454: Mark test_queue tests with many threads as bigmem (gh-134575) ...
Miss Islington (bot) [Mon, 2 Jun 2025 20:49:32 +0000 (22:49 +0200)] 
[3.13] gh-133454: Mark test_queue tests with many threads as bigmem (gh-134575) (GH-135047)

50 producer and 50 consumer threads need more than 5GB of memory.
(cherry picked from commit 7a79f52d83c22f5a9787e590f267325c1175d389)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.13] gh-74232: Add a note about roundtrip of non-float numerics in CSV (GH-134963...
Miss Islington (bot) [Mon, 2 Jun 2025 20:39:01 +0000 (22:39 +0200)] 
[3.13] gh-74232: Add a note about roundtrip of non-float numerics in CSV (GH-134963) (GH-135049)

(cherry picked from commit e814f43f2c655b931af8ee9e1c128bd1027549fb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.13] gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-13365...
Serhiy Storchaka [Mon, 2 Jun 2025 20:16:30 +0000 (23:16 +0300)] 
[3.13] gh-133489: Remove size restrictions on getrandbits() and randbytes() (GH-133658) (GH-134965)

random.getrandbits() can now generate more that 2**31 bits.
random.randbytes() can now generate more that 256 MiB.
(cherry picked from commit 68784fed78aa297f0de0d038742495709185bef5)

5 months ago[3.13] gh-134908: Protect `textiowrapper_iternext` with critical section (gh-134910...
Sam Gross [Mon, 2 Jun 2025 19:40:42 +0000 (15:40 -0400)] 
[3.13] gh-134908: Protect `textiowrapper_iternext` with critical section (gh-134910) (gh-135040)

The `textiowrapper_iternext` function called `_textiowrapper_writeflush`, but did not
use a critical section, making it racy in free-threaded builds.
(cherry picked from commit 44fb7c361cb24dcf9989a7a1cfee4f6aad5c81aa)

Co-authored-by: Duane Griffin <duaneg@dghda.com>
5 months ago[3.13] gh-130999: Avoid exiting the new REPL when there are non-string candidates...
Miss Islington (bot) [Mon, 2 Jun 2025 14:58:29 +0000 (16:58 +0200)] 
[3.13] gh-130999: Avoid exiting the new REPL when there are non-string candidates for suggestions (gh-131001) (gh-135020)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
5 months ago[3.13] gh-122153: indicate that Windows does not support `socket.{send,recv}_fds...
Bénédikt Tran [Mon, 2 Jun 2025 10:44:39 +0000 (12:44 +0200)] 
[3.13] gh-122153: indicate that Windows does not support `socket.{send,recv}_fds` (GH-134960) (#135017)

This amends commit e3b6ff19aaa318a813130ba9ad2ab0a332f27feb.
(cherry picked from commit 128195e12eb6d5b9542558453df7045dd7aa1e15)

Co-authored-by: GalaxySnail <me@glxys.nl>
5 months ago[3.13] gh-133503: clarify `compileall -s/-p` docs (GH-134756) (#134996)
Miss Islington (bot) [Sun, 1 Jun 2025 08:27:26 +0000 (10:27 +0200)] 
[3.13] gh-133503: clarify `compileall -s/-p` docs (GH-134756) (#134996)

gh-133503: clarify `compileall -s/-p` docs (GH-134756)
(cherry picked from commit fe6f8a3619242b287a793a5b5d8645f402482c71)

Co-authored-by: Rihaan Meher <meherrihaan@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
5 months ago[3.13] gh-134696: align OpenSSL and HACL*-based hash functions constructors AC signat...
Bénédikt Tran [Sun, 1 Jun 2025 08:27:02 +0000 (10:27 +0200)] 
[3.13] gh-134696: align OpenSSL and HACL*-based hash functions constructors AC signatures (GH-134713) (#134962)

OpenSSL and HACL*-based hash functions constructors now support both `data` and `string` parameters.
Previously these constructor functions inconsistently supported sometimes `data` and sometimes `string`,
while the documentation expected `data` to be given in all cases.

(cherry picked from commit c6e63d9d351f6d952000ec3bf84b3a7607989f92)
(cherry picked from commit 379d0bc95646dfe923e7ea05fb7f1befbd85572d)

5 months ago[3.13] gh-134835: Remove outdated list from `howto/urllib2.rst` (GH-134844) (#134985)
Miss Islington (bot) [Sat, 31 May 2025 17:54:38 +0000 (19:54 +0200)] 
[3.13] gh-134835: Remove outdated list from `howto/urllib2.rst` (GH-134844) (#134985)

gh-134835: Remove outdated list from `howto/urllib2.rst` (GH-134844)

:teapot:
(cherry picked from commit 3704171415c1ea6ebbeb2f992758b6565f42e378)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
5 months ago[3.13] gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH...
Miss Islington (bot) [Sat, 31 May 2025 14:51:48 +0000 (16:51 +0200)] 
[3.13] gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH-134955) (#134981)

gh-134954: Hard-cap max file descriptors in subprocess test fd_status (GH-134955)

* Hard-cap max file descriptors in subprocess test fd_status

On some systems, `SC_OPEN_MAX` may return a very large value (i.e. 10**30), leading to the subprocess test timing out (or run forever).
Prevent this situation by applying a hard cap on how many file descriptors are checked.

* Fix typo in usage docstring

s/fd_stats/fd_status/
(cherry picked from commit f58873e4b2b7aad8e3a08a6188c6eb08d0a3001b)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
5 months ago[3.13] gh-134918: Fix and improve doctest's documentation (GH-134919) (GH-134967)
Miss Islington (bot) [Sat, 31 May 2025 09:09:07 +0000 (11:09 +0200)] 
[3.13] gh-134918: Fix and improve doctest's documentation (GH-134919) (GH-134967)

(cherry picked from commit 3c66e5976669a599adfb260514c03815b1a9e4e9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.13] GH-106235: Clarify `parse_known_args` documentation by removing "remaining...
Miss Islington (bot) [Fri, 30 May 2025 20:24:22 +0000 (22:24 +0200)] 
[3.13] GH-106235: Clarify `parse_known_args` documentation by removing "remaining" (GH-126921) (#134914)

GH-106235: Clarify `parse_known_args` documentation by removing "remaining" (GH-126921)
(cherry picked from commit a4251411a97304ab001721c6231d86ddf4eac3f0)

Co-authored-by: Savannah Bailey <savannahostrowski@gmail.com>
5 months agogh-134923: Use /GENPROFILE and /USEPROFILE for Windows PGO builds (GH-134924)
Steve Dower [Fri, 30 May 2025 19:03:59 +0000 (20:03 +0100)] 
gh-134923: Use /GENPROFILE and /USEPROFILE for Windows PGO builds (GH-134924)

5 months ago[3.13] gh-134733: Fix documentation for the show_empty option of ast.dump() (GH-13492...
Miss Islington (bot) [Fri, 30 May 2025 16:30:26 +0000 (18:30 +0200)] 
[3.13] gh-134733: Fix documentation for the show_empty option of ast.dump() (GH-134925) (GH-134941)

Optional None values are always omitted.
(cherry picked from commit 1a89991d2362867a9127e151376135615bc92a4c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.13] gh-134718: Fix ast.dump() for empty non-default values (GH-134926) (GH-134936)
Serhiy Storchaka [Fri, 30 May 2025 15:48:48 +0000 (18:48 +0300)] 
[3.13] gh-134718: Fix ast.dump() for empty non-default values (GH-134926) (GH-134936)

(cherry picked from commit cc344e8dd0a6fdc83a032c229f9b3cf53f76a887)

5 months agoDoc: remove unnecessary section header (GH-134917)
Miss Islington (bot) [Fri, 30 May 2025 09:14:00 +0000 (11:14 +0200)] 
Doc: remove unnecessary section header (GH-134917)

(cherry picked from commit b367e27af9b52528e395f95b277ec7b69e98e287)

5 months ago[3.13] ast docs: Fix description of ast.Constant (GH-134741) (#134912)
Miss Islington (bot) [Fri, 30 May 2025 04:19:04 +0000 (06:19 +0200)] 
[3.13] ast docs: Fix description of ast.Constant (GH-134741) (#134912)

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.13] gh-133260: Remove claim that PyUnicode_InternFromString immortalizes (GH-13421...
Miss Islington (bot) [Thu, 29 May 2025 13:44:00 +0000 (15:44 +0200)] 
[3.13] gh-133260: Remove claim that PyUnicode_InternFromString immortalizes (GH-134213) (GH-134884)

(cherry picked from commit 4109a9c6b33faa0032ffc95d96cd0db482af3ce2)

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

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 agogh-134262: Add retries to downloads in PCbuild\get_external.py (GH-134820)
Miss Islington (bot) [Wed, 28 May 2025 21:45:01 +0000 (23:45 +0200)] 
gh-134262: Add retries to downloads in PCbuild\get_external.py (GH-134820)

(cherry picked from commit e9d845b41dca9ad84b76ef777d05e647a4b4d8cd)

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

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.13] GH-134848: Use a set to store ``AuditEvents.sources`` (GH-134849) (#134854)
Miss Islington (bot) [Wed, 28 May 2025 16:36:59 +0000 (18:36 +0200)] 
[3.13] GH-134848: Use a set to store ``AuditEvents.sources`` (GH-134849) (#134854)

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.13] gh-133711: Fix test_readline.test_nonascii() for UTF-8 Mode (GH-134841) (...
Miss Islington (bot) [Wed, 28 May 2025 16:08:08 +0000 (18:08 +0200)] 
[3.13] gh-133711: Fix test_readline.test_nonascii() for UTF-8 Mode (GH-134841) (#134852)

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.13] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH...
Miss Islington (bot) [Wed, 28 May 2025 15:46:40 +0000 (17:46 +0200)] 
[3.13] gh-128840: Fix parsing long IPv6 addresses with embedded IPv4 address (GH-134836) (#134846)

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.13] gh-133711: Fix test_regrtest for PYTHONUTF8=1 (GH-134839) (#134843)
Miss Islington (bot) [Wed, 28 May 2025 15:44:03 +0000 (17:44 +0200)] 
[3.13] gh-133711: Fix test_regrtest for PYTHONUTF8=1 (GH-134839) (#134843)

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.13] gh-134817: Document [Timed]RotatingFileHandler shouldRollover method (GH-13481...
Miss Islington (bot) [Wed, 28 May 2025 12:32:57 +0000 (14:32 +0200)] 
[3.13] gh-134817: Document [Timed]RotatingFileHandler shouldRollover method (GH-134818) (GH-134824)

(cherry picked from commit 7be5916f6dc3db95744b5fec945327d82cce0183)

5 months ago[3.13] gh-134744: Fix fcntl error handling (GH-134748) (GH-134795) (#134798)
Miss Islington (bot) [Wed, 28 May 2025 10:54:53 +0000 (12:54 +0200)] 
[3.13] gh-134744: Fix fcntl error handling (GH-134748) (GH-134795) (#134798)

[3.14] gh-134744: Fix fcntl error handling (GH-134748) (GH-134795)

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

Fix also reference leak on buffer overflow.
(cherry picked from commit 8a6a6f39c869a6601babc31592e156ce22478a47)

(cherry picked from commit 9300a596d37d058e6e58d00a2ad70617c863a3de)

Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.13] gh-134160: Block multiple module initialization (GH-134773) (#134828)
Miss Islington (bot) [Wed, 28 May 2025 07:59:20 +0000 (09:59 +0200)] 
[3.13] gh-134160: Block multiple module initialization (GH-134773) (#134828)

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.13] Update outdated statement from `math` about C standard (GH-134621) (#134826)
Miss Islington (bot) [Wed, 28 May 2025 07:36:24 +0000 (09:36 +0200)] 
[3.13] Update outdated statement from `math` about C standard (GH-134621) (#134826)

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.13] gh-134789: Document del s[i] operation for mutable sequences (GH-134804) ...
Miss Islington (bot) [Tue, 27 May 2025 18:54:16 +0000 (20:54 +0200)] 
[3.13] gh-134789: Document del s[i] operation for mutable sequences (GH-134804) (#134809)

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.13] GH-128161: Fix refleak introduced in GH-134788 (GH-134799)
Mark Shannon [Tue, 27 May 2025 17:14:56 +0000 (18:14 +0100)] 
[3.13] GH-128161: Fix refleak introduced in GH-134788 (GH-134799)

5 months ago[3.13] gh-133678: Document C API third party tools (GH-134526) (#134792)
Miss Islington (bot) [Tue, 27 May 2025 15:44:44 +0000 (17:44 +0200)] 
[3.13] gh-133678: Document C API third party tools (GH-134526) (#134792)

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.13] gh-128161: Remove redundant GET_ITER from list comprehension code (backport...
Mark Shannon [Tue, 27 May 2025 13:12:04 +0000 (14:12 +0100)] 
[3.13] gh-128161: Remove redundant GET_ITER from list comprehension code (backport of GH-134778) (GH-134788)

5 months ago[3.13] Add CODEOWNERS and YAML to end-of-file-fixer and trailing-whitespace (GH-13473...
Hugo van Kemenade [Tue, 27 May 2025 11:27:14 +0000 (14:27 +0300)] 
[3.13] Add CODEOWNERS and YAML to end-of-file-fixer and trailing-whitespace (GH-134730) (#134787)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
5 months ago[3.13] gh-134210: handle signals in `_curses.window.getch` (GH-134326) (#134784)
Bénédikt Tran [Tue, 27 May 2025 09:17:27 +0000 (11:17 +0200)] 
[3.13] gh-134210: handle signals in `_curses.window.getch` (GH-134326) (#134784)

(cherry picked from commit 51762b6cadb8f316dd783716bc5c168c2e2d07f0)

5 months ago[3.13] gh-134664: document `cleanup_socket` parameter in `asyncio.start_unix_server...
Miss Islington (bot) [Tue, 27 May 2025 08:34:29 +0000 (10:34 +0200)] 
[3.13] gh-134664: document `cleanup_socket` parameter in `asyncio.start_unix_server` (GH-134750) (#134780)

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.13] gh-134160: Use multi-phase init in documentation examples (GH-134296) (#134754)
Miss Islington (bot) [Mon, 26 May 2025 21:50:19 +0000 (23:50 +0200)] 
[3.13] gh-134160: Use multi-phase init in documentation examples (GH-134296) (#134754)

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.13] gh-134559: Add versionadded for ``object.__replace__()`` (GH-134672) (#134700)
Miss Islington (bot) [Mon, 26 May 2025 10:29:53 +0000 (12:29 +0200)] 
[3.13] gh-134559: Add versionadded for ``object.__replace__()`` (GH-134672) (#134700)

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.13] gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_e...
Miss Islington (bot) [Mon, 26 May 2025 08:02:58 +0000 (10:02 +0200)] 
[3.13] gh-134152: Fix UnboundLocalError in email._header_value_parser _get_ptext_to_endchars (GH-134233) (#134677)

Co-authored-by: R. David Murray <rdmurray@bitdance.com>
5 months ago[3.13] gh-132876: workaround broken ldexp() on Windows 10 (GH-133135) (#134685)
Sergey B Kirpichev [Mon, 26 May 2025 03:39:34 +0000 (06:39 +0300)] 
[3.13] gh-132876: workaround broken ldexp() on Windows 10 (GH-133135) (#134685)

* 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: Tim Peters <tim.peters@gmail.com>
5 months ago[3.13] Fix sphinx-lint warnings (default-role used). (GH-134647) (#134669)
Miss Islington (bot) [Sun, 25 May 2025 19:29:38 +0000 (21:29 +0200)] 
[3.13] Fix sphinx-lint warnings (default-role used). (GH-134647) (#134669)

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.13] gh-134595: Update HOWTO to reflect change in CIBW option (GH-134598) (#134623)
Miss Islington (bot) [Sat, 24 May 2025 07:21:14 +0000 (09:21 +0200)] 
[3.13] gh-134595: Update HOWTO to reflect change in CIBW option (GH-134598) (#134623)

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

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.13] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) ...
Miss Islington (bot) [Sat, 24 May 2025 03:33:40 +0000 (05:33 +0200)] 
[3.13] gh-128840: Limit the number of parts in IPv6 address parsing (GH-128841) (#134611)

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.13] gh-134381: Fix RuntimeError when starting not-yet started Thread after fork...
Miss Islington (bot) [Fri, 23 May 2025 19:45:51 +0000 (21:45 +0200)] 
[3.13] gh-134381: Fix RuntimeError when starting not-yet started Thread after fork (gh-134514) (gh-134597)

(cherry picked from commit 9a2346df861f26d5f8d054ad2f9c37134dee3822)

Co-authored-by: Jiucheng(Oliver) <git.jiucheng@gmail.com>
5 months ago[3.13] gh-134578: Mark more slow tests (GH-134579) (GH-134592)
Serhiy Storchaka [Fri, 23 May 2025 17:31:05 +0000 (20:31 +0300)] 
[3.13] gh-134578: Mark more slow tests (GH-134579) (GH-134592)

(cherry picked from commit 77eade39f972a4f3d8e9fec00288779f35ceee21)

5 months ago[3.13] gh-106318: Add example for `str.count()` (GH-134519) (#134573)
Miss Islington (bot) [Fri, 23 May 2025 09:53:19 +0000 (11:53 +0200)] 
[3.13] gh-106318: Add example for `str.count()` (GH-134519) (#134573)

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

Co-authored-by: Blaise Pabon <blaise@gmail.com>
5 months ago[3.13] Add notes on nogil & reinitialization to the Opt-Out section in Module Isolati...
Miss Islington (bot) [Fri, 23 May 2025 08:46:58 +0000 (10:46 +0200)] 
[3.13] Add notes on nogil & reinitialization to the Opt-Out section in Module Isolation HOWTO (GH-134141) (GH-134491)

Add notes on nogil & reinitialization to the Opt-Out section in Module Isolation HOWTO (GH-134141)
(cherry picked from commit 1f0a294e8c2ff009c6b74ca5aa71da6269aec0dd)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Sam Gross <colesbury@gmail.com>
5 months ago[3.13] gh-114177: avoid calling connection lost callbacks when loop is already closed...
Miss Islington (bot) [Fri, 23 May 2025 04:56:14 +0000 (06:56 +0200)] 
[3.13] gh-114177: avoid calling connection lost callbacks when loop is already closed in asyncio subprocess (GH-134508) (#134562)

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.13] Docs: fix link in free-threading-python.rst (GH-134548) (#134556)
Miss Islington (bot) [Fri, 23 May 2025 00:43:26 +0000 (02:43 +0200)] 
[3.13] Docs: fix link in free-threading-python.rst (GH-134548) (#134556)

5 months ago[3.13] Avoid `__file__` in `hashlib` example (GH-134540) (#134550)
Miss Islington (bot) [Thu, 22 May 2025 21:38:04 +0000 (23:38 +0200)] 
[3.13] Avoid `__file__` in `hashlib` example (GH-134540) (#134550)

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

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
5 months ago[3.13] Docs: Add note to tutorial clarifying scope (GH-134534) (#134545)
Kattni [Thu, 22 May 2025 21:04:10 +0000 (17:04 -0400)] 
[3.13] Docs: Add note to tutorial clarifying scope (GH-134534) (#134545)

(cherry picked from commit 742d5b5c5d75eae44c66a43ebfa24a4f286ea8a1)

5 months ago[3.13] Consistent sentence case in docs template files (GH-134412) (#134496)
Miss Islington (bot) [Thu, 22 May 2025 09:58:05 +0000 (11:58 +0200)] 
[3.13] Consistent sentence case in docs template files (GH-134412) (#134496)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
5 months ago[3.13] gh-71339: Use new assertion methods in the http tests (GH-129058) (GH-132500)
Miss Islington (bot) [Thu, 22 May 2025 09:40:26 +0000 (11:40 +0200)] 
[3.13] gh-71339: Use new assertion methods in the http tests (GH-129058) (GH-132500)

(cherry picked from commit 7076d076c27687140adc64ad495ea82f6eb5b3ce)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.13] gh-71339: Use new assertion methods in the urllib tests (GH-129056) (GH-132499)
Miss Islington (bot) [Thu, 22 May 2025 09:40:19 +0000 (11:40 +0200)] 
[3.13] gh-71339: Use new assertion methods in the urllib tests (GH-129056) (GH-132499)

(cherry picked from commit f98b9b4cbb7905c9af45718505389d171ca3c590)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.13] gh-71339: Use new assertion methods in the email tests (GH-129055) (GH-132501)
Miss Islington (bot) [Thu, 22 May 2025 09:40:04 +0000 (11:40 +0200)] 
[3.13] gh-71339: Use new assertion methods in the email tests (GH-129055) (GH-132501)

(cherry picked from commit 522766aa23b110257d5e31128ff5a5575715e880)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
5 months ago[3.13] gh-131357: Add some extra tests for empty bytes and bytearray (GH-134458)...
Miss Islington (bot) [Thu, 22 May 2025 07:28:44 +0000 (09:28 +0200)] 
[3.13] gh-131357: Add some extra tests for empty bytes and bytearray (GH-134458) (#134490)

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>
5 months ago[3.13] gh-134309: Add ``github.actor`` to the GitHub Actions concurrency key (GH...
Miss Islington (bot) [Thu, 22 May 2025 04:12:08 +0000 (06:12 +0200)] 
[3.13] gh-134309: Add ``github.actor`` to the GitHub Actions concurrency key (GH-134310) (#134485)

gh-134309: Add ``github.actor`` to the GitHub Actions concurrency key (GH-134310)

When inexperienced users create a PR from their default branch, all of the concurrency keys
collide as there is no namespacing. This becomes an issue at events with many new contributors,
where workflow runs are cancelled on other pull requests.
Disambiguate by adding the username of the relevant 'actor' to the concurrency key.
(cherry picked from commit 979d81a17905e922d32fb1671f9ed394e0ffbda6)

Authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Kira <coldcaption@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko <sviat@redhat.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
5 months ago[3.13] gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063)...
Miss Islington (bot) [Thu, 22 May 2025 03:12:28 +0000 (05:12 +0200)] 
[3.13] gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063) (#134477)

gh-134062: Fix hash collisions in IPv4Network and IPv6Network (GH-134063)
(cherry picked from commit f3fc0c16e08b317cb201cf1073e934e6909f1251)

gh-134062: Fix hash collisions in IPv4Network and IPv6Network
gh-134062: Add hash collision regression test

Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
5 months ago[3.13] gh-80050: Update BufferedReader.read docs around non-blocking (GH-130653)...
Gregory P. Smith [Wed, 21 May 2025 17:07:03 +0000 (13:07 -0400)] 
[3.13] gh-80050: Update BufferedReader.read docs around non-blocking (GH-130653) (#134445)

(cherry picked from commit e1f891414b2329414a6160ed246f5f869a218bfd)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
5 months ago[3.13] gh-62184: Remove _pyio import of _io.FileIO (gh-134192) (gh-134436)
Miss Islington (bot) [Wed, 21 May 2025 15:55:55 +0000 (17:55 +0200)] 
[3.13] gh-62184: Remove _pyio import of _io.FileIO (gh-134192) (gh-134436)

This was added in the add of `_io`, isn't used since bpo-21859 when a
`_pyio` implementation was added which defines `FileIO` lower down in
the file.
(cherry picked from commit 0a68068bd2a5bff98998067a141b17af5be9b750)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
5 months ago[3.13] gh-133982: Run unclosed file test on all io implementations (gh-134165) (gh...
Miss Islington (bot) [Wed, 21 May 2025 15:28:29 +0000 (17:28 +0200)] 
[3.13] gh-133982: Run unclosed file test on all io implementations (gh-134165) (gh-134434)

Update `test_io` `_check_warn_on_dealloc` to use `self.` to dispatch to
different I/O implementations.

Update the `_pyio` implementation to match expected behavior, using the
same `_dealloc_warn` design as the C implementation uses to report the
topmost `__del__` object.

The FileIO one now matches all the others, so can use IOBase. There was
a missing check on closing (self._fd must be valid), add that check
(cherry picked from commit 5b0e82752120a5dc66ce6ee778751d71ba2c33b2)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
5 months ago[3.13] gh-71253: Match _io exception in _pyio (gh-133985) (gh-134431)
Miss Islington (bot) [Wed, 21 May 2025 15:14:00 +0000 (17:14 +0200)] 
[3.13] gh-71253: Match _io exception in _pyio (gh-133985) (gh-134431)

Test was only testing _io, expanded to cover _pyio.

(cherry picked from commit 06eaf4055c1d7359e129efb65b94f34d2ec51a57)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
5 months ago[3.13] gh-133982: Update test_bufio to use self.open (gh-133983) (gh-134429)
Miss Islington (bot) [Wed, 21 May 2025 15:13:24 +0000 (17:13 +0200)] 
[3.13] gh-133982: Update test_bufio to use self.open (gh-133983) (gh-134429)

(cherry picked from commit 84d5f8d799dbbf86248375b6edbbcf4a022788c4)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
5 months ago[3.13] gh-132246: Add special buffer methods to C API Type Object docs (gh-132247...
Miss Islington (bot) [Wed, 21 May 2025 14:34:13 +0000 (16:34 +0200)] 
[3.13] gh-132246: Add special buffer methods to C API Type Object docs (gh-132247) (gh-134427)

Two special methods, __buffer__ and __release_buffer__ were added to
Python 3.12 by PEP 688. The C API Type Object documentation for slots
includes `tp_as_buffer`, and sub-slots `bf_getbuffer`, `bf_releasebuffer`
but does not refer to the Python Data Model version of those. Add the
missing references.
(cherry picked from commit b529b60fc239d19245e5fafd0514d90097c2eb40)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
5 months ago[3.13] gh-110631: Fix some incorrect indents in the documentation (GH-129312) (#134420)
Miss Islington (bot) [Wed, 21 May 2025 14:00:13 +0000 (16:00 +0200)] 
[3.13] gh-110631: Fix some incorrect indents in the documentation (GH-129312) (#134420)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
5 months ago[3.13] gh-132542: Only run test_native_id_after_fork if native_id is supported (GH...
Miss Islington (bot) [Wed, 21 May 2025 11:34:49 +0000 (13:34 +0200)] 
[3.13] gh-132542: Only run test_native_id_after_fork if native_id is supported (GH-134408) (GH-134414)

(cherry picked from commit e6dde10a69ce62c3b02b3b4e07559d06a9451fc2)

Co-authored-by: Noam Cohen <noam@noam.me>
5 months ago[3.13] gh-134360 Add processName attribute to `logging.Formatter` docstring (GH-13437...
Miss Islington (bot) [Wed, 21 May 2025 05:16:36 +0000 (07:16 +0200)] 
[3.13] gh-134360 Add processName attribute to `logging.Formatter` docstring (GH-134371) (GH-134404)

Co-authored-by: Sofia Toro <sofie.torch@outlook.com>
5 months agoGH-130727: Avoid race condition in _wmimodule by copying shared data (GH-134313)
Miss Islington (bot) [Tue, 20 May 2025 21:44:17 +0000 (23:44 +0200)] 
GH-130727: Avoid race condition in _wmimodule by copying shared data (GH-134313)

(cherry picked from commit e4fbfb12889013fd52565cd2598a366754cb677b)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
5 months ago[3.13] gh-128066: Properly handle history file writes for RO fs on PyREPL (gh-134380...
Łukasz Langa [Tue, 20 May 2025 20:15:43 +0000 (22:15 +0200)] 
[3.13] gh-128066: Properly handle history file writes for RO fs on PyREPL (gh-134380) (gh-134386)

(cherry picked from commit c91ad5da9d92eac4718e4da8d53689c3cc24535e)

Co-authored-by: Chris Patti <feoh@feoh.org>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
5 months ago[3.13] gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOB...
Miss Islington (bot) [Tue, 20 May 2025 19:28:09 +0000 (21:28 +0200)] 
[3.13] gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase (GH-134372) (#134375)

gh-85045: clarified that the underlying buffer of a TextIOBase can be a RawIOBase (GH-134372)

Added a clarification that the underlying binary buffer of a TextIOBase can be a BufferedIOBase OR a RawIOBase
(cherry picked from commit 36eb711d2f26849214774a017fe8c8a5be3eec30)

Co-authored-by: Alex Kautz <alex@takemobi.com>
5 months ago[3.13] gh-131357: Add tests for zero-sized bytes objects in test_bytes.py (GH-134234...
Miss Islington (bot) [Tue, 20 May 2025 18:56:32 +0000 (20:56 +0200)] 
[3.13] gh-131357: Add tests for zero-sized bytes objects in test_bytes.py (GH-134234) (#134379)

gh-131357: Add tests for zero-sized bytes objects in test_bytes.py (GH-134234)
(cherry picked from commit 306f9e04e50c80f7be2a38fc3b64accf59f5164c)

Co-authored-by: abstractedfox <coldcaption@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
5 months ago[3.13] gh-132542: Set native thread ID after fork (GH-132701) (GH-134361)
Noam Cohen [Tue, 20 May 2025 17:03:19 +0000 (20:03 +0300)] 
[3.13] gh-132542: Set native thread ID after fork (GH-132701) (GH-134361)

(cherry picked from commit 6b735023132a4ac9dc5b849d982104eeb1e8bdad)

5 months ago[3.13] gh-129748: Update mimalloc to use atomic store for mi_block_set_nextx (GH...
Miss Islington (bot) [Tue, 20 May 2025 16:26:23 +0000 (18:26 +0200)] 
[3.13] gh-129748: Update mimalloc to use atomic store for mi_block_set_nextx (GH-134238) (gh-134353)

gh-129748: Update mimalloc to use atomic store for mi_block_set_nextx (GH-134238)
(cherry picked from commit 317c49622397222b7c7fb49837e6b1fd7e82a80d)

Co-authored-by: Donghee Na <donghee.na@python.org>
5 months ago[3.13] gh-101100: Fix Sphinx warnings in `library/decimal.rst` (GH-134303) (#134339)
Hugo van Kemenade [Tue, 20 May 2025 14:55:23 +0000 (17:55 +0300)] 
[3.13] gh-101100: Fix Sphinx warnings in `library/decimal.rst` (GH-134303) (#134339)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>