]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
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>
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)
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>
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 )
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 )
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>
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>
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>
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>
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>
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>
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>
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>
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>
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 )
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>
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>
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>
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>
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)
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>
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)
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>
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 )
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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 )
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>
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>
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>
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>
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)
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>
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 )
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Ł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>
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>
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>
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 )
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>
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>
Guido van Rossum [Tue, 20 May 2025 14:30:18 +0000 (10:30 -0400)]
[3.13] gh-128307: Update what's new in 3.13 with create_task changes of asyncio (#134304) (#134335)
(It's complicated.)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Serhiy Storchaka [Tue, 20 May 2025 12:46:57 +0000 (15:46 +0300)]
[3.13] gh-133767: Fix use-after-free in the unicode-escape decoder with an error handler (GH-129648) (GH-133944)
If the error handler is used, a new bytes object is created to set as
the object attribute of UnicodeDecodeError, and that bytes object then
replaces the original data. A pointer to the decoded data will became invalid
after destroying that temporary bytes object. So we need other way to return
the first invalid escape from _PyUnicode_DecodeUnicodeEscapeInternal().
_PyBytes_DecodeEscape() does not have such issue, because it does not
use the error handlers registry, but it should be changed for compatibility
with _PyUnicode_DecodeUnicodeEscapeInternal().
(cherry picked from commit
9f69a58623bd01349a18ba0c7a9cb1dad6a51e8e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 20 May 2025 12:17:10 +0000 (14:17 +0200)]
[3.13] gh-53189: Document peculiarities of InteractiveConsole in relation to pickle (GH-123069) (GH-134329)
gh-53189: Document peculiarities of InteractiveConsole in relation to pickle (GH-123069)
(cherry picked from commit
a31bbc951a9d74cd7b9092555c101e51a2b9482b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 20 May 2025 08:15:29 +0000 (10:15 +0200)]
[3.13] Clean up test_posixpath (GH-134315) (GH-134317)
* Ensure that created files and dirs are always removed after test.
Now addCleanup() does not conflict with tearDown().
* Use os_helper.unlink() and os_helper.rmdir().
* Import TESTFN from os_helper.
(cherry picked from commit
e29171bf8a26b5faf97222e07a7d5f33c9eb272b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 20 May 2025 01:17:22 +0000 (03:17 +0200)]
[3.13] gh-133940: test_strftime incorrectly calculates expected week (GH-134281) (#134302)
gh-133940: test_strftime incorrectly calculates expected week (GH-134281)
Let the system determine the correct tm_wday and tm_isdst.
(cherry picked from commit
e3dda8f81832008adf19906004f0cd53de95dd0b )
Co-authored-by: Gustaf <79180496+GGyll@users.noreply.github.com>
Miss Islington (bot) [Tue, 20 May 2025 00:05:26 +0000 (02:05 +0200)]
[3.13] gh-134201: Expand explanation of Base85 encodings in base64 docs (GH-134288) (#134297)
gh-134201: Expand explanation of Base85 encodings in base64 docs (GH-134288)
Explain history of de-facto standard and how to pick between the two Base-85 encoding functions in the base-64 module.
---------
(cherry picked from commit
66aaad61037785639aec393be7618cb54b1372dc )
Co-authored-by: Alek Binion <aleksander.binion@gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Miss Islington (bot) [Mon, 19 May 2025 18:41:37 +0000 (20:41 +0200)]
[3.13] gh-117596: Add more tests for os.path with invalid paths (GH-134189) (GH-134266)
(cherry picked from commit
871d26987533e81ab63af067e1fc96aa37a26bf7 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 19 May 2025 15:34:31 +0000 (17:34 +0200)]
[3.13] gh-125225: Fix column misalignment in help('topics') output (gh-125226) (#134226)
The 'help("topics")' output was misaligned due to "ASSIGNMENTEXPRESSIONS"
exceeding the implicit maximum default column width of 19 characters.
Reduced the number of columns from 4 to 3 in the listtopics()
function to allow more space for longer topic names.
(cherry picked from commit
b22460c44d1bc597c96d4a3d27ad8373d7952820 )
Co-authored-by: Étienne Pelletier <EtiennePelletier@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Mon, 19 May 2025 14:13:25 +0000 (16:13 +0200)]
[3.13] gh-134097: Print number of refs & blocks after each statement in new REPL (gh-134136) (gh-134221)
(cherry picked from commit
c31547a5914db93b8b38c6a5261ef716255f3582 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Mon, 19 May 2025 13:49:29 +0000 (15:49 +0200)]
[3.13] gh-122055: Clarify documentation for empty matches in RE (GH-133169) (GH-134218)
(cherry picked from commit
44b73d3cd4466e148460883acf4494124eae8c91 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Peter Bierma [Mon, 19 May 2025 12:54:00 +0000 (08:54 -0400)]
[3.13] Docs: C API: Fix the incorrect `PyThreadState_Swap` documentation (#133900)
Serhiy Storchaka [Mon, 19 May 2025 10:37:36 +0000 (13:37 +0300)]
[3.13] gh-133890: Handle UnicodeEncodeError in tarfile (GH-134147) (GH-134196)
UnicodeEncodeError is now handled the same way as OSError during
TarFile member extraction.
(cherry picked from commit
9983c7d4416cac8deb2fded1ec9c7daf786c3a02 )
Miss Islington (bot) [Mon, 19 May 2025 09:57:19 +0000 (11:57 +0200)]
[3.13] gh-76023: Make os.path.realpath to ignore WinError 1005 in non-strict mode (GH-128328) (GH-134204)
(cherry picked from commit
d55e11b8049e3abf3cc187b4958224b225a39897 )
Co-authored-by: BecoKo <koev_v@yahoo.com>
Miss Islington (bot) [Sun, 18 May 2025 19:16:56 +0000 (21:16 +0200)]
[3.13] gh-133889: Only show the path of the URL in the SimpleHTTPRequestHandler page (GH-134135) (GH-134191)
The query and fragment are ambiguous and not used.
(cherry picked from commit
5cbc8c632e860941602e8f7da9aab52fae40aca6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 18 May 2025 16:36:04 +0000 (18:36 +0200)]
[3.13] document `Py_VISIT` as a macro in the docs (GH-133688) (#134187)
document `Py_VISIT` as a macro in the docs (GH-133688)
(cherry picked from commit
bb32f3c698f5192dddd2d2f33c7c0a3d05afc223 )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Miss Islington (bot) [Sun, 18 May 2025 16:27:09 +0000 (18:27 +0200)]
[3.13] fix indent in `controlflow.rst` docs (GH-134008) (#134185)
fix indent in `controlflow.rst` docs (GH-134008)
(cherry picked from commit
4ce91871a9077fcf8806d6fd79bdb32af9587306 )
Co-authored-by: Yongzi Li <1538321957@qq.com>
Miss Islington (bot) [Sun, 18 May 2025 15:08:28 +0000 (17:08 +0200)]
[3.13] gh-134100: Fix use-after-free in `PyImport_ImportModuleLevelObject` (GH-134117) (#134172)
gh-134100: Fix use-after-free in `PyImport_ImportModuleLevelObject` (GH-134117)
(cherry picked from commit
4e9005d32ff466925f40af410f2ea6bf2329bcf8 )
Co-authored-by: Nico-Posada <102486290+Nico-Posada@users.noreply.github.com>
Thomas Grainger [Sun, 18 May 2025 13:50:07 +0000 (14:50 +0100)]
[3.13] gh-133745: Fix asyncio task factory name/context kwarg breaks (#133948)
In 3.13.3 we accidentally broke the interface for custom task factory. Factory authors added workarounds.
This PR (for 3.13.4) unbreaks task factories that haven't made a workaround yet while also supporting those that have.
NOTE: The custom task factory API will change to what we accidentally released in 3.13.3.
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Miss Islington (bot) [Sun, 18 May 2025 01:53:37 +0000 (03:53 +0200)]
[3.13] gh-134150: Clarify distinction between JSON and Python objects (GH-134154) (#134167)
gh-134150: Clarify distinction between JSON and Python objects (GH-134154)
* gh-134150: Clarify distinction between JSON objects and Python objects in json module docs
* Revert change to JSON introduction
* Clarify occurrences of "object literal" as JSON
(cherry picked from commit
fa4e088668d4a41f9be5babe7edd5409290ee92a )
Co-authored-by: Micha Albert <micha@2231puppy.tech>
Miss Islington (bot) [Sat, 17 May 2025 13:18:14 +0000 (15:18 +0200)]
[3.13] gh-88275: Add missing `__init__` method to `match` example (GH-120281) (#134143)
gh-88275: Add missing `__init__` method to `match` example (GH-120281)
(cherry picked from commit
7a9d46295a497669eaa6e647c33ab71c8cf620a1 )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Sat, 17 May 2025 12:03:58 +0000 (14:03 +0200)]
[3.13] Docs: fix spelling of "test case" in `unittest` documentation (GH-134137) (#134139)
Docs: fix spelling of "test case" in `unittest` documentation (GH-134137)
(cherry picked from commit
b41d79c776af4bfa5d28fc2036c9137978294b6a )
Co-authored-by: Clifford Gama <53076065+cliff688@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 May 2025 08:05:41 +0000 (10:05 +0200)]
[3.13] gh-133881: add forward reference to `list.sort()` in lambda expression tutorial (GH-133910) (#134127)
gh-133881: add forward reference to `list.sort()` in lambda expression tutorial (GH-133910)
(cherry picked from commit
c1c9ad1d5a62a591eb2f0f0d29f3fa02e0949f14 )
Co-authored-by: Oleg Burnaev <51371645+Shepard2154@users.noreply.github.com>
Miss Islington (bot) [Sat, 17 May 2025 07:33:42 +0000 (09:33 +0200)]
[3.13] gh-134098: Fix handling %-encoded trailing slash in SimpleHTTPRequestHandler (GH-134099) (GH-134124)
(cherry picked from commit
2f1ecb3bc474a5895dce090cca7b8afe7b560040 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 17 May 2025 07:23:27 +0000 (09:23 +0200)]
[3.13] gh-133889: Improve tests for SimpleHTTPRequestHandler (GH-134102) (GH-134122)
(cherry picked from commit
fcaf009907fc39d604907315155c1f1de811dd88 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 20:52:42 +0000 (22:52 +0200)]
[3.13] gh-134109: Fix showing comments in pydoc output for argparse (GH-134110) (GH-134113)
Comments immediately preceding the object's source code are used
if the object has no docstring.
Comments that do not describe the object should be separated from
the following source code by an empty line.
(cherry picked from commit
71cf4dd622832848cace358a7f8444243afd2e83 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 19:24:05 +0000 (21:24 +0200)]
[3.13] gh-117026: Remove outdated sentence in SimpleHTTPRequestHandler docs (GH-117027) (GH-134108)
The code was changed in
0f7cddc308b297e6a1c2dd61503acea38401656f (bpo-839496/gh-39531).
(cherry picked from commit
ea2d707bd59963bd4f53407108026930ff12ae56 )
Co-authored-by: Saleh Dehqanpour <salehdeh76@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 19:20:53 +0000 (21:20 +0200)]
[3.13] gh-133286: add explanation about `seq` for pathlib Pattern Language (GH-133340) (#134106)
gh-133286: add explanation about `seq` for pathlib Pattern Language (GH-133340)
(cherry picked from commit
ac8df4b5892d2e4bd99731e7d87223a35c238f81 )
Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
Miss Islington (bot) [Fri, 16 May 2025 15:38:22 +0000 (17:38 +0200)]
[3.13] gh-133515: fix docs for unawaited coroutines in debug mode (GH-134081) (#134094)
gh-133515: fix docs for unawaited coroutines in debug mode (GH-134081)
(cherry picked from commit
d94b1e9cac82143048031530e6c51e59f597bccd )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Fri, 16 May 2025 12:25:22 +0000 (14:25 +0200)]
[3.13] gh-124210: Add introduction to `threading` docs (GH-127046) (#134091)
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Thu, 15 May 2025 13:41:47 +0000 (15:41 +0200)]
[3.13] gh-133410: Fix PR detection in build workflow (GH-133671) (#134054)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
sobolevn [Thu, 15 May 2025 10:43:15 +0000 (13:43 +0300)]
[3.13] gh-133403: Check `Tools/build/deepfreeze.py` with mypy (GH-133802) (#134040)
(cherry picked from commit
7eaa09739059aaac4812395f8d6bb586af8eadcc )
Miss Islington (bot) [Thu, 15 May 2025 07:45:00 +0000 (09:45 +0200)]
[3.13] Test also error messages in test_limit_int. (GH-134018) (GH-134032)
(cherry picked from commit
e123a1d09bcb75aae0c53d9d732de5d9a1252efe )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 15 May 2025 01:33:38 +0000 (03:33 +0200)]
[3.13] gh-133986: Document string split algorithm when sep is None and maxsplit is 0 (GH-133987) (#133992)
gh-133986: Document string split algorithm when sep is None and maxsplit is 0 (GH-133987)
---------
(cherry picked from commit
3e23047363f384b7254b7af51afe4e353be94167 )
Co-authored-by: Joey Smith <joeysmith@gmail.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Miss Islington (bot) [Wed, 14 May 2025 17:42:23 +0000 (19:42 +0200)]
[3.13] Improve tests for str to Fraction conversion (GH-134010) (GH-134017)
(cherry picked from commit
17d0fec702e43e27a9c3f37f8abe06a19b656bed )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Wed, 14 May 2025 15:22:27 +0000 (17:22 +0200)]
[3.13] Docs: remove link elements in builders other than HTML (GH-133720) (#134006)
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>