]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
3 months ago[3.13] gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions...
Miss Islington (bot) [Thu, 10 Jul 2025 16:06:34 +0000 (18:06 +0200)] 
[3.13] gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions (GH-136498) (#136515)

gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions (GH-136498)

Closes GH-52876
(cherry picked from commit 35e2c359703e076256c1249b74b87043972e04d6)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 months ago[3.13] gh-82663: Clarify `codecs.iterdecode/encode` docs (GH-136497) (#136512)
Miss Islington (bot) [Thu, 10 Jul 2025 15:41:27 +0000 (17:41 +0200)] 
[3.13] gh-82663: Clarify `codecs.iterdecode/encode` docs (GH-136497) (#136512)

gh-82663: Clarify `codecs.iterdecode/encode` docs (GH-136497)

Closes GH-82663
(cherry picked from commit 4b41b2043b110a38616ff86ddb3f065ae7f15c3e)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
3 months ago[3.13] gh-136209: Add .. c:var:: declarations for C exception types (GH-136210) ...
Miss Islington (bot) [Thu, 10 Jul 2025 13:10:51 +0000 (15:10 +0200)] 
[3.13] gh-136209: Add .. c:var:: declarations for C exception types (GH-136210) (GH-136503)

(cherry picked from commit 85bc89f35f40c844df74d913fd32b2b1475fc942)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
3 months ago[3.13] gh-136438: Make sure `test_builtins` pass with all optimization levels (GH...
sobolevn [Thu, 10 Jul 2025 11:17:20 +0000 (14:17 +0300)] 
[3.13] gh-136438: Make sure `test_builtins` pass with all optimization levels (GH-136474) (#136502)

(cherry picked from commit c17654334946b232aa296696cf70ec93a09d8156)

3 months ago[3.13] gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431) ...
Miss Islington (bot) [Wed, 9 Jul 2025 23:13:59 +0000 (01:13 +0200)] 
[3.13] gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431) (#136489)

gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431)
(cherry picked from commit 9c4d28777526e9975b212d49fb0a530f773a3209)

Co-authored-by: Victor Stinner <vstinner@python.org>
3 months ago[3.13] gh-136145: Define 'standard library' and 'stdlib' in the glossary (GH-136486)
Miss Islington (bot) [Wed, 9 Jul 2025 21:40:58 +0000 (23:40 +0200)] 
[3.13] gh-136145: Define 'standard library' and 'stdlib' in the glossary (GH-136486)

(cherry picked from commit 92f392ad9e5e10ff98eac319e58ec79df5951ce0)

Co-authored-by: Zachary Ware <zach@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Éric <merwok@netwok.org>
4 months ago[3.13] gh-81520: Document unexpected `os.path.ismount` behaviour with btrfs subvolume...
Miss Islington (bot) [Wed, 9 Jul 2025 16:02:49 +0000 (18:02 +0200)] 
[3.13] gh-81520: Document unexpected `os.path.ismount` behaviour with btrfs subvolumes (GH-136058) (GH-136473)

gh-81520: Document unexpected `os.path.ismount` behaviour with btrfs subvolumes (GH-136058)
(cherry picked from commit 591abcc01fcf1c65c7fdfaca7274f5d3f9f022da)

Co-authored-by: Oskar Roesler <o.roesler@oscloud.info>
4 months ago[3.13] gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136270) (GH-136468)
Miss Islington (bot) [Wed, 9 Jul 2025 14:13:02 +0000 (16:13 +0200)] 
[3.13] gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136270) (GH-136468)

gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136270)
(cherry picked from commit 6a6cd3c07c0300c8799878a48d555470be2a52f7)

