Commit graph

124965 commits

Author SHA1 Message Date
Miss Islington (bot)
cbb415e992
[3.13] gh-139905: Provide suggestion in error message if Generic.__init_subclass__ was not called (GH-139943) (#139956)
gh-139905: Provide suggestion in error message if `Generic.__init_subclass__` was not called (GH-139943)
(cherry picked from commit 5776d0d2e0)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-11 15:36:44 +00:00
Miss Islington (bot)
6a9908ee94
[3.13] gh-96491: Deduplicate version in IDLE shell title (GH-139841) (#139932)
gh-96491: Deduplicate version in IDLE shell title (GH-139841)

Saving to a file added both the filename and repeated the version.
---------
(cherry picked from commit d4e5802588)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2025-10-11 02:00:21 +00:00
Miss Islington (bot)
aee27d9d19
[3.13] gh-139783: Fix inspect.getsourcelines() for the case when a decorator is followed by a comment or an empty line (GH-139836) (GH-139890)
(cherry picked from commit f4104f5d74)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-10-10 21:26:36 +00:00
Miss Islington (bot)
38bedb342d
[3.13] gh-138843: Removing "Unpacking" section from Download page (GH-139920)
(cherry picked from commit aa840f500c)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-10 14:31:50 -05:00
Stan Ulbrych
5424dab1fd
[3.13] gh-101100: Document zlib public constants to fix reference warnings (GH-139835) (#139912)
* gh-101100: Document `zlib` public constants to fix reference warnings (#139835)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
(cherry picked from commit c7f1da97eb)

* [3.13] gh-101100: Document `zlib` public constants to fix reference warnings (GH-139835)
(cherry picked from commit c7f1da97eb)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>

---------

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-10-10 18:03:48 +02:00
Miss Islington (bot)
70ae4c8ef6
[3.13] gh-139843: Document signals (SIGSTOP, SIGVTALRM, SIGPROF) to fix sphinx references (GH-139896) (GH-139909)
gh-139843: Document signals (SIGSTOP, SIGVTALRM, SIGPROF) to fix sphinx references (GH-139896)
(cherry picked from commit 302f19d1f1)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-10-10 15:34:52 +00:00
Miss Islington (bot)
b1bc743d36
[3.13] gh-139065: Fix trailing space before long word in textwrap (GH-139070) (GH-139903)
Fix trailing space before a wrapped long word if the line length with
a space is exactly "width".
(cherry picked from commit 1c598e0436)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-10-10 13:51:41 +00:00
Miss Islington (bot)
b367d104ed
[3.13] gh-139843: Document signal.SIGQUIT to fix Sphinx references (GH-139844) (#139886)
gh-139843: Document `signal.SIGQUIT` to fix Sphinx references (GH-139844)
(cherry picked from commit 1f87d528a1)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-10-10 06:31:10 +00:00
Miss Islington (bot)
72c231abf6
[3.13] gh-139842: Clarify __module__ description in typing.rst (GH-139863) (#139870)
Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
2025-10-09 18:00:04 +00:00
Łukasz Langa
94ff4d4eb4
[3.13] gh-139391: properly handle signal.signal() in UnixConsole when called from a non-main thread (GH-139392) (#139861)
(cherry picked from commit b8c8b8f1d3)

Co-authored-by: yihong <zouzou0208@gmail.com>
2025-10-09 23:09:23 +05:30
Miss Islington (bot)
fa49c2af91
[3.13] gh-139672: Remove references to passlib (GH-139673) (#139868)
gh-139672: Remove references to `passlib` (GH-139673)
(cherry picked from commit 04461510fb)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
2025-10-09 17:22:01 +00:00
Miss Islington (bot)
54f9613a37
[3.13] gh-139845: do not print twice in default asyncio REPL (GH-139846) (#139860)
gh-139845: do not print twice in default asyncio REPL (GH-139846)
(cherry picked from commit a310b3a99d)

Co-authored-by: yihong <zouzou0208@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-10-09 21:38:04 +05:30
Sam Gross
16d2e97cf3
[3.13] gh-137400: Fix thread-safety issues when profiling all threads (gh-137518) (gh-137733)
There were a few thread-safety issues when profiling or tracing all
threads via PyEval_SetProfileAllThreads or PyEval_SetTraceAllThreads:

* The loop over thread states could crash if a thread exits concurrently
  (in both the free threading and default build)
* The modification of `c_profilefunc` and `c_tracefunc` wasn't
  thread-safe on the free threading build.
(cherry picked from commit a10152f8fd)
2025-10-09 11:42:47 -04:00
Łukasz Langa
f6186a3709
[3.13] gh-133400: Fixed Ctrl+D (^D) behavior in :mod:_pyrepl module (GH-133883) (GH-139851)
(cherry picked from commit 81959a0364)

Co-authored-by: DeepWzh <wzh2012@outlook.com>
Co-authored-by: adam j hartz <adam@smatz.net>
2025-10-09 17:38:10 +02:00
Stan Ulbrych
d12bd1ba1a
[3.13] gh-101100: Fix reference warnings in c-api/init.rst document… (#139833)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-09 18:20:34 +03:00
Miss Islington (bot)
abe6f529ff
[3.13] gh-75989: TarFile.extractall and TarFile.extract now overwrite symlinks when extracting hardlinks (GH-137316) (GH-139771)
(cherry picked from commit 481d5b5455)

Co-authored-by: Alexander Urieles <aeurielesn@users.noreply.github.com>
2025-10-09 12:54:14 +02:00
Miss Islington (bot)
69a34938f8
[3.13] gh-139743: Avoid import-time print in test_sqlite3 (GH-139746) (GH-139829)
(cherry picked from commit 65089406a5)

Co-authored-by: Peter <peter86225@gmail.com>
2025-10-09 08:24:06 +00:00
Victor Stinner
7b49ec784a
[3.13] gh-139748: Fix socket.if_nametoindex() Argument Clinic (#139815)
gh-139748: Fix socket.if_nametoindex() Argument Clinic

Fix a reference leak.
2025-10-08 23:24:30 +00:00
Miss Islington (bot)
8234841e5b
[3.13] gh-139805: Bump test_repl_eio timeout for slow builtbots (GH-139807) (#139813)
gh-139805: Bump `test_repl_eio` timeout for slow builtbots (GH-139807)
(cherry picked from commit e7e3d1d4a8)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-08 22:57:30 +00:00
Miss Islington (bot)
2072386e05
[3.13] Remove Cirrus macOS runners from CI (GH-139799) (#139803)
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-10-08 19:38:52 +00:00
Kumar Aditya
dac827cb98
[3.13] gh-139748: fix leaks in AC error paths when using unicode FS-b… (#139792)
* [3.13] gh-139748: fix leaks in AC error paths when using unicode FS-based converters (GH-139765)
(cherry picked from commit b04a57deef)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-10-08 22:21:49 +05:30
Miss Islington (bot)
d8971c21e8
[3.13] gh-138843: Clean up downloads page (GH-138844) (#139797)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-10-08 16:23:09 +00:00
Jacob Coffee
fb89b305b0
[3.13] gh-137638: Use macos-15-intel in GitHub Actions (GH-139154) (#139790)
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-10-08 16:16:41 +00:00
Miss Islington (bot)
b6c14bc187
gh-139769: Update PCBuild/find_python.bat to allow discovery of Python 3.14 (GH-139770)
Enable 3.14 py.exe can be use on PCBuild
(cherry picked from commit 570d17259f)

Co-authored-by: Wulian233 <1055917385@qq.com>
2025-10-08 15:23:17 +00:00
Savannah Ostrowski
5a98f85c9a
[3.13] GH-139590: Run ruff format on pre-commit for Tools/wasm (GH-139591) (#139745)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-10-08 08:10:25 -07:00
Miss Islington (bot)
de84a03099
[3.13] gh-139308: Skip test_special_chars_csh on NetBSD due to csh variable expansion issue (GH-139341) (#139560)
gh-139308: Skip test_special_chars_csh on NetBSD due to csh variable expansion issue (GH-139341)

Skip test_special_chars_csh on NetBSD due to csh variable expansion issue
(cherry picked from commit ae6e7f572c)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: Filipe Laíns 🇵🇸 <lains@riseup.net>
2025-10-08 14:10:34 +00:00
Miss Islington (bot)
12ada79fe9
[3.13] gh-83424: Allow empty name if handle is non-null when create ctypes.CDLL on Windows (GH-136878) (#138547)
gh-83424: Allow empty name if handle is non-null when create ctypes.CDLL on Windows (GH-136878)
(cherry picked from commit ed522ed211)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
2025-10-08 15:56:23 +02:00
Miss Islington (bot)
15a2cd6a1d
[3.13] Doc/library/zoneinfo.rst: Fix typo (GH-139190) (#139230)
`Doc/library/zoneinfo.rst`: Fix typo (GH-139190)

Removes duplicated wording.
(cherry picked from commit 4fb338d844)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-08 15:54:08 +02:00
Miss Islington (bot)
08a03a49f6
[3.13] gh-101100: Fix some Sphinx reference warnings in `whatsnew/2.6.rst` (GH-139236) (#139569)
gh-101100: Fix some Sphinx reference warnings in ``whatsnew/2.6.rst`` (GH-139236)
(cherry picked from commit 04a2f80a60)

Co-authored-by: rowanbudge <rowanbudge@gmail.com>
Co-authored-by: rowanvil <rowan@anvil.works>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-10-08 15:53:35 +02:00
Miss Islington (bot)
a688557720
[3.13] gh-137589: Zipfile tests: close file objects (GH-138080) (#139767)
gh-137589: Zipfile tests: close file objects (GH-138080)

Zipfile tests: close file objects
(cherry picked from commit 5cea843594)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
2025-10-08 15:52:15 +02:00
Bénédikt Tran
0c91d6848a
[3.13] gh-70765: avoid waiting for HTTP headers when parsing HTTP/0.9 requests (GH-139514) (#139602)
(cherry picked from commit 13dc2fde8c)
(cherry picked from commit 1fe89d324e)
2025-10-08 10:32:45 +00:00
Tomasz Pytel
b7bc9776e8
[3.13] gh-139516: Fix lambda colon start format spec in f-string in t… (#139726)
[3.13] gh-139516: Fix lambda colon start format spec in f-string in tokenizer (GH-139657)
(cherry picked from commit 539461d9ec)
2025-10-07 23:15:57 +01:00
Miss Islington (bot)
5074feb394
[3.13] Update the availability info in the resource docs (GH-137939) (GH-139720)
(cherry picked from commit b4d8faa221)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-10-07 22:33:20 +02:00
Stan Ulbrych
0404ca7201
[3.13] gh-137920: Fix semantically relevant typo in curses.window.attron (GH-137940) (GH-138507)
Originally authored by: vict-Yang

(cherry picked from commit ce70a57bc0)
2025-10-07 22:22:18 +02:00
Miss Islington (bot)
94b26f015e
[3.13] gh-139646: fix typo in pickletools error message (GH-139647) (GH-139650)
(cherry picked from commit 36a6c2cdfa)

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
2025-10-07 20:19:24 +02:00
Miss Islington (bot)
ccf2f377fc
[3.13] gh-139436: Remove `dist-pdf` from the docs archives rebuild target (GH-139437) (#139693)
gh-139436: Remove ``dist-pdf`` from the docs archives rebuild target (GH-139437)
(cherry picked from commit 0e2cdd313b)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-10-07 19:12:31 +01:00
Miss Islington (bot)
060eef27c3
[3.13] gh-136234: Fix SelectorSocketTransport.writelines to be robust to connection loss (GH-136743) (GH-138702) (#139710)
[3.14] gh-136234: Fix `SelectorSocketTransport.writelines` to be robust to connection loss (GH-136743) (GH-138702)
(cherry picked from commit 5cd6cfe4cf)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-10-07 17:57:57 +00:00
Serhiy Storchaka
333d4a6f49
[3.13] gh-139700: Check consistency of the zip64 end of central directory record (GH-139702) (GH-139708)
Support records with "zip64 extensible data" if there are no bytes
prepended to the ZIP file.
(cherry picked from commit 162997bb70)
2025-10-07 17:55:44 +00:00
Thomas Wouters
527623e827 Post 3.13.8 2025-10-07 16:04:40 +02:00
Thomas Wouters
a15ae614de Python 3.13.8 2025-10-07 14:01:51 +02:00
Miss Islington (bot)
cb4b09a2e1
[3.13] gh-139436: Remove link to the PDF downloads (GH-139142) (#139427)
(cherry picked from commit 6b5f15698a)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-10-07 13:34:51 +02:00
Miss Islington (bot)
4216ea7c81
[3.13] gh-63161: Add more tests for source encoding (GH-139440) (#139443)
(cherry picked from commit b2f5ad0c6d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-10-07 13:34:08 +02:00
Bénédikt Tran
7bb51bd5be
[3.13] gh-139283: correctly handle size limit in cursor.fetchmany() (GH-139296) (#139444)
Passing a negative or zero size to `cursor.fetchmany()` made it fetch all rows
instead of none.

While this could be considered a security vulnerability, it was decided to treat
this issue as a regular bug as passing a non-sanitized *size* value in the first
place is not recommended.
(cherry picked from commit bc172ee830)
2025-10-07 13:33:40 +02:00
Miss Islington (bot)
be8f3a68f4
[3.13] gh-139327: fix some reference leaks in sqlite3 error branches (GH-139328) (#139472)
(cherry picked from commit d0a3eff9d6)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-10-07 13:32:51 +02:00
Miss Islington (bot)
35da905f0e
[3.13] gh-124111: Update macOS installer to use Tcl/Tk 8.6.17. (GH-139682) (#139684)
(cherry picked from commit 6d804e4efb)
Co-authored-by: Ned Deily <nad@python.org>
2025-10-07 05:18:49 +00:00
Miss Islington (bot)
73c113387c
[3.13] gh-139573: Update macOS installer to use OpenSSL 3.0.18 (GH-139575) (#139681)
Co-authored-by: Zachary Ware <zach@python.org>
2025-10-06 23:41:39 -04:00
Jost Migenda
bb00718694
[3.13] gh-118767: remove bool(NotImplemented) from pending-removal document (GH-139526) (#139677) 2025-10-07 00:28:57 +03:00
Miss Islington (bot)
6bdd9e2705
[3.13] gh-138854: Skip test_script_shadowing_stdlib_cwd_failure on AIX (GH-138855) (GH-139675)
gh-138854: Skip test_script_shadowing_stdlib_cwd_failure on AIX (GH-138855)
(cherry picked from commit 171f787a29)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
2025-10-06 18:05:07 +00:00
Miss Islington (bot)
7816ac344c
[3.13] gh-133210: Fix test_inspect without docstrings (GH-139651) (#139670)
gh-133210: Fix `test_inspect` without docstrings (GH-139651)
(cherry picked from commit 7c70cc5c23)

Co-authored-by: sobolevn <mail@sobolevn.me>
2025-10-06 17:13:08 +00:00
Miss Islington (bot)
a35e870861
[3.13] gh-133210: Fix test_pydoc without docstrings (GH-139654) (#139666)
gh-133210: Fix `test_pydoc` without docstrings (GH-139654)
(cherry picked from commit 708de26e31)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
2025-10-06 15:14:04 +00:00