]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Serhiy Storchaka [Sun, 24 Aug 2025 08:37:41 +0000 (11:37 +0300)]
[3.13] gh-137986: Fix and improve the csv functions docstrings (GH-137987) (GH-138108)
The csv.register_dialect() docstring no longer imply that it returns a
dialect.
All functions have now signatures.
(cherry picked from commit
aa1dbd4dde32951de2e7438b56d6761001604ee2 )
Co-authored-by: maurycy <5383+maurycy@users.noreply.github.com>
Bénédikt Tran [Sat, 23 Aug 2025 12:27:47 +0000 (14:27 +0200)]
[3.13] gh-136134: smtplib: fix CRAM-MD5 on FIPS-only environments (GH-136623) (#138087)
(cherry picked from commit
766614f88af0433c2c14f5c4ed11c92d0fb04e61 )
(cherry picked from commit
ab1bef8ad27ad531a1109cfc016ea627d94f9cc1 )
Bénédikt Tran [Sat, 23 Aug 2025 11:01:36 +0000 (13:01 +0200)]
[3.13] gh-136134: imaplib: fix CRAM-MD5 on FIPS-only environments (GH-136615) (#138055)
(cherry picked from commit
4519b8acb5a65df2af69e60b0d8c0a5df5bfb087 )
Miss Islington (bot) [Sat, 23 Aug 2025 09:33:58 +0000 (11:33 +0200)]
[3.13] gh-137754: Fix import of zoneinfo if _datetime is not available (GH-137845) (GH-138085)
Both modules should use the Python implementation in that case.
(cherry picked from commit
6620ef0ff62dea2632bedf9afa88aa4780a2c9d9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 23 Aug 2025 00:01:37 +0000 (02:01 +0200)]
[3.13] gh-133125: Clarify ZipInfo.date_time attribute documentation (GH-136082) (#138076)
gh-133125: Clarify ZipInfo.date_time attribute documentation (GH-136082)
Specifically, clarify that ZipInfo.date_time pulls the datetime information from the central directory, and that times are interpreted as local time.
(cherry picked from commit
282e88506b1d3c2ea2a0fd2fbce6c4e27ddc1c92 )
Co-authored-by: Kentaro Jay Takahashi <64148935+KentaroJay@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Miss Islington (bot) [Fri, 22 Aug 2025 18:25:55 +0000 (20:25 +0200)]
[3.13] gh-91116: Add hyperlink from `sys.settrace` to frame objects (GH-138062) (GH-138069)
gh-91116: Add hyperlink from `sys.settrace` to frame objects (GH-138062)
(cherry picked from commit
f278afcabf1a1c4162a0bfd4912662517d5d04a2 )
Co-authored-by: Krishna Chaitanya <141550576+XChaitanyaX@users.noreply.github.com>
Miss Islington (bot) [Fri, 22 Aug 2025 13:44:19 +0000 (15:44 +0200)]
[3.13] gh-135386: Skip readonly tests for the root user (GH-138058) (GH-138064)
(cherry picked from commit
5b0f00e616738ededcf4b178dee8c30f5005e7ae )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Kliment Lamonov [Fri, 22 Aug 2025 12:25:24 +0000 (15:25 +0300)]
[3.13] gh-132744: Check recursion limit in _PY_FRAME_GENERAL (GH-132746) (GH-138032)
Miss Islington (bot) [Fri, 22 Aug 2025 11:35:21 +0000 (13:35 +0200)]
[3.13] gh-135386: Fix "unable to open database file" errors on readonly DB (GH-135566) (GH-138057)
Add immutable=1 flag for read-only SQLite access to avoid WAL/SHM errors on readonly DB.
(cherry picked from commit
c0ae92b7c07d8146bbcc6ed5197f97a7a16efded )
Co-authored-by: General_K1ng <generak1ng0@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 22 Aug 2025 06:30:58 +0000 (08:30 +0200)]
[3.13] gh-137973: Add a non-parallel test plan to the iOS testbed project (GH-138018) (#138039)
Modifies the iOS testbed project to add a test plan. This simplifies the iOS
test runner, as we can now use the built-in log streaming to see test results.
It also allows for some other affordances, like providing a default LLDB config,
and using a standardized mechanism for specifying test arguments.
(cherry picked from commit
2ba2287b85eea3cc3a71d77c6bcf9eb5670ca05d )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Bénédikt Tran [Thu, 21 Aug 2025 18:28:03 +0000 (20:28 +0200)]
[3.13] gh-135734: correctly handle `--enable-optimizations --disable-test-modules` combination (#137998)
Miss Islington (bot) [Thu, 21 Aug 2025 16:40:15 +0000 (18:40 +0200)]
[3.13] gh-138011: Clarify tutorial method object example code (GH-138014) (#138026)
x must be a MyClass instance for examples to work.
---------
(cherry picked from commit
339f5da6395868073e22157424405b89cafb5c6d )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Serhiy Storchaka [Wed, 20 Aug 2025 13:43:28 +0000 (16:43 +0300)]
[3.13] gh-137477: Fix inspect.getblock() for generator expressions (GH-137488) (GH-137995)
This fixes also inspect.getsourcelines() and inspect.getsource().
(cherry picked from commit
eae9d7de1c45a64076a926d53672823e6ae1777d )
Miss Islington (bot) [Wed, 20 Aug 2025 13:15:39 +0000 (15:15 +0200)]
[3.13] gh-137900: Improve dataclasses frozen parameter documentation (GH-137937) (#137991)
gh-137900: Improve dataclasses frozen parameter documentation (GH-137937)
(cherry picked from commit
7685b8ada84822a7ee9ce51e8ee0e2e35fd60b4e )
Co-authored-by: Tangyuan <47830915@qq.com>
Miss Islington (bot) [Wed, 20 Aug 2025 11:13:53 +0000 (13:13 +0200)]
[3.13] Fix typo in `logging` docs (GH-137981) (GH-137984)
Fix typo in `logging` docs (GH-137981)
(cherry picked from commit
9b5235b62ed85e4757f1530cd73ef8d318be6215 )
Co-authored-by: Maximilian Linhoff <maximilian.linhoff@cta-observatory.org>
Serhiy Storchaka [Tue, 19 Aug 2025 17:39:08 +0000 (20:39 +0300)]
[3.13] Update the dbm documentation (GH-137919) (GH-137963)
Unify documentation for all backends, enumerate all not implemented mapping
methods, document particularities of implemented mapping methods.
(cherry picked from commit
8700404f8688d6a56279dce47a5a5802ec53ed06 )
Miss Islington (bot) [Tue, 19 Aug 2025 12:22:42 +0000 (14:22 +0200)]
[3.13] [docs] fix grammar in ssl.SSLContect.sslsocket_class docs (GH-137935) (#137951)
[docs] fix grammar in ssl.SSLContect.sslsocket_class docs (GH-137935)
---------
(cherry picked from commit
379161dd51c2cf67568e007fbb5fa225e73c9e10 )
Co-authored-by: PrinceNaroliya <naroliyaprince@gmail.com>
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Miss Islington (bot) [Tue, 19 Aug 2025 11:27:30 +0000 (13:27 +0200)]
[3.13] gh-127859: Fixed documentation for call_later and call_at for early wakeup in asyncio (GH-137859) (#137907)
Co-authored-by: Bar Harel <bzvi7919@gmail.com>
Miss Islington (bot) [Mon, 18 Aug 2025 21:21:26 +0000 (23:21 +0200)]
[3.13] gh-134869: Fix Ctrl+C corrupts REPL autocomplete (GH-134929) (#137925)
gh-134869: Fix Ctrl+C corrupts REPL autocomplete (GH-134929)
(cherry picked from commit
8750e5ecfcfbc337efb511046d34f28b2d26bd68 )
Co-authored-by: ggqlq <124190229+ggqlq@users.noreply.github.com>
Miss Islington (bot) [Mon, 18 Aug 2025 15:05:12 +0000 (17:05 +0200)]
[3.13] gh-44538: Mention nested classes/functions in doctest docs (GH-137870) (GH-137917)
gh-44538: Mention nested classes/functions in doctest docs (GH-137870)
(cherry picked from commit
138ed6db9f89171983dc32af4e7ad2e73d46a940 )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Miss Islington (bot) [Mon, 18 Aug 2025 13:55:44 +0000 (15:55 +0200)]
[3.13] gh-123085: _compile_importlib: Avoid copying sources before compilation (GH-124131) (#137914)
gh-123085: _compile_importlib: Avoid copying sources before compilation (GH-124131)
(cherry picked from commit
42c8b0556c02d29e32f4c7c95e7128a343716250 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Mon, 18 Aug 2025 13:13:19 +0000 (15:13 +0200)]
[3.13] gh-135862: add C contiguous one-dimensional buffer requirement to `asyncio.StreamWriter` docs (GH-137910) (#137913)
gh-135862: add C contiguous one-dimensional buffer requirement to `asyncio.StreamWriter` docs (GH-137910)
(cherry picked from commit
1c3950abc1d403bddce5212c08d6c40e78486e9d )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Adam Turner [Mon, 18 Aug 2025 11:59:24 +0000 (12:59 +0100)]
[3.13] gh-131885: Use positional-only markers for the ``decimal`` module (GH-131990) (#137904)
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Gregory P. Smith [Sun, 17 Aug 2025 16:08:14 +0000 (09:08 -0700)]
[3.13] gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805) (GH-137827)
* [3.13] gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805)
Instead of surprise crashes and memory corruption, we now hang threads that attempt to re-enter the Python interpreter after Python runtime finalization has started. These are typically daemon threads (our long standing mis-feature) but could also be threads spawned by extension modules that then try to call into Python. This marks the `PyThread_exit_thread` public C API as deprecated as there is no plausible safe way to accomplish that on any supported platform in the face of things like C++ code with finalizers anywhere on a thread's stack. Doing this was the least bad option.
(cherry picked from commit
8cc5aa47ee464ddfd8da5461edecf4a5c72df2ff )
Co-authored-by: Jeremy Maitin-Shepard <jeremy@jeremyms.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
* state "3.13.7 and earlier"
* backport: do not add the deprecated marker
* fix Py_IsFinalizing doc ref
---------
Co-authored-by: Jeremy Maitin-Shepard <jeremy@jeremyms.com>
Miss Islington (bot) [Sun, 17 Aug 2025 10:59:24 +0000 (12:59 +0200)]
[3.13] gh-135661: Fix parsing unterminated bogus comments in HTMLParser (GH-137873) (GH-137875)
Bogus comments that start with "<![CDATA[" should not include the starting "!"
in its value.
(cherry picked from commit
7636a66635a0da849cfccd06a52d0a21fb692271 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sat, 16 Aug 2025 14:56:21 +0000 (16:56 +0200)]
[3.13] gh-137846: Add missing 'be' to profile doc. (GH-137856) (#137858)
gh-137846: Add missing 'be' to profile doc. (GH-137856)
Insert 'be' into 'will interpreted'.
(cherry picked from commit
3663b2ad54c9e15775a605facf69da8f5ee8d335 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 16 Aug 2025 11:17:55 +0000 (13:17 +0200)]
[3.13] gh-90483: fix docs of `SubprocessTransport.get_pipe_transport ` (GH-137852) (#137854)
gh-90483: fix docs of `SubprocessTransport.get_pipe_transport ` (GH-137852)
(cherry picked from commit
038a6e3b959b1fa55f43b2e60bc207c01f7da0ce )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Sat, 16 Aug 2025 10:59:26 +0000 (12:59 +0200)]
[3.13] gh-101359: clarify docs for `asyncio.Event.clear` (GH-137849) (#137851)
gh-101359: clarify docs for `asyncio.Event.clear` (GH-137849)
(cherry picked from commit
4b2dbe8e0aa35046622f87dec1fa42da4d2deb2d )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Miss Islington (bot) [Fri, 15 Aug 2025 18:22:46 +0000 (20:22 +0200)]
[3.13] gh-131178: Add tests for `site` command-line interface (GH-133582) (GH-137833)
gh-131178: Add tests for `site` command-line interface (GH-133582)
(cherry picked from commit
03f5519d776e28ffd0b8344ef328ecddf863fe0a )
Co-authored-by: ggqlq <124190229+ggqlq@users.noreply.github.com>
Miss Islington (bot) [Fri, 15 Aug 2025 17:50:47 +0000 (19:50 +0200)]
[3.13] gh-137777: Disband the 'Program Frameworks' chapter (GH-137796) (#137831)
Co-authored-by: rimchoi <hyerimc858@gmail.com>
Jason R. Coombs [Fri, 15 Aug 2025 14:21:16 +0000 (07:21 -0700)]
[3.13] gh-123085: Fix issue in inferred caller when resource package has no source (GH-123102) (#124024)
Miss Islington (bot) [Fri, 15 Aug 2025 14:11:04 +0000 (16:11 +0200)]
[3.13] Mention the "context manager" keyword in concurrent.futures documentation (GH-130976) (#137811)
Mention the "context manager" keyword in concurrent.futures documentation (GH-130976)
(cherry picked from commit
095bc775ecb5d4213767de3feebaa5a98d8c603c )
Co-authored-by: Jakub Stasiak <jakub@stasiak.at>
Miss Islington (bot) [Fri, 15 Aug 2025 13:59:18 +0000 (15:59 +0200)]
[3.13] gh-137760: Update REPL constants documentation (gh-137798) (gh-137823)
gh-137760: Update REPL constants documentation (gh-137798)
(cherry picked from commit
d6719c6be651bbc6a8547c3b65714184e06462de )
Co-authored-by: Chaemin-Lim <antraxmin@naver.com>
adam j hartz [Fri, 15 Aug 2025 09:10:39 +0000 (05:10 -0400)]
[3.13] gh-137576: Fix for Basic REPL showing incorrect code in tracebacks with `PYTHONSTARTUP` (GH-137625) (#137778)
(cherry picked from commit
04f8ef663be7589def9f456a2024e1707e3408ea )
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Thu, 14 Aug 2025 19:56:42 +0000 (21:56 +0200)]
[3.13] gh-134262: Catch both URLError and ConnectionError in retries (GH-135365) (#137779)
gh-134262: Catch both URLError and ConnectionError in retries (GH-135365)
(cherry picked from commit
acc20a83f4d93682e91c4992c785eaf7e3d0c69c )
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Miss Islington (bot) [Thu, 14 Aug 2025 19:01:13 +0000 (21:01 +0200)]
[3.13] gh-134262: Fix off by one errors in download retry functions (GH-137775)
(cherry picked from commit
e64395e8eb8d3a9e35e3e534e87d427ff27ab0a5 )
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Miss Islington (bot) [Thu, 14 Aug 2025 18:44:16 +0000 (20:44 +0200)]
[3.13] gh-135661: Fix CDATA section parsing in HTMLParser (GH-135665) (GH-137773)
"] ]>" and "]] >" no longer end the CDATA section.
Make CDATA section parsing context depending.
Add private method HTMLParser._set_support_cdata() to change the context.
If called with True, "<[CDATA[" starts a CDATA section which ends with "]]>".
If called with False, "<[CDATA[" starts a bogus comments which ends with ">".
(cherry picked from commit
0cbbfc462119b9107b373c24d2bda5a1271bed36 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Thomas Wouters [Thu, 14 Aug 2025 18:13:46 +0000 (20:13 +0200)]
Merge branch '3.13' of https://github.com/python/cpython into 3.13
Thomas Wouters [Thu, 14 Aug 2025 18:13:25 +0000 (20:13 +0200)]
Post 3.13.7
Miss Islington (bot) [Thu, 14 Aug 2025 16:08:14 +0000 (18:08 +0200)]
[3.13] gh-109975: Indicate the minimum version for PyREPL in the tutorial (GH-136046) (#137767)
Co-authored-by: Konstantin Morenko <konstantin-morenko@users.noreply.github.com>
Thomas Wouters [Thu, 14 Aug 2025 11:11:55 +0000 (13:11 +0200)]
Python 3.13.7
Miss Islington (bot) [Thu, 14 Aug 2025 10:52:30 +0000 (12:52 +0200)]
[3.13] gh-131788: make resource_tracker re-entrant safe (GH-131787) (#137738)
gh-131788: make resource_tracker re-entrant safe (GH-131787)
(cherry picked from commit
f24a012350f71141648cbd61081a25a458dd7fff )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Wed, 13 Aug 2025 18:11:25 +0000 (20:11 +0200)]
[3.13] gh-87281: Improve documentation for locale.setlocale() and locale.getlocale() (GH-137313) (GH-137723)
Add a section explaining the locale name formats.
(cherry picked from commit
15ab45775cb01e4baab6af6016347a6f95124e23 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Wed, 13 Aug 2025 09:37:15 +0000 (12:37 +0300)]
[3.13] gh-137668: Document that ord() supports also bytes and bytearray (GH-137669) (GH-137704)
(cherry picked from commit
35759fe2faf1443455dfcb15ef7c435e34b492c7 )
sobolevn [Wed, 13 Aug 2025 06:18:29 +0000 (09:18 +0300)]
[3.13] gh-133403: Run `mypy` on `Tools/build/mypy.ini` changes (GH-137692) (#137699)
(cherry picked from commit
e93dca72232efe6d5cf2d52ea6dd3967ff61360b )
sobolevn [Wed, 13 Aug 2025 05:47:48 +0000 (08:47 +0300)]
[3.13] gh-133403: Check `generate_stdlib_module_names` and `check_extension_modules` with mypy (GH-137546) (#137691)
(cherry picked from commit
68a61b0f1d5661180fd432ff9b8ab21272468a87 )
Hugo van Kemenade [Tue, 12 Aug 2025 22:00:20 +0000 (01:00 +0300)]
[3.13] gh-137242: Add Android CI job (GH-137186) (#137684)
(cherry picked from commit
f660ec37531b5e368a27ba065f73d31ff6fb6680 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Miss Islington (bot) [Tue, 12 Aug 2025 20:27:50 +0000 (22:27 +0200)]
[3.13] gh-136672: Docs: Move Enum functions and add examples (GH-136791) (#137689)
Co-authored-by: RafaelWO <38643099+RafaelWO@users.noreply.github.com>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) [Tue, 12 Aug 2025 11:42:55 +0000 (13:42 +0200)]
[3.13] Update pre-commit hooks (GH-137591) (GH-137641)
(cherry picked from commit
b36d23f58e8ab85b8576ab59c2ce72572c2cb12a )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 12 Aug 2025 05:17:24 +0000 (07:17 +0200)]
[3.13] gh-126008: Improve docstrings for Tkinter cget and configure methods (GH-133303) (GH-137661)
* Explain the behavior of Widget.configure() depending on arguments.
* Unify descriptions.
* Replace "resource" with "option".
(cherry picked from commit
027cacb67ce1b16a96a6a2866299803eff16a4a6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Peter Bierma [Tue, 12 Aug 2025 02:05:13 +0000 (22:05 -0400)]
[3.13] gh-137583: Only lock the SSL context, not the SSL socket (GH-137588) (GH-137613)
Fixes a deadlock introduced in 3.13.6.
(cherry picked from commit
55788a90967e82a9ea05b45c06a293b46ec53d72 )
Miss Islington (bot) [Mon, 11 Aug 2025 23:37:52 +0000 (01:37 +0200)]
[3.13] gh-131885: Use positional-only markers for ``max()`` and ``min()`` (GH-131868) (#137657)
Co-authored-by: Evan Kohilas <ekohilas@users.noreply.github.com>
Miss Islington (bot) [Mon, 11 Aug 2025 23:26:02 +0000 (01:26 +0200)]
[3.13] gh-125897: Mark range function parameters as positional only (GH-125945) (#137653)
Co-authored-by: Konstantin Baikov <konstantin.baikov@gmail.com>
Sam Gross [Mon, 11 Aug 2025 16:07:21 +0000 (12:07 -0400)]
[3.13] gh-137400: Fix a crash when disabling profiling across all threads (gh-137471) (gh-137649)
The `PyEval_SetProfileAllThreads` function and other related functions
had a race condition on `tstate->c_profilefunc` that could lead to a
crash when disable profiling or tracing on all threads while another
thread is starting to profile or trace a a call.
There are still potential crashes when threads exit concurrently with
profiling or tracing be enabled/disabled across all threads.
(cherry picked from commit
362692852f13cdd1d33cc7ed35c0cbac7af1a785 )
Miss Islington (bot) [Mon, 11 Aug 2025 13:04:54 +0000 (15:04 +0200)]
[3.13] Add test for opening an SQLite with bytes path (GH-136331) (GH-137633)
Add test for opening an SQLite with bytes path (GH-136331)
(cherry picked from commit
1bde13b0e99592fbfce3538b27ada29ea09840a6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 11 Aug 2025 11:25:13 +0000 (13:25 +0200)]
[3.13] Fix documentation of hash in PyHash_FuncDef (GH-137595) (#137643)
Fix documentation of hash in PyHash_FuncDef (GH-137595)
Because of a small typo, it wasn't showing up in the generated docs.
(cherry picked from commit
70218b40082396d68c277667fc9bb7f87d095e3c )
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Miss Islington (bot) [Sun, 10 Aug 2025 20:05:28 +0000 (22:05 +0200)]
[3.13] gh-136914: Fix support of cached functions and properties in DocTest's lineno computation (GH-136930) (GH-137615)
Previously, DocTest's lineno of functions and methods decorated with
functools.cache(), functools.lru_cache() and functools.cached_property()
was not properly returned (None was returned) because the
computation relied on inspect.isfunction() which does not consider the
decorated result as a function.
We now use the more generic inspect.isroutine(), as elsewhere
in doctest's logic.
Also, added a special case for functools.cached_property().
(cherry picked from commit
fece15d29f28e89f1231afa80508c80ed28dc37d )
Co-authored-by: Denis Laxalde <denis@laxalde.org>
Miss Islington (bot) [Sat, 9 Aug 2025 12:42:25 +0000 (14:42 +0200)]
[3.13] gh-137499: Fixed dead link to NIST website (GH-137500) (#137501)
Co-authored-by: tobiasjcat <70606111+tobiasjcat@users.noreply.github.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
Miss Islington (bot) [Sat, 9 Aug 2025 05:35:38 +0000 (07:35 +0200)]
[3.13] gh-137026: Add an explainer guide for asyncio (GH-137215) (#137582)
gh-137026: Add an explainer guide for asyncio (GH-137215)
* - Add an explainer guide (aka HOWTO, not how-to) for asyncio.
* Fix linter errors.
* - Enforce max line length of roughly 79 chars.
- Start sentences on new lines to minimize disruption of diffs.
* Add reference to subinterpreters.
* - Significantly reduce article size. Remove both example sections & "Which concurrency do I want" section.
* Align section-header lengths with section names.
* - Remove reference to deleted section.
* - Fix a variety of rote style guide items like title-alignment, use of ie and $, and so forth.
- Add links to other parts of the docs for keywords and objects like await, coro, task, future, etc.
* - One last title alignment.
* - Style nit.
* - Rework a variety of I statements.
* Lint fix.
* - Firm up commentary on yield from in corotuines.
* Update language comparing await and yield from.
* - Remove await-ing Tasks and futures section
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* - Address comments related to style & writing flow.
* per-thread event loop note.
* Add section describing coroutines roots in generators.
* Phrasing tweak.
* Use asyncio.create_task instead of asyncio.Task
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* small phrasing.
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* phrasing nit.
* style nits
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* phrasing nit
* Fix misnaming of async generator.
* phrasing nits.
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* consistent spacing
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* phrasing nits
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* add conclusion
* nits
* - Variety of style & grammar improvements thanks to ZeroIntensity's comments.
* - Make all directives start with a 3 space indent. Then 4 thereafter.
* - Use :linenos: instead of manually writing the line numbers.
* - Fix label typo for article.
* fix label link.
* Apply suggestions from code review
* - introduce async-sleep name
* Phrasing
* nit
* ungendered octopus
* teammates
* jobs
* rework fella to penguin
* - remove byline; add seealso
* Change ref from asyncio to use seealso block.
* Remove typehints. Fix indentation in one code example.
* Slight rephrase for clarity.
* Make references point to asyncio. Wrap some long lines.
* - Variety of style/phrasing improvements based on PR feedback.
* phrasing.
* phrasing nit.
* Apply suggestions from code review
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* nit
* Apply suggestions from code review
* fix backticks.
* nits
* nit
* add section on asyncio.run
* title change under the hood.
* modify task coro example.
* howtos article link.
* prefer await without backticks.
* phrasing tweak.
* Rework phrasing around how await tasks pauses and returns control in the await section.
* move code block to beforfe explanation in coroutine under the hood.
* phrasing.
* link to yield from.
* style nits
* nit
* - Modify language re: event-loop cycling endlessly.
- Discuss why await was designed to not yield for coros.
* - Add a note about debug=True on asyncio.run to await coro section.
* clarity nit
* - Add two other references in seealso block.
* nit
* Language simplification
* Apply suggestions from code review
* nit
* grammar fix.
* fix
* worker bees
* rework event loop paragraph to significantly deemphasize queues
* remove all references to queue besides the initial analogy.
* add note about garbage collection of tasks
* add practical note re: garbage collection
* phrasing nits
* re arrange note on task gc.
* line wrap nit
* Update Doc/howto/a-conceptual-overview-of-asyncio.rst
* link to debug mode docs.
* readd part2 prefix.
* simplify title.
* fix titles. tihnk I messed this up earlier.
* avoid idiom in title.
* fix titles once agian.
* Apply suggestions from code review
* rework task gc example.
* phrasing tweak.
* tewak.
* nit
* nit
* nit
* nit
---------
(cherry picked from commit
3964f974894eff1653913dda437971e0bbfa8ccc )
Co-authored-by: Alexander Nordin <alexander.f.nordin@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Hugo van Kemenade [Fri, 8 Aug 2025 16:29:36 +0000 (19:29 +0300)]
[3.13] Fix typo in Doc/extending/extending.rst (GH-136890) (#137561)
Co-authored-by: Cornelius Roemer <cornelius.roemer@gmail.com>
Miss Islington (bot) [Fri, 8 Aug 2025 16:05:24 +0000 (18:05 +0200)]
[3.13] gh-136155: Docs: check for EPUB fatal errors in CI (GH-134074) (#137538)
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Fri, 8 Aug 2025 14:08:01 +0000 (16:08 +0200)]
[3.13] Replace "ordered arguments" with "positional arguments" in `unittest.mock` documentation (GH-137552) (GH-137554)
Replace "ordered arguments" with "positional arguments" in `unittest.mock` documentation (GH-137552)
(cherry picked from commit
64ee1babfb971ddbc00fd8711cccebfbddf6e4ee )
Co-authored-by: Tom Forbes <tom@tomforb.es>
Miss Islington (bot) [Fri, 8 Aug 2025 07:37:24 +0000 (09:37 +0200)]
[3.13] Bump mypy to 1.17.1 (GH-137542) (#137544)
Bump mypy to 1.17.1 (GH-137542)
(cherry picked from commit
fb1cb00030c706366dfd1a457dd5de324d5619ea )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Fri, 8 Aug 2025 02:21:21 +0000 (04:21 +0200)]
[3.13] [Doc] Remove unnecessary quotes from typing module (GH-137207) (#137540)
[Doc] Remove unnecessary quotes from typing module (GH-137207)
* gh-106320: Remove private _PyInterpreterState functions (GH-106335)
Remove private _PyThreadState and _PyInterpreterState C API
functions: move them to the internal C API (pycore_pystate.h and
pycore_interp.h). Don't export most of these functions anymore, but
still export functions used by tests.
Remove _PyThreadState_Prealloc() and _PyThreadState_Init() from the C
API, but keep it in the stable API.
* Doc: minor change
* Revert "Doc: minor change"
This reverts commit
ebfa0937c2caf0110ab1540f14956d56fe925092 .
* [Doc] Remove unnecessary quotes from typing (See Also section)
* [Doc] Remove unnecessary quotes from typing
---------
(cherry picked from commit
f06fcb7f4b430993ece308e4e11cba939a676c69 )
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 8 Aug 2025 01:25:24 +0000 (03:25 +0200)]
[3.13] gh-130102: drop "require numeric arguments" from pow() docs (GH-137456) (#137537)
gh-130102: drop "require numeric arguments" from pow() docs (GH-137456)
(cherry picked from commit
37b5a0d671685645db8f1d5ecfa1260587f1fc28 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Senthil Kumaran <senthil@python.org>
Miss Islington (bot) [Thu, 7 Aug 2025 22:54:27 +0000 (00:54 +0200)]
[3.13] gh-137412: fix `default_builtin_hashes` values in `test_hashlib.py` (GH-137413) (#137535)
gh-137412: fix `default_builtin_hashes` values in `test_hashlib.py` (GH-137413)
fix `default_builtin_hashes` in test_hashlib
(cherry picked from commit
deb385a14337bc3e38442b4cee3aac4a57364adc )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Guilherme Leobas [Thu, 7 Aug 2025 21:29:45 +0000 (18:29 -0300)]
[3.13] gh-137463: Update validate_abstract_methods in test_collections.py (GH-137464) (#137521)
gh-137463: Update `validate_abstract_methods` in `test_collections.py` (#137464)
Update `validate_abstract_methods` in `test_collections.py`
The test for missing abstract methods in `validate_abstract_methods` incorrectly attempted to instantiate the generated class `C` with an argument (`C(name)`), which always raises a `TypeError: C() takes no arguments`. Although the test originally passes, it passes for the wrong reason.
This change makes the test correctly validate the enforcement of abstract methods in ABCs.
(cherry picked from commit
5be872350d562e6c9987b09ff4b7bda80a2f9cd0 )
Miss Islington (bot) [Thu, 7 Aug 2025 19:42:04 +0000 (21:42 +0200)]
[3.13] gh-137526: Fix broken link to drdobbs journal in difflib.rst (GH-137527) (#137532)
gh-137526: Fix broken link to drdobbs journal in difflib.rst (GH-137527)
(cherry picked from commit
244c7b8c4c579972e7db54132bdd74de3d3b3c0a )
Co-authored-by: Sebastien Williams-Wynn <s.williamswynn.mail@gmail.com>
Miss Islington (bot) [Thu, 7 Aug 2025 16:54:52 +0000 (18:54 +0200)]
[3.13] gh-137440: Update comment in Python/hamt.c on importing for testing (GH-137441) (GH-137520)
gh-137440: Update comment in Python/hamt.c on importing for testing (GH-137441)
Switch from `_testcapi` to `_testinternalcapi`.
(cherry picked from commit
7ab68cd50658f76abc9e0f12e6212736e2440720 )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Miss Islington (bot) [Thu, 7 Aug 2025 09:37:02 +0000 (11:37 +0200)]
[3.13] gh-137044: Support large limit values in getrlimit() and setrlimit() (GH-137338) (GH-137507)
* Return large limit values as positive integers instead of negative integers
in resource.getrlimit().
* Accept large values and reject negative values (except RLIM_INFINITY)
for limits in resource.setrlimit().
(cherry picked from commit
baefaa6cba1d69efd2f930cdc56bca682c54b139 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Emma Smith [Thu, 7 Aug 2025 04:17:28 +0000 (21:17 -0700)]
[3.13] gh-134262: increase retries in `Tools/build/generate_sbom.py` … (#137496)
[3.13] gh-134262: increase retries in `Tools/build/generate_sbom.py` (GH-134558)
(cherry picked from commit
3f9eb55e090a8de80503e565f508f341c5f4c8da )
Emma Smith [Wed, 6 Aug 2025 22:58:08 +0000 (15:58 -0700)]
[3.13] gh-134262: Add retries to generate_sbom.py (GH-134263) (#137468)
(cherry picked from commit
0c5a8b0b55238a45b9073d06a10c3a59568cdf3c )
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Miss Islington (bot) [Wed, 6 Aug 2025 22:04:15 +0000 (00:04 +0200)]
[3.13] Docs: Small clarity change for ``except*`` (GH-121073) (#137495)
Co-authored-by: Greg Stein <gstein@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 6 Aug 2025 21:58:11 +0000 (23:58 +0200)]
[3.13] Docs: Use the correct example module in warnings.rst (GH-137402) (#137493)
Co-authored-by: Mendel Feygelson <mfeygelson@gmail.com>
Thomas Wouters [Wed, 6 Aug 2025 21:04:32 +0000 (23:04 +0200)]
Post 3.13.6
Thomas Wouters [Wed, 6 Aug 2025 13:05:02 +0000 (15:05 +0200)]
Python 3.13.6
Serhiy Storchaka [Wed, 6 Aug 2025 13:02:26 +0000 (16:02 +0300)]
[3.13] gh-137056: Fix DTrace build support on NetBSD (GH-137057) (#137445)
(cherry picked from commit
54a5fdffc8e20f111e7a7d2df352e8be057177ff )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Hugo van Kemenade [Wed, 6 Aug 2025 12:59:55 +0000 (15:59 +0300)]
[3.13] gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135) (#137455)
gh-137134: Update SQLite to 3.50.4 for binary releases (GH-137135)
* Update SQLite to 3.50.3 for binary releases.
* macOS and Windows news entries. what about Android?
* update sbom hash
* newline fix via regen-sbom
* news wording
* Update SQLite to 3.50.4 for binary releases.
* update 3.50.4.0.tar.gz hash in sbom & regen-sbom to fix whitespace
* Postpone to a separate PR the build-installer changes to support additional hash types
(cherry picked from commit
532c37695d03f84fc6d12f891d26b901ef402ac4 )
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Wed, 6 Aug 2025 12:59:11 +0000 (14:59 +0200)]
[3.13] gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415) (#137461)
gh-58124: Avoid CP_UTF8 in UnicodeDecodeError (GH-137415)
Fix name of the Python encoding in Unicode errors of the code page
codec: use "cp65000" and "cp65001" instead of "CP_UTF7" and "CP_UTF8"
which are not valid Python code names.
(cherry picked from commit
ce1b747ff68754635b7b12870dfc527184ee3b39 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Wed, 6 Aug 2025 11:43:54 +0000 (13:43 +0200)]
[3.13] gh-137450: macOS installer shell path management improvements (GH-137451) (#137452)
Separate the installer `Shell profile updater` postinstall script from the `Update Shell Profile.command` to enable more robust error handling.
(cherry picked from commit
781eb1a688e0575a38c79575493f3ff83208a33e )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Tue, 5 Aug 2025 21:17:12 +0000 (23:17 +0200)]
[3.13] gh-81325: Support path-like objects with streaming TarFile (GH-137188) (#137366)
Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
Miss Islington (bot) [Tue, 5 Aug 2025 21:16:59 +0000 (23:16 +0200)]
[3.13] Docs: add dunder and walrus to the glossary (GH-137430) (#137435)
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Miss Islington (bot) [Tue, 5 Aug 2025 21:16:24 +0000 (23:16 +0200)]
[3.13] gh-136823: Update documentation on excluded headers in Python.h (GH-136824) (#137438)
Co-authored-by: Sina Zel taat <111974143+SZeltaat@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 5 Aug 2025 20:21:10 +0000 (22:21 +0200)]
[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.12.0 (GH-137393) (#137432)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 5 Aug 2025 15:02:57 +0000 (17:02 +0200)]
[3.13] gh-123441: Correct the supported languages of the iso-8859-4 codec (GH-137034) (GH-137418)
(cherry picked from commit
525784aa65d35a5609aba53c873a9a3a578f992b )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Sergey B Kirpichev [Tue, 5 Aug 2025 13:54:31 +0000 (16:54 +0300)]
[3.13] gh-122450: Expand documentation for ``Rational`` and ``Fraction`` (#136800) (#137367)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Bénédikt Tran [Tue, 5 Aug 2025 09:01:07 +0000 (11:01 +0200)]
[3.13] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6.10.3 (GH-135226) (#137408)
* [3.13] gh-135244: generate UUID random Node ID with a CSPRNG as per RFC 9562, §6.10.3 (GH-135226)
This aligns with the recommendations of RFC 9562, Section 6.10, paragraph 3 [1].
[1]: https://www.rfc-editor.org/rfc/rfc9562.html#section-6.10-3.
---------
(cherry picked from commit
1cb716387255a7bdab5b580bcf8ac1b6fa32cc41 )
Co-authored-by: LamentXU <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Tue, 5 Aug 2025 08:55:53 +0000 (10:55 +0200)]
[3.13] gh-137397: Skip test_os_open on NetBSD due to indefinite hang (GH-137398) (#137407)
gh-137397: Skip test_os_open on NetBSD due to indefinite hang (GH-137398)
(cherry picked from commit
7f416c867445dd94d11ee9df5f1a2d9d6eb8d883 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Bénédikt Tran [Tue, 5 Aug 2025 07:56:03 +0000 (09:56 +0200)]
[3.13] gh-132710: only use stable `_uuid.generate_time_safe()` to deduce MAC address (GH-132901) (#134704)
This commit includes the original commit and the NEWS entry that was added separately.
(cherry picked from commit
3bffada46728e51f84c41ecbb0d3722595693e63 )
(cherry picked from commit
9eb84d83e00070cec3cfe78f1d0c7a7a0fbef30f )
Miss Islington (bot) [Mon, 4 Aug 2025 14:38:49 +0000 (16:38 +0200)]
[3.13] gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085) (#134448)
* gh-132124: improve safety nets for creating AF_UNIX socket files (GH-134085)
* ensure that we can create AF_UNIX socket files
* emit a warning if system-wide temporary directory is used
(cherry picked from commit
1a07a01014bde23acd2684916ef38dc0cd73c2de )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* rename warn -> _warn for the 3.13.x backport
* Update Misc/NEWS.d/next/Library/2025-05-16-12-40-37.gh-issue-132124.T_5Odx.rst
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Pablo Galindo Salgado [Mon, 4 Aug 2025 14:18:05 +0000 (15:18 +0100)]
[3.13] gh-130077: Properly match full soft keywords in the parser (GH-135317) (#135399)
* [3.13] gh-130077: Properly match full soft keywords in the parser (GH-135317)
(cherry picked from commit
ff2b5f40c2bf5c71255caac8a743c09ba0758c02 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* Remove line the main-branch commit removed
---------
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Mon, 4 Aug 2025 13:22:15 +0000 (15:22 +0200)]
[3.13] gh-137194: Fix requires_debug_ranges when _testcpi doesn't exist (GH-137195) (GH-137275)
(cherry picked from commit
0282eef880c8c8db782a2088b0257250e0f76d48 )
Co-authored-by: Jeong, YunWon <69878+youknowone@users.noreply.github.com>
sobolevn [Mon, 4 Aug 2025 12:34:47 +0000 (15:34 +0300)]
[3.13] gh-135839: Fix `module_traverse` and `module_clear` in subinterp modules (GH-135937) (GH-135943)
(cherry picked from commit
bcc2cbaa7f112323939e853ed69fd82f19568ccf )
Alex Waygood [Mon, 4 Aug 2025 10:40:56 +0000 (11:40 +0100)]
[3.13] Remove Alex Waygood as a codeowner for pre-commit config (#137372) (#137374)
Brian Schubert [Mon, 4 Aug 2025 05:56:07 +0000 (01:56 -0400)]
[3.13] Fix typo in `Lib/test/test_ast/test_ast.py` (GH-136767) (#137356)
`ASTOptimiziationTests` -> `ASTOptimizationTests`
(cherry picked from commit
60146f4f6f24f37e3bfcb9f101565f6e86cf0146 )
Co-authored-by: Hunter Hogan <hunterhogan@users.noreply.github.com>
Miss Islington (bot) [Mon, 4 Aug 2025 02:23:25 +0000 (04:23 +0200)]
[3.13] gh-137257: Upgrade bundled pip to 25.2 (GH-137258) (GH-137362)
gh-137257: Upgrade bundled pip to 25.2 (GH-137258)
(cherry picked from commit
506542b5966073203f0da71a487de24e596b7979 )
Co-authored-by: Richard Si <sichard26@gmail.com>
Brian Schubert [Sun, 3 Aug 2025 22:41:47 +0000 (18:41 -0400)]
[3.13] Doc: fix duplicated words (GH-136086) (#137357)
(cherry picked from commit
698bab5a4031c8f54e04e1dd42bcbe3e4564eba5 )
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 3 Aug 2025 18:39:39 +0000 (20:39 +0200)]
[3.13] GH-136155: Use ``sphinxext-opengraph`` v0.11.0 (GH-137348) (#137350)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Serhiy Storchaka [Sun, 3 Aug 2025 17:24:26 +0000 (20:24 +0300)]
[3.13] gh-137341: Remove more word duplications (GH-137342) (GH-137347)
(cherry picked from commit
1612dcbafe763014deefd679fe75ac5831a14a43 )
Miss Islington (bot) [Sun, 3 Aug 2025 16:58:49 +0000 (18:58 +0200)]
[3.13] gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328) (#137345)
gh-137314: Fix incorrect treatment of format specs in raw fstrings (GH-137328)
(cherry picked from commit
0153d82a5ab0c6ac16c046bdd4438ea11b58d59d )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>