]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Serhiy Storchaka [Wed, 26 Feb 2025 10:47:41 +0000 (12:47 +0200)]
[3.13] gh-130163: Fix a leak in _pickle.c after backporting (GH-130568)
Miss Islington (bot) [Wed, 26 Feb 2025 10:02:53 +0000 (11:02 +0100)]
[3.13] Docs: Fix some semantic usages of `iterator.__iter__` (GH-130172) (GH-130543)
These references to an `__iter__` method mean `object.__iter__`, not `iterator.__iter__`.
(cherry picked from commit
4d3a7ea354a8ca7a9978f48e54399526d1b83f42 )
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Miss Islington (bot) [Wed, 26 Feb 2025 08:59:12 +0000 (09:59 +0100)]
[3.13] gh-130433: Update documentation for `MultipartConversionError` (GH-130436) (GH-130565)
(cherry picked from commit
b536e371044f9e9b1b34cc8276a01e67550b5428 )
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Serhiy Storchaka [Tue, 25 Feb 2025 22:50:26 +0000 (00:50 +0200)]
[3.13] gh-130163: Fix crashes related to PySys_GetObject() (GH-130503) (GH-130556)
The use of PySys_GetObject() and _PySys_GetAttr(), which return a borrowed
reference, has been replaced by using one of the following functions, which
return a strong reference and distinguish a missing attribute from an error:
_PySys_GetOptionalAttr(), _PySys_GetOptionalAttrString(),
_PySys_GetRequiredAttr(), and _PySys_GetRequiredAttrString().
(cherry picked from commit
0ef4ffeefd1737c18dc9326133c7894d58108c2e )
Miss Islington (bot) [Tue, 25 Feb 2025 17:38:40 +0000 (18:38 +0100)]
[3.13] Fix a typo in code module test (GH-130530) (#130534)
Fix a typo in code module test (GH-130530)
(cherry picked from commit
56e337d32b88630f2c35458231cd61929f1be6d4 )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Kanishk Pachauri [Tue, 25 Feb 2025 13:24:46 +0000 (18:54 +0530)]
[3.13] gh-130461: Remove unnecessary usages of `.. index::` directives in Doc/library/uuid.rst (#130526) (#130548)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Tue, 25 Feb 2025 07:29:43 +0000 (08:29 +0100)]
[3.13] gh-130292: Allow for empty simulator list when running iOS testbed (GH-130388) (#130532)
Adds error handling when there are no pre-existing test simulators.
(cherry picked from commit
99088ab081279329b8362e1c24533fa0be303e6f )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Mon, 24 Feb 2025 16:10:17 +0000 (17:10 +0100)]
[3.13] gh-46236: Add docs for PyUnicode_GetDefaultEncoding() doc (GH-130335) (GH-130511)
* Clarify sys.getdefaultencoding() documentation
* Add missing documentation for PyUnicode_GetDefaultEncoding,
the C equivalent of sys.getdefaultencoding
(cherry picked from commit
9f25c1f012c8d432a93bf2dcad5f19a64dc00d3c )
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Miss Islington (bot) [Mon, 24 Feb 2025 15:49:35 +0000 (16:49 +0100)]
[3.13] gh-129405: Fix doc for Py_mod_multiple_interpreters default, and add test (GH-129406) (GH-130507)
(cherry picked from commit
fc8d2cba541f378df0a439412665f3dbe0b9ae3c )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Mon, 24 Feb 2025 14:08:07 +0000 (15:08 +0100)]
[3.13] gh-127522: wsgiref: indicate that `start_response` objects should follow a specific protocol (GH-127525) (GH-130504)
(cherry picked from commit
39ba4b6619026bbe65c5844702a8a0bb6e75c4f7 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Mon, 24 Feb 2025 08:19:49 +0000 (09:19 +0100)]
[3.13] gh-130151: Fix reference leaks in `_hashlib.hmac_{new,digest}` (GH-130152) (#130491)
gh-130151: Fix reference leaks in `_hashlib.hmac_{new,digest}` (GH-130152)
* fix leak in `_hashlib.hmac_new`
* fix leak in `hmac_digest`
* fix exception type in `_hashlib.HMAC.copy`
(cherry picked from commit
071820113f11b8f6a21f98652d0840e10268114c )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Mon, 24 Feb 2025 05:23:16 +0000 (06:23 +0100)]
[3.13] gh-127805: Clarify Formatter initialization in logging.rst. (GH-127850) (#130392)
(cherry picked from commit
5d66c55c8ad0a0aeff8d06021ddca1d02c5f4416 )
Co-authored-by: UV <yuvrajpradhan667@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Mon, 24 Feb 2025 03:58:28 +0000 (04:58 +0100)]
[3.13] gh-130160: use `.. program::` directive for documenting `idle` CLI (GH-130278) (#130494)
gh-130160: use `.. program::` directive for documenting `idle` CLI (GH-130278)
---------
(cherry picked from commit
0ff16115741aeaaaf7f963f68d5c575efb960277 )
Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
Xuanteng Huang [Mon, 24 Feb 2025 02:49:55 +0000 (10:49 +0800)]
[3.13] gh-128714: Fix function object races in `__annotate__`, `__annotations__` and `__type_params__` in free-threading build (GH-129016) (#129729)
* gh-128714: Fix function object races in `__annotate__`, `__annotations__` and `__type_params__` in free-threading build (#129016)
(cherry picked from commit
55f17b77c305be877ac856d6426b13591cbc7fc8 )
---------
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Feb 2025 18:33:20 +0000 (19:33 +0100)]
[3.13] Add test checking value of a TypedDict's __total__ attribute when there is an assignment in the class body. (GH-130460) (#130462)
Add test checking value of a TypedDict's __total__ attribute when there is an assignment in the class body. (GH-130460)
In relation to GH-109544 which changed this behavior.
(cherry picked from commit
d8ce092fe4e98fec414f4e60cfc958b3ac3ec9a3 )
Signed-off-by: Daniel Sperber <github.blurry@9ox.net>
Co-authored-by: Daraan <github.blurry@9ox.net>
Miss Islington (bot) [Sat, 22 Feb 2025 18:00:49 +0000 (19:00 +0100)]
[3.13] gh-121970: Replace `.. coroutine{method,function}` with `:async:` (GH-130448) (#130465)
(cherry picked from commit
5ec4bf86b7f4455432aebace996ef390ae3e9302 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Feb 2025 18:00:15 +0000 (19:00 +0100)]
[3.13] Docs: Test presence of optional extensions with importlib (GH-130445) (#130464)
(cherry picked from commit
3cc9e867eba1ed139cf28c74b4a788bcc4801394 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Feb 2025 16:12:45 +0000 (17:12 +0100)]
[3.13] Add measuring unit to `sys.getswitchinterval` docs (GH-130457) (#130458)
Add measuring unit to `sys.getswitchinterval` docs (GH-130457)
(cherry picked from commit
89d8b2d14bb6f7e5c4565b5c3f56d917e6134c89 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sat, 22 Feb 2025 08:37:48 +0000 (09:37 +0100)]
[3.13] gh-129712: Document the wheels tags corresponding to each universal SDK. (GH-130389) (#130449)
Document the architectures supported by macOS universal SDK configuration flags,
and add details on wheel tag naming.
(cherry picked from commit
474c388740ca5f8060c074f517dd14c54409126f )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Adam Turner [Sat, 22 Feb 2025 02:04:54 +0000 (02:04 +0000)]
[3.13] GH-121970: Replace custom abstract method directive with the ``:abstract:`` option (#129311) (#130439)
(cherry picked from commit
30e892473e0dfe5c3fecabcaac420cefe45e2ed4 )
Adam Turner [Sat, 22 Feb 2025 02:01:19 +0000 (02:01 +0000)]
[3.13] GH-103180: Set a timeout for every job in GitHub Actions (GH-130375) (#130431)
(cherry picked from commit
d0a1e5c222f9f43b492b28806e2a185a50d64500 )
Miss Islington (bot) [Sat, 22 Feb 2025 01:47:18 +0000 (02:47 +0100)]
[3.13] gh-130159: Fix list indentation in collections.abc (GH-130165) (#130437)
gh-130159: Fix list indentation in collections.abc (GH-130165)
(cherry picked from commit
8e96adf4532943360f09df04cd7d3a5d35f61a24 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Sat, 22 Feb 2025 01:37:22 +0000 (02:37 +0100)]
[3.13] gh-128446: Skip Windows CI for Unix build system changes (GH-128450) (#130434)
gh-128446: Skip Windows CI for Unix build system changes (GH-128450)
(cherry picked from commit
b05fa90b21dd01bb836285cdd41920320b09e681 )
Authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Hugo van Kemenade [Sat, 22 Feb 2025 00:31:45 +0000 (02:31 +0200)]
[3.13] Convert change detection to a Python script (GH-129627) (#130367)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Miss Islington (bot) [Fri, 21 Feb 2025 17:56:51 +0000 (18:56 +0100)]
[3.13] gh-130285: Fix handling of zero or empty counts in random.sample() (gh-130291) (gh-130416)
Miss Islington (bot) [Fri, 21 Feb 2025 17:22:42 +0000 (18:22 +0100)]
[3.13] gh-126332: Add tests for _pyrepl.utils (GH-129325) (#130414)
gh-126332: Add tests for _pyrepl.utils (GH-129325)
(cherry picked from commit
0c4248f88e279df3254d62b34dfa3204a92c56a0 )
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Miss Islington (bot) [Fri, 21 Feb 2025 14:58:08 +0000 (15:58 +0100)]
[3.13] gh-124234: Improve docs for `Mock.reset_mock` (GH-124237) (#130408)
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Fri, 21 Feb 2025 14:56:39 +0000 (15:56 +0100)]
[3.13] gh-111609: Test `end_offset` in SyntaxError subclass (GH-127830) (#130407)
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Miss Islington (bot) [Fri, 21 Feb 2025 14:18:32 +0000 (15:18 +0100)]
[3.13] gh-129363: Change regrtest sequential mode output (GH-129476) (#130405)
gh-129363: Change regrtest sequential mode output (GH-129476)
First, write the test name without color. Then, write the test name
and the result with color. Each test is displayed twice.
(cherry picked from commit
f1b81c408fb83beeee519ae4fb9d3a36dd4522b3 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
sobolevn [Fri, 21 Feb 2025 13:14:27 +0000 (16:14 +0300)]
[3.13] Add `.. versionadded` directive to `dis` CLI options (GH-130267) (#130401)
(cherry picked from commit
9bf73c032fbf0ea27ebf6e53223c3bc69ee0dbc5 )
Miss Islington (bot) [Fri, 21 Feb 2025 00:22:05 +0000 (01:22 +0100)]
[3.13] Fix outdated reference link in collections module (gh-130349) (gh-130386)
Miss Islington (bot) [Thu, 20 Feb 2025 16:30:46 +0000 (17:30 +0100)]
[3.13] gh-129838: Don't redefine _Py_NO_SANITIZE_UNDEFINED (GH-129839) (#130366)
gh-129838: Don't redefine _Py_NO_SANITIZE_UNDEFINED (GH-129839)
Newer GCC versions accept both __attribute__((no_sanitize("undefined")))
and __attribute__((no_sanitize_undefined)) so check that the macro is
not already defined.
(cherry picked from commit
568db400ff07240a5ed6f263af281405ccaec716 )
Co-authored-by: Collin Funk <collin.funk1@gmail.com>
Miss Islington (bot) [Thu, 20 Feb 2025 15:58:16 +0000 (16:58 +0100)]
[3.13] Fix phrasing in paragraphs with leading "similar" (GH-121135) (#130364)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Miss Islington (bot) [Thu, 20 Feb 2025 15:48:13 +0000 (16:48 +0100)]
[3.13] gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition (GH-130191) (#130360)
gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and PyUnicode_RPartition (GH-130191)
(cherry picked from commit
0f5b82169e12321fd2294bf534496ad42a682ac4 )
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Sam Gross [Thu, 20 Feb 2025 15:42:47 +0000 (10:42 -0500)]
[3.13] gh-129269: Exclude everything in sys.path in `test_coverage_ignore` (gh-130133) (gh-130357)
The `test_trace.test_coverage_ignore` test would fail if you had
`setuptools` installed, such as in `~/.local/lib/python3.xxx/site-packages/`.
Ignore everything in `sys.path` when running the test.
(cherry picked from commit
35925e952911aba97bfdaee85b09d734ceac4fea )
Miss Islington (bot) [Thu, 20 Feb 2025 14:20:26 +0000 (15:20 +0100)]
[3.13] [doc]: Update logging cookbook to mention domain socket configuration in a recipe. (GH-130348) (GH-130351)
(cherry picked from commit
8cbcf51d614815df3ab7ea557f04e6b4b386968e )
Miss Islington (bot) [Thu, 20 Feb 2025 13:06:33 +0000 (14:06 +0100)]
[3.13] gh-101100: Fix sphinx warnings in `readline.rst` (GH-130300) (#130346)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Miss Islington (bot) [Thu, 20 Feb 2025 11:52:06 +0000 (12:52 +0100)]
[3.13] gh-130250: use support.swap_attr() in test and don't assume we're beginning with a clean system state (GH-130342) (#130344)
gh-130250: use support.swap_attr() in test and don't assume we're beginning with a clean system state (GH-130342)
(cherry picked from commit
048ee2d5ec761296ef67f5c59aee1f24408b12db )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Thu, 20 Feb 2025 11:05:23 +0000 (12:05 +0100)]
[3.13] Fix some ctypes docs typos (GH-130307) (GH-130343)
Fix some ctypes docs typos (GH-130307)
(cherry picked from commit
417372bd43ecb61a848eadb3ce142f0ed3441b49 )
Co-authored-by: Alcaro <floating@muncher.se>
Serhiy Storchaka [Thu, 20 Feb 2025 09:49:23 +0000 (11:49 +0200)]
[3.13] gh-127750: Backport some tests for singledispatchmethod (GH-130309) (GH-130340)
(cherry picked from commit
395335d0ff292a15e26575e06f603304d9161ee1 )
(cherry picked from commit
10b32054ad6bce821e3b40101d4414d025be6e36 )
Miss Islington (bot) [Thu, 20 Feb 2025 08:54:31 +0000 (09:54 +0100)]
[3.13] gh-69001: Convert links to more usable buttons (GH-129591) (#130338)
gh-69001: Convert links to more usable buttons (GH-129591)
In Lib/idlelib/help_about.py, there are 2 links that are not underlined or colored, hence hard to tell that clicking works. All buttons might get converted to colored and underlined links in the future.
---------
(cherry picked from commit
ed831b95a231ef949da13a261b40ee1ea0e126d7 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Thu, 20 Feb 2025 07:51:39 +0000 (08:51 +0100)]
[3.13] gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324) (#130337)
gh-130130: Clarify `hash=False` docs in `dataclasses.field` (GH-130324)
(cherry picked from commit
47ace539950fb675d5968736348f0d724ba199f0 )
Co-authored-by: Sabfo <alpha.sabfo@gmail.com>
Miss Islington (bot) [Thu, 20 Feb 2025 07:12:56 +0000 (08:12 +0100)]
[3.13] gh-130293: Ensure test__colorize will pass on dumb terminals. (GH-130333) (#130334)
Ensure colorize tests will run on dumb terminals (or environment with TERM=dumb set)
(cherry picked from commit
1b070060c025a00d43566a6df65aa7631861d7af )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Thu, 20 Feb 2025 02:00:49 +0000 (03:00 +0100)]
[3.13] gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329) (#130330)
gh-130250: fix cleanup in test (impacts refleaks runs) (GH-130329)
(cherry picked from commit
c718c6be0f82af5eb0e57615ce323242155ff014 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Wed, 19 Feb 2025 22:06:43 +0000 (23:06 +0100)]
[3.13] gh-130250: fix regression in traceback.print_last (GH-130318) (#130325)
gh-130250: fix regression in traceback.print_last (GH-130318)
(cherry picked from commit
6c982aeb547528174f8bc843267f584d8b133d14 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Wed, 19 Feb 2025 19:23:49 +0000 (20:23 +0100)]
[3.13] gh-122876: Fix "End of lines" typo (GH-125310) (#130315)
Co-authored-by: za <za@python.or.id>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Tian Gao [Wed, 19 Feb 2025 17:40:03 +0000 (12:40 -0500)]
[3.13] gh-128396: Fix a crash when inline comprehension has the same … (#130311)
[3.13] gh-128396: Fix a crash when inline comprehension has the same local variable as the outside scope (GH-130235)
(cherry picked from commit
ccf17323c218a2fdcf7f4845d3eaa74ebddefa44 )
Miss Islington (bot) [Tue, 18 Feb 2025 23:51:48 +0000 (00:51 +0100)]
[3.13] Docs: Upgrade Sphinx to 8.2 (GH-130171) (#130289)
Docs: Upgrade Sphinx to 8.2 (GH-130171)
(cherry picked from commit
736ad664e0c3be05fad76a764b68ffb700afb612 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
sobolevn [Tue, 18 Feb 2025 13:55:30 +0000 (16:55 +0300)]
[3.13] gh-130160: use `option` instead of `cmdoption` in `dis.rst` (GH-130255) (#130264)
(cherry picked from commit
97d0011e7ec0c8222de46ce581b8bac3cc7dddda )
Miss Islington (bot) [Tue, 18 Feb 2025 12:51:33 +0000 (13:51 +0100)]
[3.13] gh-130160: use `.. program::` directive for documenting `ensurepip` CLI (gh-130253) (gh-130259)
gh-130160: use `.. program::` directive for documenting `ensurepip` CLI (gh-130253)
(cherry picked from commit
8cd7f8bf8d6b62f30a8bba1f968eb0c593a8781a )
Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
Miss Islington (bot) [Tue, 18 Feb 2025 11:18:37 +0000 (12:18 +0100)]
[3.13] gh-130230: Fix crash in pow() with only Decimal third argument (GH-130237) (GH-130246)
(cherry picked from commit
b93b7e566e5a4efe7f077af2083140e50bd2b08f )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 17 Feb 2025 16:23:42 +0000 (17:23 +0100)]
[3.13] gh-130214: Document `PyEllipsis_Type` (GH-130215) (#130223)
gh-130214: Document `PyEllipsis_Type` (GH-130215)
(cherry picked from commit
fc8c99a8ce483db23fa624592457e350e99193f6 )
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Miss Islington (bot) [Mon, 17 Feb 2025 15:36:49 +0000 (16:36 +0100)]
gh-128703: Fix mimetypes.guess_type for empty Content-Type in registry (GH-128854)
(cherry picked from commit
303043f5062c1e7ffb7907abde61dbf13c98f8e9 )
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Stan Ulbrych [Mon, 17 Feb 2025 14:02:39 +0000 (14:02 +0000)]
[3.13] gh-82045: Correct and deduplicate "isprintable" docs; add test. (GH-130127)
We had the definition of what makes a character "printable" documented in three places, giving two different definitions.
The definition in the comment on `_PyUnicode_IsPrintable` was inverted; correct that.
With that correction, the two definitions turn out to be equivalent -- but to confirm that, you have to go look up, or happen to know, that those are the only five "Other" categories and only three "Separator" categories in the Unicode character database. That makes it hard for the reader to tell whether they really are the same, or if there's some subtle difference in the intended semantics.
Fix that by cutting the C API docs' and the C comment's copies of the subtle details, in favor of referring to the Python-level docs. That ensures it's explicit that these are all meant to agree, and also lets us concentrate improvements to the wording in one place.
Speaking of which, borrow some ideas from the C comment, along with other tweaks, to hopefully add a bit more clarity to that one newly-centralized copy in the docs.
Also add a thorough test that the implementation agrees with this definition.
Author: Greg Price <gnprice@gmail.com>
Co-authored-by: Greg Price <gnprice@gmail.com>
(cherry picked from commit
3402e133ef26736296c07992266a82b181a5d532 )
Hugo van Kemenade [Mon, 17 Feb 2025 13:18:30 +0000 (15:18 +0200)]
[3.13] CI: Use ImageOS (ubuntu24) instead of runner.os (Linux) in cache keys (GH-130200) (#130222)
Miss Islington (bot) [Mon, 17 Feb 2025 09:21:00 +0000 (10:21 +0100)]
[3.13] gh-130193: Increase test coverage of gettext.c2py (GH-130208) (GH-130217)
(cherry picked from commit
fb2d325725dcc881868b576b9d0d9f4bf7f24fe0 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Pieter Eendebak [Mon, 17 Feb 2025 09:12:24 +0000 (10:12 +0100)]
[3.13] gh-127750: Fix functools.singledispatchmethod() (GH-130029)
Revert gh-107148
Miss Islington (bot) [Mon, 17 Feb 2025 08:24:59 +0000 (09:24 +0100)]
[3.13] gh-86069: Add more PyNumber_InPlacePower() tests (GH-130111) (GH-130211)
Test it with the third argument.
(cherry picked from commit
cfe41037eb5293a051846ddc0b4afdb7a5f60540 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
sobolevn [Mon, 17 Feb 2025 08:21:47 +0000 (11:21 +0300)]
[3.13] gh-129805: Fix `bytes` annotation in `Tools/jit` (GH-129806) (#130216)
(cherry picked from commit
422f8e9e02e68d45aee3846751a003a70fca13b6 )
Miss Islington (bot) [Sun, 16 Feb 2025 19:03:32 +0000 (20:03 +0100)]
[3.13] gh-118761: Revert "Improve import time of `subprocess` (GH-129427)" (GH-130201) (#130204)
gh-118761: Revert "Improve import time of `subprocess` (GH-129427)" (GH-130201)
* Revert "gh-118761: Improve import time of `subprocess` (GH-129427)"
This reverts commit
49f24650e4541456872490ec2b59d6d186204891 .
Also known as
f502c8f6a6db4be27c97a0e5466383d117859b7f in 3.13 (PR GH-129447)
Also known as
f65aa0d1bf7b636ab8f9d226429205854b24cd7a in 3.12 (PR GH-129448)
This caused bugs in the `__del__` finalizer:
https://github.com/python/cpython/issues/118761#issuecomment-
2661504264
---------
(cherry picked from commit
ae3064608935367c860182dc1b364631082ecdff )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sun, 16 Feb 2025 14:22:23 +0000 (15:22 +0100)]
[3.13] gh-130179: Fix `persistent_{id,load}_attr` reference leaks in `_pickle` (GH-130180) (#130190)
gh-130179: Fix `persistent_{id,load}_attr` reference leaks in `_pickle` (GH-130180)
(cherry picked from commit
e7f00cd14f6a0c0dee6e733ac3e2c5d92e0809bb )
Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sun, 16 Feb 2025 13:57:27 +0000 (14:57 +0100)]
[3.13] gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186) (#130188)
gh-130185: Fix unintentionally skipped tests in `test_functools` (GH-130186)
(cherry picked from commit
73d03005b028eb6e4d1a643f3ca7a1f5ff2040fc )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Sun, 16 Feb 2025 13:20:49 +0000 (14:20 +0100)]
[3.13] gh-127488: Add tests for Tools/i18n/msgfmt.py (GH-127540) (GH-130182)
(cherry picked from commit
361083b84b0db975058b2d1f50dcbfd36f072caf )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Sun, 16 Feb 2025 12:36:23 +0000 (13:36 +0100)]
[3.13] gh-130177: Fix unintentionally skipped tests in test_gettext (GH-130178) (GH-130183)
(cherry picked from commit
2e8044a4f74f5fc19e5249139c171403aff0118d )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Sun, 16 Feb 2025 11:01:45 +0000 (12:01 +0100)]
[3.13] gh-130169: Fix broken list markup in `Doc/c-api/function.rst` (GH-130174) (#130175)
gh-130169: Fix broken list markup in `Doc/c-api/function.rst` (GH-130174)
(cherry picked from commit
9837c2a21457e4eacabf606c44ec42d1962f11f1 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Miss Islington (bot) [Sat, 15 Feb 2025 09:55:08 +0000 (10:55 +0100)]
[3.13] gh-130145: fix `loop.run_forever` when loop is already running (GH-130146) (#130147)
gh-130145: fix `loop.run_forever` when loop is already running (GH-130146)
(cherry picked from commit
a545749b0e6c56cab853c5c8df3c199b9707994f )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Sat, 15 Feb 2025 06:10:24 +0000 (07:10 +0100)]
Doc: update term "namespace package" (GH-129251)
(cherry picked from commit
e65e9f90626a4c62da4d3500044f354b51e51dbb )
Miss Islington (bot) [Sat, 15 Feb 2025 03:37:05 +0000 (04:37 +0100)]
[3.13] gh-130106: Fix a typo in unittest.mock doc (GH-130107) (#130143)
gh-130106: Fix a typo in unittest.mock doc (GH-130107)
(cherry picked from commit
d2e60d8e598b622573b68b80b4fbf98c021dd087 )
Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి) <thatiparthysreenivas@gmail.com>
Andrew Svetlov [Fri, 14 Feb 2025 16:34:17 +0000 (17:34 +0100)]
[3.13] gh-128308: pass `**kwargs` to asyncio task_factory (GH-128768) (#130084)
* [3.13] gh-128308: pass `**kwargs` to asyncio task_factory (GH-128768)
(cherry picked from commit
38a99568763604ccec5d5027f0658100ad76876f )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
---------
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Thu, 13 Feb 2025 14:42:21 +0000 (15:42 +0100)]
[3.13] Update manpage environment variables and command line arguments (GH-129623) (#130078)
Co-authored-by: Stefano Rivera <stefano@rivera.za.net>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 13 Feb 2025 06:47:05 +0000 (07:47 +0100)]
[3.13] gh-130025: Correct handling of symlinks during iOS testbed framework installation. (GH-130026) (#130073)
Correct handling of symlinks during iOS testbed framework installation.
(cherry picked from commit
625470a7d2c6aa79b5e60ffe17785ccc2547a090 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Thu, 13 Feb 2025 02:03:00 +0000 (03:03 +0100)]
[3.13] gh-129693: Suppress `SyntaxWarning` in test_fstring (GH-129830) (#130068)
gh-129693: Suppress `SyntaxWarning` in test_fstring (GH-129830)
Suppress SyntaxWarning in test_fstring
(cherry picked from commit
2dd018848ca254047835850b8b95d805cbf7efaf )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Pablo Galindo Salgado [Thu, 13 Feb 2025 01:49:25 +0000 (01:49 +0000)]
[3.13] gh-116042: Fix location for SyntaxErrors of invalid escapes in the tokenizer (GH-116049) (#130066)
(cherry picked from commit
56eda256336310a08d4beb75b998488cb359444b )
(cherry picked from commit
369704b428982968346c1482fccdac8b25fdd836 )
Miss Islington (bot) [Wed, 12 Feb 2025 22:56:02 +0000 (23:56 +0100)]
[3.13] gh-129912: Fix references to `Py_TPFLAGS_MANAGED_DICT` (gh-130044) (gh-130059)
(cherry picked from commit
791cdfe1416a591e240b8ffc6f10eb6f659c8277 )
Co-authored-by: Satyam Kumar <isatyamks@gmail.com>
Sam Gross [Wed, 12 Feb 2025 15:43:25 +0000 (10:43 -0500)]
[3.13] gh-128759: Fix accesses to `tp_version_tag`. (GH-129750) (GH-130042)
We should use a relaxed atomic load in the free threading build in
`PyType_Modified()` because that's called without the type lock held.
It's not necessary to use atomics in `type_modified_unlocked()`.
We should also use `FT_ATOMIC_STORE_UINT_RELAXED()` instead of the
`UINT32` variant because `tp_version_tag` is declared as `unsigned int`.
(cherry picked from commit
57f45ee2d8ee23c2a1d1daba4095a5a044169419 )
Kumar Aditya [Wed, 12 Feb 2025 13:33:56 +0000 (19:03 +0530)]
[3.13] gh-129983: fix data race in compile_template in sre.c (#130038)
gh-129983: fix data race in compile_template in sre.c (#130015)
(cherry picked from commit
3cf68cdd3e1809df4e426c61f6990de63747ec6f )
Co-authored-by: Tomasz Pytel <tompytel@gmail.com>
Miss Islington (bot) [Wed, 12 Feb 2025 08:24:00 +0000 (09:24 +0100)]
[3.13] gh-59149: Setup documentation for IDLE on Linux and add section in Editors (GH-130003) (#130027)
---------
(cherry picked from commit
555ee43d929ad4b917db2caee3f2c10a2636832c )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Sam Gross [Wed, 12 Feb 2025 01:45:02 +0000 (20:45 -0500)]
[3.13] gh-128133: use relaxed atomics for hash of bytes (GH-128412) (#130022)
(cherry picked from commit
0706bab1c0985761cdbc07ab448f98c717276b36 )
Co-authored-by: Abhijeet <abhijeetsharma2002@gmail.com>
Sam Gross [Tue, 11 Feb 2025 23:18:12 +0000 (18:18 -0500)]
[3.13] gh-129967: Fix race condition in `repr(set)` (gh-129978) (gh-130020)
The call to `PySequence_List()` could temporarily unlock and relock the
set, allowing the items to be cleared and return the incorrect
notation `{}` for a empty set (it should be `set()`).
(cherry picked from commit
a7427f2db937adb4c787754deb4c337f1894fe86 )
Co-authored-by: T. Wouters <thomas@python.org>
Miss Islington (bot) [Tue, 11 Feb 2025 21:37:25 +0000 (22:37 +0100)]
[3.13] gh-101100: Docs: Fix some typos in the document (GH-129988) (#129997)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Tue, 11 Feb 2025 19:28:25 +0000 (20:28 +0100)]
[3.13] gh-97850: Update the deprecation warning of `importlib.abc.Loader.load_module` (GH-129855) (GH-130013)
gh-97850: Update the deprecation warning of `importlib.abc.Loader.load_module` (GH-129855)
(cherry picked from commit
aa81a6f6e4f265565da9781d0bf95c7d16ddd961 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Mon, 10 Feb 2025 20:48:24 +0000 (21:48 +0100)]
[3.13] gh-128100: Use atomic dictionary load in `_PyObject_GenericGetAttrWithDict` (GH-128297) (GH-129979)
(cherry picked from commit
47d2cb8eb7595df5940225867dbb66b6dd59413a )
Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>
Miss Islington (bot) [Mon, 10 Feb 2025 16:36:06 +0000 (17:36 +0100)]
[3.13] gh-46236: Document `PyUnicode_DecodeCodePageStateful` (GH-127934) (GH-129961)
gh-46236: Document `PyUnicode_DecodeCodePageStateful` (GH-127934)
(cherry picked from commit
8d9d3e4ecb4c908df6560b54138dd5af73b3ed47 )
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Miss Islington (bot) [Mon, 10 Feb 2025 14:30:31 +0000 (15:30 +0100)]
[3.13] gh-127712: Fix `secure` argument of `logging.handlers.SMTPHandler` (GH-127726) (GH-129955)
(cherry picked from commit
d7672e5d5a7b9580a72dbe75d3a9e8840bcc604c )
Miss Islington (bot) [Mon, 10 Feb 2025 12:03:40 +0000 (13:03 +0100)]
[3.13] gh-129583: update bundled pip to 25.0.1 (GH-129909) (#129946)
Co-authored-by: Stéphane Bidoul <stephane.bidoul@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Miss Islington (bot) [Mon, 10 Feb 2025 11:26:50 +0000 (12:26 +0100)]
[3.13] gh-129143: Fix incorrect documentation for logging.Handler.close(). (GH-129950) (GH-129951)
(cherry picked from commit
7c156a63d3d5aadff0d40af73c0f622f7a0fcea5 )
Miss Islington (bot) [Mon, 10 Feb 2025 10:16:28 +0000 (11:16 +0100)]
[3.13] gh-126554: correct detection of `gcc` for `TestNullDlsym.test_null_dlsym` (GH-129872) (#129944)
gh-126554: correct detection of `gcc` for `TestNullDlsym.test_null_dlsym` (GH-129872)
In case gcc is not available, the test will fail with FileNotFoundError.
So catch the exception to skip the test correctly.
(cherry picked from commit
978211c8a8646b050a8d687ca720f934fcce112c )
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Co-authored-by: Peter Marko <peter.marko@siemens.com>
Miss Islington (bot) [Mon, 10 Feb 2025 05:16:09 +0000 (06:16 +0100)]
[3.13] gh-68400: Remove outdated 2.7 comment (GH-129919) (#129937)
(cherry picked from commit
d9bf3c16e53f04b600e42cd0ac560820e3522b57 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Erlend E. Aasland [Mon, 10 Feb 2025 00:21:33 +0000 (01:21 +0100)]
[3.13] gh-129603: Don't segfault if sqlite3.Row description is None (#129604) (#129923)
(cherry picked from commit
7e6ee50b6b8c760bcefb92ab4ddbc3d85d37a834 )
Miss Islington (bot) [Sun, 9 Feb 2025 21:06:16 +0000 (22:06 +0100)]
[3.13] gh-129870: Skip test_dump_virtual_tables if SQLite lacks FTS4 support (GH-129913) (#129918)
(cherry picked from commit
cda83cade0b684bcb1221a30bfe0b6861abd3b3f )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Miss Islington (bot) [Sun, 9 Feb 2025 15:47:10 +0000 (16:47 +0100)]
[3.13] gh-129892: Doc: Remove unnecessary role directive in graphlib.py (GH-129896) (#129904)
gh-129892: Doc: Remove unnecessary role directive in graphlib.py (GH-129896)
Change `:exec:ValueError` to `ValueError` in `TopologicalSorter.done()` docstring
(cherry picked from commit
c53730171f18b90202aa0918b3c05412222bb1ec )
Co-authored-by: Nikola Savic <76233425+nikolasavic3@users.noreply.github.com>
Miss Islington (bot) [Sun, 9 Feb 2025 09:19:36 +0000 (10:19 +0100)]
[3.13] gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859) (#129884)
gh-129873: IDLE: Improve help.py's method of parsing HTML (GH-129859)
In `help.copy_strip`, only copy the text `<section>`. In `help.HelpParser.handle_starttag` and elsewhere, remove code to skip the no longer present html. Add a reminder at the top of idle.rst to run copy_strip after changes.
---------
(cherry picked from commit
6fbf15f98e04f582aeccf5334a94840149ff7cd5 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Terry Jan Reedy [Sun, 9 Feb 2025 07:36:37 +0000 (02:36 -0500)]
[3.13] gh-129876: Initial 3.14 News3.txt entries (GH-129881) (#129882)
Miss Islington (bot) [Sun, 9 Feb 2025 06:37:29 +0000 (07:37 +0100)]
[3.13] gh-112953: Update news to finish 3.13 as main (GH-129877) (#129878)
Entry for patch to 3.13.rc3
(cherry picked from commit
f72977b2f4a29063ae3019e50360f4af869f4149 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 8 Feb 2025 20:14:47 +0000 (21:14 +0100)]
[3.13] gh-129699: Add description to IDLE doc title (GH-129727) (#129864)
gh-129699: Add description to IDLE doc title (GH-129727)
Also extend the 'idlelib' section header. These additions affect both the displayed idle.html file and the contents.html file displayed by clicking the Complete table of contents link on the main docs.python.org page. (The module index entries are generated from the module name and synopsis within module files.)
---------
(cherry picked from commit
33a7094aa680bca66582fec4dcda7d150eb90cd8 )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 8 Feb 2025 20:12:22 +0000 (21:12 +0100)]
[3.13] gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866) (#129868)
gh-64414: mention AF_INET6 and IPv6 in socketserver docs. (GH-129866)
mention AF_INET6 and IPv6 in socketserver docs.
(cherry picked from commit
5ce70ad129d2e34a09f8ae6ee0542f4f996fb8ec )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Tomasz Pytel [Sat, 8 Feb 2025 15:59:30 +0000 (10:59 -0500)]
[3.13] gh-128657: fix _hashopenssl ref/data race (GH-128886) (GH-129853)
(cherry picked from commit
6c67904e793828d84716a8c83436c9495235f3a1 )
Miss Islington (bot) [Fri, 7 Feb 2025 15:18:57 +0000 (16:18 +0100)]
[3.13] gh-117657: Fix data race in `dict_dict_merge` (gh-129755) (gh-129808)
Found while running `test_load_attr_module` from `test_opcache` under TSan.
(cherry picked from commit
34379d0a593e5a76e2f754cdd7fccb79f25a4613 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Fri, 7 Feb 2025 00:45:15 +0000 (01:45 +0100)]
[3.13] Add multinomial to the itertools recipes docs (gh-129760) (gh-129762)
Donghee Na [Thu, 6 Feb 2025 23:11:17 +0000 (08:11 +0900)]
[3.13] gh-129533: Update PyGC_Enable/Disable/IsEnabled to use atomic operat… (gh-129756)
gh-129533: Update PyGC_Enable/Disable/IsEnabled to use atomic operation (gh-129563)
(cherry picked from commit
b184abf074c0e1f379a238f07da5616460f36b93 )