Co-authored-by: NekrodNIK <60639354+NekrodNIK@users.noreply.github.com>
4 months ago[3.13] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136466)
Miss Islington (bot) [Wed, 9 Jul 2025 14:01:23 +0000 (16:01 +0200)] 
[3.13] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136466)

Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
4 months ago[3.13] gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL...
Miss Islington (bot) [Wed, 9 Jul 2025 09:21:47 +0000 (11:21 +0200)] 
[3.13] gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL (GH-136448) (#136457)

gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL (GH-136448)
(cherry picked from commit 77fa7a4dcc771bf4d297ebfd4f357483d0750a1c)

Co-authored-by: Justin Su <injustsu@gmail.com>
4 months ago[3.13] gh-136162: Clean up `encodings` package documentation (#136456)
Stan Ulbrych [Wed, 9 Jul 2025 08:41:22 +0000 (10:41 +0200)] 
[3.13] gh-136162: Clean up `encodings` package documentation (#136456)

Remove docs of functions not yet implemented in 3.13

4 months ago[3.13] gh-136162: Document `encodings` package functions (GH-136164) (#136453)
Miss Islington (bot) [Wed, 9 Jul 2025 08:07:25 +0000 (10:07 +0200)] 
[3.13] gh-136162: Document `encodings` package functions (GH-136164) (#136453)

gh-136162: Document `encodings` package functions (GH-136164)

Closes GH-136162.
(cherry picked from commit ffd7f2f231f5543e6863c6c85e86f72233229771)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.13] gh-53243: Document `codecs.readbuffer_encode()` (GH-136284) (#136451)
Miss Islington (bot) [Wed, 9 Jul 2025 08:07:10 +0000 (10:07 +0200)] 
[3.13] gh-53243: Document `codecs.readbuffer_encode()` (GH-136284) (#136451)

gh-53243: Document `codecs.readbuffer_encode()` (GH-136284)

Closes GH-53243
(cherry picked from commit f1dcf3c7bf90961b8d5475154d3f28cfef0a054f)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.13] gh-94503: Update logging cookbook example with info on addressing log injectio...
Miss Islington (bot) [Wed, 9 Jul 2025 08:00:07 +0000 (10:00 +0200)] 
[3.13] gh-94503: Update logging cookbook example with info on addressing log injection. (GH-136446) (GH-136450)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.13] gh-101100: Fix sphinx warnings in `Doc/library/exceptions.rst` (GH-136309...
Miss Islington (bot) [Tue, 8 Jul 2025 12:12:22 +0000 (14:12 +0200)] 
[3.13] gh-101100: Fix sphinx warnings in `Doc/library/exceptions.rst` (GH-136309) (#136415)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.13] gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property...
Miss Islington (bot) [Tue, 8 Jul 2025 08:14:14 +0000 (10:14 +0200)] 
[3.13] gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property.py` (GH-136384) (#136408)

gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property.py` (GH-136384)
(cherry picked from commit db699db99d214dccb7c4849fa609fdd5188ee038)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.13] gh-136155: Docs: only add custom OpenGraph protocol meta tags for HTML builds...
Miss Islington (bot) [Tue, 8 Jul 2025 07:04:09 +0000 (09:04 +0200)] 
[3.13] gh-136155: Docs: only add custom OpenGraph protocol meta tags for HTML builds (GH-136187) (#136383)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
4 months ago[3.13] gh-101100: Fix sphinx warnings in `whatsnew/3.11.rst` (GH-136402) (#136404)
Miss Islington (bot) [Tue, 8 Jul 2025 06:46:32 +0000 (08:46 +0200)] 
[3.13] gh-101100: Fix sphinx warnings in `whatsnew/3.11.rst` (GH-136402) (#136404)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.13] gh-136032: Fix `argparse.BooleanOptionalAction` doc (GH-136133) (#136330)
Miss Islington (bot) [Tue, 8 Jul 2025 02:34:13 +0000 (04:34 +0200)] 
[3.13] gh-136032: Fix `argparse.BooleanOptionalAction` doc (GH-136133) (#136330)

gh-136032: Fix `argparse.BooleanOptionalAction` doc (GH-136133)
(cherry picked from commit 1953713d0d67a4f54ff75bf8449895a2f08cc750)

Co-authored-by: W. H. Wang <mattwang44@gmail.com>
4 months ago[3.13] gh-101100: Fix Sphinx warnings in library/email.compat32-message.rst (GH-13632...
Miss Islington (bot) [Mon, 7 Jul 2025 16:51:04 +0000 (18:51 +0200)] 
[3.13] gh-101100: Fix Sphinx warnings in library/email.compat32-message.rst (GH-136323) (#136390)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.13] gh-124486: Fix test_whichdb_ndbm in test_dbm on NetBSD (GH-136335) (GH-136379)
Miss Islington (bot) [Mon, 7 Jul 2025 12:50:40 +0000 (14:50 +0200)] 
[3.13] gh-124486: Fix test_whichdb_ndbm in test_dbm on NetBSD (GH-136335) (GH-136379)

On NetBSD, ndbm.open() does not fail for empty file.
(cherry picked from commit b7aa2a4b4df697db6ea45a555eeb3fefa5ca5bd4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.13] gh-86682: Add versionadded for sys._getframemodulename (GH-136325) (#136376)
Miss Islington (bot) [Mon, 7 Jul 2025 11:28:32 +0000 (13:28 +0200)] 
[3.13] gh-86682: Add versionadded for sys._getframemodulename (GH-136325) (#136376)

gh-86682: Add versionadded for sys._getframemodulename (GH-136325)

add versionadded for sys._getframemodulename
(cherry picked from commit 11f074b243756bca0db5a7d35dd84f00879de616)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
4 months ago[3.13] gh-101100: Fix sphinx warnings in `whatsnew/3.9` (GH-136163) (#136373)
Miss Islington (bot) [Mon, 7 Jul 2025 10:47:59 +0000 (12:47 +0200)] 
[3.13] gh-101100: Fix sphinx warnings in `whatsnew/3.9` (GH-136163) (#136373)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.13] gh-136289: Fix test_sqlite3 on platforms with strict UTF-8 filesystem (GH...
Miss Islington (bot) [Mon, 7 Jul 2025 09:43:22 +0000 (11:43 +0200)] 
[3.13] gh-136289: Fix test_sqlite3 on platforms with strict UTF-8 filesystem (GH-136326) (GH-136351)

(cherry picked from commit 85b817da94cf911a964d42e81a57e1de9ab71ef9)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.13] gh-94503: Update logging cookbook with an example of uniformly handling newlin...
Miss Islington (bot) [Mon, 7 Jul 2025 09:18:53 +0000 (11:18 +0200)] 
[3.13] gh-94503: Update logging cookbook with an example of uniformly handling newlines in output. (GH-136217) (GH-136358)

(cherry picked from commit d05423a90ce0ee9ad5207dce3dd06ab2397f3d6e)

4 months ago[3.13] gh-127502: Remove XML vulnerability table (GH-135294) (#136360)
Miss Islington (bot) [Mon, 7 Jul 2025 09:10:20 +0000 (11:10 +0200)] 
[3.13] gh-127502: Remove XML vulnerability table (GH-135294) (#136360)

gh-127502: Remove XML vulnerability table (GH-135294)

* Remove the table
* Replace warnings with notes

Latest releases of Python 3.9-3.15 include expat 2.7.1 which is not vulnerable.

expat 2.6.0 was released in February 2024.
(cherry picked from commit cb99d992774b67761441e122965ed056bac09241)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 months ago[3.13] gh-109700: fix interpreter finalization while handling memory error (GH-136342...
Miss Islington (bot) [Mon, 7 Jul 2025 07:37:35 +0000 (09:37 +0200)] 
[3.13] gh-109700: fix interpreter finalization while handling memory error (GH-136342) (#136353)

gh-109700: fix interpreter finalization while handling memory error (GH-136342)
(cherry picked from commit 0c3e3da19570424649c33c0c2c29dc12541935e7)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 months ago[3.13] Docs: Move "or" outside monospace syntax in tarfile.rst (GH-136263) (GH-136348)
Rafael Fontenelle [Mon, 7 Jul 2025 01:24:51 +0000 (22:24 -0300)] 
[3.13] Docs: Move "or" outside monospace syntax in tarfile.rst (GH-136263) (GH-136348)

Docs: Move "or" outside monospace syntax in `tarfile.rst` (GH-136263)

(cherry picked from commit ade19880943509945da193202ca89e0b2b6fbd75)

4 months ago[3.13] gh-109070: Document that get_context in multiprocessing have side effect ...
Miss Islington (bot) [Sun, 6 Jul 2025 18:32:15 +0000 (20:32 +0200)] 
[3.13] gh-109070: Document that get_context in multiprocessing have side effect (GH-136341) (GH-136344)

gh-109070: Document that get_context in multiprocessing have side effect (GH-136341)

Document that get_context in multiprocessing have side effect
(cherry picked from commit 77a8bd29da99e7d4fa8e7f07c4063977c2bb14d3)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
4 months ago[3.13] gh-101100: Fix references in `http.cookiejar` docs (GH-136238) (GH-136317)
Miss Islington (bot) [Sat, 5 Jul 2025 13:35:52 +0000 (15:35 +0200)] 
[3.13] gh-101100: Fix references in `http.cookiejar` docs (GH-136238) (GH-136317)

gh-101100: Fix references in `http.cookiejar` docs (GH-136238)
(cherry picked from commit f0c7344a8fbfe67c05981cce67562e7facfae73d)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.13] gh-136297: Test all `pickle` protocols in `test_zoneinfo_property.py` (GH...
Miss Islington (bot) [Sat, 5 Jul 2025 06:36:41 +0000 (08:36 +0200)] 
[3.13] gh-136297: Test all `pickle` protocols in `test_zoneinfo_property.py` (GH-136298) (#136312)

gh-136297: Test all `pickle` protocols in `test_zoneinfo_property.py` (GH-136298)
(cherry picked from commit 5de7e3f9739b01ad180fffb242ac57cea930e74d)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.13] gh-136288: Fix error message in `_testcapi/vectorcall.c` (GH-136258) (GH-136295)
Miss Islington (bot) [Fri, 4 Jul 2025 16:17:10 +0000 (18:17 +0200)] 
[3.13] gh-136288: Fix error message in `_testcapi/vectorcall.c` (GH-136258) (GH-136295)

gh-136288: Fix error message in `_testcapi/vectorcall.c` (GH-136258)

Use the %N format specifier instead of %s and `PyType_GetName`.
(cherry picked from commit d1d5dce14f90d777608e4403d09079421ff55944)

Co-authored-by: William S Fulton <wsf@fultondesigns.co.uk>
4 months ago[3.13] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 standard...
Miss Islington (bot) [Fri, 4 Jul 2025 07:22:33 +0000 (09:22 +0200)] 
[3.13] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 standard (GH-135664) (GH-136272)

* "--!>" now ends the comment.
* "-- >" no longer ends the comment.
* Support abnormally ended empty comments "<-->" and "<--->".

---------
(cherry picked from commit 8ac7613dc8b8f82253d7c0e2b6ef6ed703a0a1ee)

Co-author: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
4 months ago[3.13] gh-135661: Fix parsing start and end tags in HTMLParser according to the HTML5...
Miss Islington (bot) [Thu, 3 Jul 2025 21:07:40 +0000 (23:07 +0200)] 
[3.13] gh-135661: Fix parsing start and end tags in HTMLParser according to the HTML5 standard (GH-135930) (GH-136256)

* Whitespaces no longer accepted between `</` and the tag name.
  E.g. `</ script>` does not end the script section.

* Vertical tabulation (`\v`) and non-ASCII whitespaces no longer recognized
  as whitespaces. The only whitespaces are `\t\n\r\f `.

* Null character (U+0000) no longer ends the tag name.

* Attributes and slashes after the tag name in end tags are now ignored,
  instead of terminating after the first `>` in quoted attribute value.
  E.g. `</script/foo=">"/>`.

* Multiple slashes and whitespaces between the last attribute and closing `>`
  are now ignored in both start and end tags. E.g. `<a foo=bar/ //>`.

* Multiple `=` between attribute name and value are no longer collapsed.
  E.g. `<a foo==bar>` produces attribute "foo" with value "=bar".

* Whitespaces between the `=` separator and attribute name or value are no
  longer ignored. E.g. `<a foo =bar>` produces two attributes "foo" and
  "=bar", both with value None; `<a foo= bar>` produces two attributes:
  "foo" with value "" and "bar" with value None.

---------
(cherry picked from commit 0243f97cbadec8d985e63b1daec5d1cbc850cae3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
4 months ago[3.13] gh-115119: Recommend upstream libmpdec in build requirements (#136205) (#136245)
Victor Stinner [Thu, 3 Jul 2025 12:55:30 +0000 (14:55 +0200)] 
[3.13] gh-115119: Recommend upstream libmpdec in build requirements (#136205) (#136245)

gh-115119: Recommend upstream libmpdec in build requirements (#136205)

(cherry picked from commit b2e498ac26ba4720fa8a6a466aa8416ab69754d7)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.13] gh-130664: Treat '0' fill character with align '=' as zero-padding for Fractio...
Miss Islington (bot) [Thu, 3 Jul 2025 11:20:49 +0000 (13:20 +0200)] 
[3.13] gh-130664: Treat '0' fill character with align '=' as zero-padding for Fraction's (GH-131067) (GH-136242)

(cherry picked from commit c113a8e5236b31217d82ce289d3df6ec9e8411cd)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
4 months ago[3.13] gh-135069: Fix exception message in encodings.idna module (GH-135071) (#136236)
Miss Islington (bot) [Thu, 3 Jul 2025 10:31:43 +0000 (12:31 +0200)] 
[3.13] gh-135069: Fix exception message in encodings.idna module (GH-135071) (#136236)

gh-135069: Fix exception message in encodings.idna module (GH-135071)
(cherry picked from commit 8dc3383abea72ee3deafec60818aeb817d8fec09)

Co-authored-by: Daniel Hollas <daniel.hollas@bristol.ac.uk>
4 months ago[3.13] Docs: fix docstring of `email.message.Message.add_header` (GH-134355) (#135340)
Miss Islington (bot) [Thu, 3 Jul 2025 10:22:39 +0000 (12:22 +0200)] 
[3.13] Docs: fix docstring of `email.message.Message.add_header` (GH-134355) (#135340)

Docs: fix docstring of `email.message.Message.add_header` (GH-134355)
(cherry picked from commit c23eec29602eb090d6f3e854e41c22c1e2c6dfc2)

Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 months ago[3.13] Fix comments for `heapq.siftup_max` (GH-135359) (#136233)
Miss Islington (bot) [Thu, 3 Jul 2025 10:15:01 +0000 (12:15 +0200)] 
[3.13] Fix comments for `heapq.siftup_max` (GH-135359) (#136233)

Fix comments for `heapq.siftup_max` (GH-135359)
(cherry picked from commit 8f8bdf251a5f79d15ac2b1a6d19860033bf50c79)

Co-authored-by: Alper <alperyoney@fb.com>
Co-authored-by: mpage <mpage@meta.com>
4 months ago[3.13] gh-135640: Adds more type checking to ElementTree (GH-135643) (GH-136226)
Miss Islington (bot) [Thu, 3 Jul 2025 08:12:21 +0000 (10:12 +0200)] 
[3.13] gh-135640: Adds more type checking to ElementTree (GH-135643) (GH-136226)

(cherry picked from commit e0245c789f54b63d461717a91eec8ffccbe18966)

Co-authored-by: Kira <kirawhoprograms@fastmail.com>
4 months ago[3.13] gh-135836: Fix `IndexError` in `asyncio.create_connection()` (GH-135875) ...
Miss Islington (bot) [Thu, 3 Jul 2025 04:31:43 +0000 (06:31 +0200)] 
[3.13] gh-135836: Fix `IndexError` in `asyncio.create_connection()` (GH-135875) (#136222)

gh-135836: Fix `IndexError` in `asyncio.create_connection()` (GH-135875)
(cherry picked from commit 9084b151567d02936ea1374961809b69b4cd883d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.13] gh-135836: Fix `IndexError` in `asyncio.create_connection` with empty exceptio...
Miss Islington (bot) [Thu, 3 Jul 2025 04:07:28 +0000 (06:07 +0200)] 
[3.13] gh-135836: Fix `IndexError` in `asyncio.create_connection` with empty exceptions list (GH-135845) (#136168)

gh-135836: Fix `IndexError` in `asyncio.create_connection` with empty exceptions list (GH-135845)
(cherry picked from commit 0e19db653dfa1a6e750e9cede1f6922e5fd1e808)

Co-authored-by: heliang666s <147408835+heliang666s@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 months ago[3.13] gh-136135: Doc: Fix some broken links (GH-136137) (GH-136219)
Miss Islington (bot) [Thu, 3 Jul 2025 00:59:13 +0000 (02:59 +0200)] 
[3.13] gh-136135: Doc: Fix some broken links (GH-136137) (GH-136219)

gh-136135: Doc: Fix some broken links (GH-136137)
(cherry picked from commit 135ba86212ad116af3cc4a6ba656bc8cfaab131a)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.13] Replace `capi-sig` mailing list with `discuss.python.org` (GH-136211) (#136214)
Miss Islington (bot) [Wed, 2 Jul 2025 17:55:17 +0000 (19:55 +0200)] 
[3.13] Replace `capi-sig` mailing list with `discuss.python.org` (GH-136211) (#136214)

Replace `capi-sig` mailing list with `discuss.python.org` (GH-136211)
(cherry picked from commit 7afe1adb0089d0f2df2add79bbc2300c2f236d90)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.13] gh-115119: Defer removal of bundled libmpdec to 3.16 (GH-133997) (#136201)
Sergey B Kirpichev [Wed, 2 Jul 2025 12:37:06 +0000 (15:37 +0300)] 
[3.13] gh-115119: Defer removal of bundled libmpdec to 3.16 (GH-133997) (#136201)

Rename libmpdecimal -> libmpdec

see https://www.bytereef.org/mpdecimal/doc/libmpdec/index.html
(cherry picked from commit b19c9da401b9e81078103861f55e0762b93453f0)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
4 months ago[3.13] gh-87298: Add tests for find_in_strong_cache() bug in _zoneinfo (GH-24829...
Miss Islington (bot) [Tue, 1 Jul 2025 15:19:39 +0000 (17:19 +0200)] 
[3.13] gh-87298: Add tests for find_in_strong_cache() bug in _zoneinfo (GH-24829) (GH-136182)

(cherry picked from commit 12ce16bc134a602d2ac8acde86ae69f70183cb9f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Paul Ganssle <p.ganssle@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.13] gh-136169: Update parameter name in fractions.from_float method (GH-136172...
Miss Islington (bot) [Tue, 1 Jul 2025 13:30:49 +0000 (15:30 +0200)] 
[3.13] gh-136169: Update parameter name in fractions.from_float method (GH-136172) (#136175)

gh-136169: Update parameter name in fractions.from_float method (GH-136172)

Update parameter name in fractions.from_float method
(cherry picked from commit 9c0cb5beb893284c5d49f947bbd81dfe081a5d71)

Co-authored-by: Vladyslav Lazoryk <80263725+lazorikv@users.noreply.github.com>
4 months ago[3.13] gh-135607: remove null checking of weakref list in dealloc of extension module...
Victor Stinner [Tue, 1 Jul 2025 09:26:52 +0000 (11:26 +0200)] 
[3.13] gh-135607: remove null checking of weakref list in dealloc of extension modules and objects (#135614) (#136126)

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

(cherry picked from commit b1056c2a446b43452e457d5fd5f1bde66afd3883)

Co-authored-by: Xuanteng Huang <44627253+xuantengh@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
4 months ago[3.13] gh-133982: Use implementation-specific `open` in `test_fileio.OtherFileTests...
Miss Islington (bot) [Mon, 30 Jun 2025 22:19:14 +0000 (00:19 +0200)] 
[3.13] gh-133982: Use implementation-specific `open` in `test_fileio.OtherFileTests` (GH-135364) (GH-136149)

gh-133982: Use implementation-specific `open` in `test_fileio.OtherFileTests` (GH-135364)
(cherry picked from commit 23caccf74ce2c8dc5d9c5eb6350d21ef20c6ea0b)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
4 months ago[3.13] gh-85702: Catch PermissionError in zoneinfo.load_tzdata() (GH-136117) (#136136)
Miss Islington (bot) [Mon, 30 Jun 2025 16:31:45 +0000 (18:31 +0200)] 
[3.13] gh-85702: Catch PermissionError in zoneinfo.load_tzdata() (GH-136117) (#136136)

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

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months ago[3.13] gh-63207: Update `time.time` documentation after GH-116822 (GH-136068) (#136139)
Miss Islington (bot) [Mon, 30 Jun 2025 16:16:27 +0000 (18:16 +0200)] 
[3.13] gh-63207: Update `time.time` documentation after GH-116822 (GH-136068) (#136139)

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

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.13] gh-85702: Catch IsADirectoryError in zoneinfo (GH-131333) (#136130)
Miss Islington (bot) [Mon, 30 Jun 2025 15:00:56 +0000 (17:00 +0200)] 
[3.13] gh-85702: Catch IsADirectoryError in zoneinfo (GH-131333) (#136130)

gh-85702: Catch IsADirectoryError in zoneinfo (GH-131333)
(cherry picked from commit d22604a6d1237c42ec5f43df51dfa9aa58240ba4)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
4 months ago[3.13] gh-136122: Fix video link for math.tau documentation (GH-136129) (#136132)
Miss Islington (bot) [Mon, 30 Jun 2025 14:49:35 +0000 (16:49 +0200)] 
[3.13] gh-136122: Fix video link for math.tau documentation (GH-136129) (#136132)

Co-authored-by: sedram <54665381+sedram@users.noreply.github.com>
4 months ago[3.13] gh-48181: Document `codecs.charmap_build` (GH-135997) (#136124)
Miss Islington (bot) [Mon, 30 Jun 2025 13:52:53 +0000 (15:52 +0200)] 
[3.13] gh-48181: Document `codecs.charmap_build` (GH-135997) (#136124)

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

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

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

Co-authored-by: Adam Dangoor <adamdangoor@gmail.com>
4 months ago[3.13] gh-128051: Fix tests if sys.float_repr_style is 'legacy' (#135908) (#136026)
Victor Stinner [Mon, 30 Jun 2025 09:40:06 +0000 (11:40 +0200)] 
[3.13] gh-128051: Fix tests if sys.float_repr_style is 'legacy' (#135908) (#136026)

gh-128051: Fix tests if sys.float_repr_style is 'legacy' (#135908)

(cherry picked from commit f3aec60d7a01c5f085a3ef2d6670d46b42b8ddd3)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
4 months ago[3.13] gh-132813: Fix the csv documentation for quoting and escaping (GH-133209)...
Miss Islington (bot) [Mon, 30 Jun 2025 07:48:11 +0000 (09:48 +0200)] 
[3.13] gh-132813: Fix the csv documentation for quoting and escaping (GH-133209) (#136114)

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

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

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.13] Doc: Fix duplicate words in idlelib (GH-136089) (#136091)
Miss Islington (bot) [Sun, 29 Jun 2025 07:09:36 +0000 (09:09 +0200)] 
[3.13] Doc: Fix duplicate words in idlelib (GH-136089) (#136091)

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

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.13] gh-76595: Add note on `PyCapsule_Import` behavior (GH-134022) (GH-136075)
Miss Islington (bot) [Sat, 28 Jun 2025 13:07:42 +0000 (15:07 +0200)] 
[3.13] gh-76595: Add note on `PyCapsule_Import` behavior (GH-134022) (GH-136075)

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

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

(cherry picked from commit 065194c1a971b59547f1bb2cc64760c4bf0ee674)

Co-authored-by: Will Childs-Klein <willck93@gmail.com>
4 months ago[3.13] gh-108765: fix comment about macro definitions in `_stat.c` post GH-108854...
Miss Islington (bot) [Fri, 27 Jun 2025 15:39:18 +0000 (17:39 +0200)] 
[3.13] gh-108765: fix comment about macro definitions in `_stat.c` post GH-108854 (GH-136027) (#136044)

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

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

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

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

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
4 months ago[3.13] gh-78465: Fix error message for cls.__new__(cls, ...) where cls is not instant...
Serhiy Storchaka [Fri, 27 Jun 2025 12:07:22 +0000 (15:07 +0300)] 
[3.13] gh-78465: Fix error message for cls.__new__(cls, ...) where cls is not instantiable (GH-135981) (GH-136031)

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

4 months ago[3.13] gh-53203: Fix strptime() for %c, %x and %X formats on some locales (GH-135971...
Miss Islington (bot) [Fri, 27 Jun 2025 08:12:58 +0000 (10:12 +0200)] 
[3.13] gh-53203: Fix strptime() for %c, %x and %X formats on some locales (GH-135971) (GH-136020)

* Add detection of decimal non-ASCII alt digits.
* Add support of non-decimal alt digits on locale lzh_TW.
* Accept only numbers in correct range if alt digits are known.
* Fix bug in detecting the position of the week day name on locales byn_ER and wal_ET.
* Fix support of single-digit hour on locales ar_SA and bg_BG.
* Add support for %T, %R, %r, %C, %OC.
* Prepare code to use nl_langinfo().

(cherry picked from commit 07183ebce36462aaaea4d20e0502b20821dd2682)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
4 months ago[3.13] gh-135968: Add iOS binary stubs for strip (GH-135970) (#136015)
Miss Islington (bot) [Fri, 27 Jun 2025 05:38:27 +0000 (07:38 +0200)] 
[3.13] gh-135968: Add iOS binary stubs for strip (GH-135970) (#136015)

Adds iOS binary stubs for invoking `strip`
(cherry picked from commit 0c6c09b7377e10dcf80844c961b578fbdc6f5375)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
4 months ago[3.13] gh-135966: Modify iOS testbed to make app_packages a site directory (GH-135967...
Russell Keith-Magee [Fri, 27 Jun 2025 05:37:05 +0000 (13:37 +0800)] 
[3.13] gh-135966: Modify iOS testbed to make app_packages a site directory (GH-135967) (#136013)

The iOS testbed now treats the app_packages folder as a site folder. This ensures it is
on the path, but also ensures any .pth files are processed on app startup.
(cherry picked from commit b38810bab76c11ea09260a817b3354aebc2af580)

4 months ago[3.13] Docs: Fix duplicate word typos (GH-135958) (GH-136008)
Brian Schubert [Fri, 27 Jun 2025 00:13:46 +0000 (20:13 -0400)] 
[3.13] Docs: Fix duplicate word typos (GH-135958) (GH-136008)

(cherry picked from commit 34ce1920ca33c11ca2c379ed0ef30a91010bef4f)

4 months ago[3.13] gh-135995: Fix missing char in palmos encoding (GH-135990) (#136002)
Miss Islington (bot) [Thu, 26 Jun 2025 22:59:24 +0000 (00:59 +0200)] 
[3.13] gh-135995: Fix missing char in palmos encoding (GH-135990) (#136002)

gh-135995: Fix missing char in palmos encoding (GH-135990)

0x8b correctly encodes to ‹, but 0x9b was mistakenly marked as a control character instead of ›.
---------
(cherry picked from commit 58a42dea97f4fa0df38ef4a95a2ede65e0549f71)

Co-authored-by: Nathan Korth <nkorth@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 months ago[3.13] IDLE: Update NEWS2x.txt with 2.7.0 release date (GH-129908) (#136000)
Miss Islington (bot) [Thu, 26 Jun 2025 20:42:29 +0000 (22:42 +0200)] 
[3.13] IDLE: Update NEWS2x.txt with 2.7.0 release date (GH-129908) (#136000)

IDLE: Update NEWS2x.txt with 2.7.0 release date (GH-129908)
(cherry picked from commit 642e5dfc74310d15bb81f8e94167590380a5fbfb)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
4 months ago[3.13] gh-91555: add warning to docs about possibility of deadlock/infinite recursion...
Miss Islington (bot) [Thu, 26 Jun 2025 14:26:11 +0000 (16:26 +0200)] 
[3.13] gh-91555: add warning to docs about possibility of deadlock/infinite recursion (GH-135954) (GH-135989)

(cherry picked from commit a4625d597f9fc2d083fbb9c22d3ffcec73b2061a)

4 months ago[3.13] gh-135110: Fix misleading `generator.close()` documentation (GH-135152) (GH...
Miss Islington (bot) [Thu, 26 Jun 2025 13:34:11 +0000 (15:34 +0200)] 
[3.13] gh-135110: Fix misleading `generator.close()` documentation (GH-135152) (GH-135986)

gh-135110: Fix misleading `generator.close()` documentation (GH-135152)

The documentation incorrectly stated that generator.close() 'raises' a
GeneratorExit exception. This was misleading because the method doesn't
raise the exception to the caller - it sends the exception internally
to the generator and returns None.
(cherry picked from commit 0d76dccc3b4376ba075a1737f58809e3d83aaaa3)

Co-authored-by: Connor Denihan <188690869+cdenihan@users.noreply.github.com>
4 months ago[3.13] gh-135965: Delete duplicate word in isolating-extensions howto (GH-135964...
Miss Islington (bot) [Thu, 26 Jun 2025 11:47:47 +0000 (13:47 +0200)] 
[3.13] gh-135965: Delete duplicate word in isolating-extensions howto (GH-135964) (#135978)

gh-135965: Delete duplicate word in isolating-extensions howto (GH-135964)

Change use use to use.
(cherry picked from commit ffb2a02f98d904505c8a82d8540c36dee4c67eed)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
4 months ago[3.13] gh-135956: Remove duplicate word in _pydatetime docstring (GH-135957) (#135963)
Miss Islington (bot) [Thu, 26 Jun 2025 04:08:17 +0000 (06:08 +0200)] 
[3.13] gh-135956: Remove duplicate word in _pydatetime docstring (GH-135957) (#135963)

gh-135956: Remove duplicate word in _pydatetime docstring (GH-135957)

_pydatetime.isoformat docstring repeats 'giving'.
(cherry picked from commit e3ea6f2b3b084700a34ce392f5cf897407469b3a)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
4 months ago[3.13] gh-91555: Revert disabling of logger while handling log record. (GH-135858...
Miss Islington (bot) [Wed, 25 Jun 2025 18:24:55 +0000 (20:24 +0200)] 
[3.13] gh-91555: Revert disabling of logger while handling log record. (GH-135858) (GH-135911)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
4 months ago[3.13] Docs: Fix indentation in `slice` class of `functions.rst` (GH-134393) (GH...
Miss Islington (bot) [Wed, 25 Jun 2025 17:45:57 +0000 (19:45 +0200)] 
[3.13] Docs: Fix indentation in `slice` class of `functions.rst` (GH-134393) (GH-135949)

Docs: Fix indentation in `slice` class of `functions.rst` (GH-134393)

Paragraph should not be under `slice.step`. It applies to the whole class.

(cherry picked from commit 6227662ff3bf838d31e9441eda935d24733d705a)

Co-authored-by: Rob Reynolds <13379223+reynoldsnlp@users.noreply.github.com>
4 months ago[3.13] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout...
Sam Gross [Wed, 25 Jun 2025 17:09:17 +0000 (13:09 -0400)] 
[3.13] gh-135871: Fix needless spinning in `_PyMutex_LockTimed` with zero timeout (gh-135872) (gh-135947)

The free threading build could spin unnecessarily on `_Py_yield()` if the initial
compare and swap failed.
(cherry picked from commit cbfaf41caf135b8598a560854cd59e992a2ccfed)

Co-authored-by: Joseph Tibbertsma <josephtibbertsma@gmail.com>
4 months ago[3.13] Docs: Add cross-reference for `positional_item` in the `calls` productionlist...
Miss Islington (bot) [Wed, 25 Jun 2025 14:31:25 +0000 (16:31 +0200)] 
[3.13] Docs: Add cross-reference for `positional_item` in the `calls` productionlist (GH-129977) (GH-135941)

Docs: Add cross-reference for `positional_item` in the `calls` productionlist (GH-129977)

Add missing hyperlink for `positional_item`
(cherry picked from commit d2154912b3b10823c138e904e74f2a1e7e7ca96c)

Co-authored-by: HarryLHW <123lhw321@gmail.com>
4 months ago[3.13] gh-135839: Fix `module_traverse` and `module_clear` in `_interpchannelsmodule...
sobolevn [Wed, 25 Jun 2025 09:25:27 +0000 (12:25 +0300)] 
[3.13] gh-135839: Fix `module_traverse` and `module_clear` in `_interpchannelsmodule` (GH-135840) (#135919)

(cherry picked from commit dd59c786cfb1018eb5abe877bfa7265ea9a3c2b9)

4 months ago[3.13] gh-135755: Docs: C API: Document missing `PyFunction_GET*` macros (GH-135762...
Miss Islington (bot) [Wed, 25 Jun 2025 08:51:58 +0000 (10:51 +0200)] 
[3.13] gh-135755: Docs: C API: Document missing `PyFunction_GET*` macros (GH-135762) (GH-135917)

(cherry picked from commit ca87a47b3d92aabaefbbe79c0493d66602184b41)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months ago[3.13] gh-135855: Raise TypeError When Passing Non-dict Object to `_interpreters...
Brian Schubert [Tue, 24 Jun 2025 22:23:26 +0000 (18:23 -0400)] 
[3.13] gh-135855: Raise TypeError When Passing Non-dict Object to `_interpreters.set___main___attrs` (gh-135903)

(cherry picked from commit 4e6f0d116e, AKA gh-135856)

4 months ago[3.13] gh-135878: Fix crash in `types.SimpleNamespace.__repr__` (GH-135889) (#135895)
Miss Islington (bot) [Tue, 24 Jun 2025 16:59:29 +0000 (18:59 +0200)] 
[3.13] gh-135878: Fix crash in `types.SimpleNamespace.__repr__` (GH-135889) (#135895)

gh-135878: Fix crash in `types.SimpleNamespace.__repr__` (GH-135889)
(cherry picked from commit b3ab94acd308591bbdf264f1722fedc7ee25d6fa)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
4 months ago[3.13] gh-135487: fix `reprlib.Repr.repr_int` when given very large integers (GH...
Miss Islington (bot) [Tue, 24 Jun 2025 12:00:14 +0000 (14:00 +0200)] 
[3.13] gh-135487: fix `reprlib.Repr.repr_int` when given very large integers (GH-135506) (#135886)

gh-135487: fix `reprlib.Repr.repr_int` when given very large integers (GH-135506)
(cherry picked from commit e5f03b94b6d4decbf433d385f692c1b8d9b7e88d)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.13] gh-135494: Fix python -m test --pgo -x test_re (#135713) (#135881)
Victor Stinner [Tue, 24 Jun 2025 10:49:31 +0000 (12:49 +0200)] 
[3.13] gh-135494: Fix python -m test --pgo -x test_re (#135713) (#135881)

gh-135494: Fix python -m test --pgo -x test_re (#135713)

Fix regrtest to support excluding tests from --pgo tests.

(cherry picked from commit 15c6d63fe6fc62c6d78d2fad81965a8e6f7b7b98)

4 months ago[3.13] Bump mypy to 1.16.1 (GH-135720) (#135849)
Hugo van Kemenade [Tue, 24 Jun 2025 07:20:55 +0000 (08:20 +0100)] 
[3.13] Bump mypy to 1.16.1 (GH-135720) (#135849)

Co-authored-by: sobolevn <mail@sobolevn.me>
4 months ago[3.13] Docs: Use `arguments` to replace `args` in `argparse.rst` (GH-135510) (GH...
Miss Islington (bot) [Mon, 23 Jun 2025 22:59:17 +0000 (00:59 +0200)] 
[3.13] Docs: Use `arguments` to replace `args` in `argparse.rst` (GH-135510) (GH-135867)

Docs: Use `arguments` to replace `args` in `argparse.rst` (GH-135510)
(cherry picked from commit caad163b691b2343d823541cfbf741f481ee9f3e)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
4 months ago[3.13] gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size...
Eric Snow [Mon, 23 Jun 2025 19:38:41 +0000 (13:38 -0600)] 
[3.13] gh-135698: Fix Cross-interpreter Queue.full() With Negative/Default max_size (gh-135778)

We weren't handling non-positive maxsize values (including the default) properly
in Queue.full().  This change fixes that and adjusts an associated assert.

(cherry picked from commit c5ea8e8, AKA gh-135724)

4 months ago[3.13] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987...
Miss Islington (bot) [Mon, 23 Jun 2025 10:51:51 +0000 (12:51 +0200)] 
[3.13] gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987) (#135842)

gh-134986: Catch PermissionError when trying to call perf in tests (GH-134987)

Using Ubuntu 24.04 on the Windows Subsystem for Linux, perf will raise a
`PermissionError` instead of `FileNotFoundError`. This commit modifies
the tests to catch that.
(cherry picked from commit 6ab842fce50a6125797bcddfc4a4b2622aa6c6a9)

Co-authored-by: Emma Smith <emma@emmatyping.dev>
4 months ago[3.13] patchcheck: use URL paths to identify upstream remote (GH-135806) (#135809)
Miss Islington (bot) [Mon, 23 Jun 2025 09:57:03 +0000 (11:57 +0200)] 
[3.13] patchcheck: use URL paths to identify upstream remote (GH-135806) (#135809)

Co-authored-by: Kattni <kattni@kattni.com>
4 months ago[3.13] gh-135815: skip `netrc` security checks if `os.getuid` is missing (GH-135816...
Miss Islington (bot) [Sun, 22 Jun 2025 20:12:20 +0000 (22:12 +0200)] 
[3.13] gh-135815: skip `netrc` security checks if `os.getuid` is missing (GH-135816) (#135826)

gh-135815: skip `netrc` security checks if `os.getuid` is missing (GH-135816)
(cherry picked from commit b57b619e34cdfc87b47943c988b0b4d69f8f1fe4)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
4 months ago[3.13] gh-135756: Fix nonexistent parameter in tkinter docs (GH-135770) (#135777)
Miss Islington (bot) [Fri, 20 Jun 2025 23:35:39 +0000 (01:35 +0200)] 
[3.13] gh-135756: Fix nonexistent parameter in tkinter docs (GH-135770) (#135777)

gh-135756: Fix nonexistent parameter in tkinter docs (GH-135770)

Remove nonexistent color parameter from tkinter.commondialog.Dialog.show() method documentation.
(cherry picked from commit 4ddf505d9982dc8afead8f52f5754eea5ebde623)

Co-authored-by: Marcell Perger <102254594+MarcellPerger1@users.noreply.github.com>
4 months ago[3.13] Docs: Document `PyExceptionClass` functions in the C API (GH-135697) (GH-135758)
Miss Islington (bot) [Fri, 20 Jun 2025 14:03:10 +0000 (16:03 +0200)] 
[3.13] Docs: Document `PyExceptionClass` functions in the C API (GH-135697) (GH-135758)

Docs: Document `PyExceptionClass` functions in the C API (GH-135697)

* Docs: Document `PyExceptionClass_Name`

`PyExceptionClass_Name` is an undocumented function in the limited API.

* Document `PyExceptionClass_Check`
(cherry picked from commit 59963e866a1bb8128a50cd53d1b13eeab03df06e)

Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
4 months ago[3.13] gh-135273: Unify `ZoneInfo.from_file` signatures (GH-135274) (#135715)
Miss Islington (bot) [Thu, 19 Jun 2025 15:10:54 +0000 (17:10 +0200)] 
[3.13] gh-135273: Unify `ZoneInfo.from_file` signatures (GH-135274) (#135715)

gh-135273: Unify `ZoneInfo.from_file` signatures (GH-135274)

Align `ZoneInfo.from_file` pure-Python signature with Argument Clinic signature.
(cherry picked from commit 7cc89496922b7edb033e2ed47550c7c9e2ae8525)

Co-authored-by: Andrii Hrimov <andrew.hrimov@gmail.com>
4 months ago[3.13] Docs: Add missing lines between regex and text (GH-134505) (GH-135719)
Miss Islington (bot) [Thu, 19 Jun 2025 15:07:40 +0000 (17:07 +0200)] 
[3.13] Docs: Add missing lines between regex and text (GH-134505) (GH-135719)

Docs: Add missing lines between regex and text (GH-134505)
(cherry picked from commit 754190287ece5a2e66684161aadafb18f5f44868)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
4 months ago[3.13] Docs: Emphasize parameter name in `pkgutil.iter_importers` (GH-135597) (GH...
Miss Islington (bot) [Thu, 19 Jun 2025 13:04:46 +0000 (15:04 +0200)] 
[3.13] Docs: Emphasize parameter name in `pkgutil.iter_importers` (GH-135597) (GH-135711)

Docs: Emphasize parameter name in `pkgutil.iter_importers` (GH-135597)
(cherry picked from commit ff639af8eee11e7ca09999b2724bc10652a00e5d)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
4 months ago[3.13] gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution (GH-135681) (#135705)
Miss Islington (bot) [Thu, 19 Jun 2025 10:04:48 +0000 (12:04 +0200)] 
[3.13] gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution (GH-135681) (#135705)

gh-126112: Fix test_os.TimerfdTests: use 10 ms resolution (GH-135681)

Use 10 ms for CLOCK_RES instead of 100 ms to tolerate slow buildbots.
(cherry picked from commit 5c25c884b93eb79f640c47d6dba20f11fdf0ade4)

Co-authored-by: Victor Stinner <vstinner@python.org>
4 months ago[3.13] Document that PyType_GetModuleByDef returns a borrowed reference (GH-135666...
Miss Islington (bot) [Thu, 19 Jun 2025 07:18:00 +0000 (09:18 +0200)] 
[3.13] Document that PyType_GetModuleByDef returns a borrowed reference (GH-135666) (GH-135702)

(cherry picked from commit 140731ff671395fb7a869c2784429c14dc83fb27)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
4 months agogh-134538: Add link to shutil.rmtree example in function docs (GH-135540)
Miss Islington (bot) [Wed, 18 Jun 2025 21:17:42 +0000 (23:17 +0200)] 
gh-134538: Add link to shutil.rmtree example in function docs (GH-135540)

(cherry picked from commit e9b647dd30d22cef465972d898a34c4b1bb6615d)

Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
4 months ago[3.13] gh-135641: Fix flaky `test_capi.test_lock_two_threads` test case (gh-135642...
Miss Islington (bot) [Wed, 18 Jun 2025 18:47:59 +0000 (20:47 +0200)] 
[3.13] gh-135641: Fix flaky `test_capi.test_lock_two_threads` test case (gh-135642) (gh-135688)

The mutex may have the `_Py_HAS_PARKED` bit set.
(cherry picked from commit 17ac3933c3c860e08f7963cf270116a39a063be7)

Co-authored-by: Sam Gross <colesbury@gmail.com>