Commit graph

124983 commits

Author SHA1 Message Date
Serhiy Storchaka
92f7965cf6
[3.13] gh-139640: Fix swallowing syntax warnings in different modules (GH-139755) (GH-140119)
Revert GH-131993.

Fix swallowing some syntax warnings in different modules if they accidentally
have the same message and are emitted from the same line.

Fix duplicated warnings in the "finally" block.

(cherry picked from commit 279db6bede)
2025-10-14 15:46:11 +00:00
Stan Ulbrych
c5ec267311
[3.13] gh-101828: Fix jisx0213 codecs removing null characters (gh-139340) (gh-140112)
* [3.13] gh-101828: Fix `jisx0213` codecs removing null characters (gh-139340)
(cherry picked from commit 87eadce3e0)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>

* Accidentally removed line
2025-10-14 14:48:29 +00:00
Miss Islington (bot)
2f27098b42
[3.13] gh-106318: Add examples for str.istitle() (GH-140046) (#140114)
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
2025-10-14 14:25:57 +00:00
Miss Islington (bot)
bc3f2885f4
[3.13] gh-114827: clarify threading.Event.wait timeout behavior (GH-114834) (#140099)
Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-10-14 14:13:31 +00:00
Sergey B Kirpichev
bfb9639352
[3.13] gh-102431: Clarify constraints on operands of Decimal logical operations (GH-102836) (#140106)
* [3.13] gh-102431: Clarify constraints on operands of Decimal logical operations (GH-102836)

Sync C/Python implementation of the decimal: logical_ops for contexts.
(cherry picked from commit 6ecf77dbde)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-10-14 15:45:02 +02:00
Miss Islington (bot)
7992a29512
[3.13] GH-140058: Clear key and value if PyTuple_New fails in dictiter_iternextitem (GH-140059) (#140108)
GH-140058: Clear key and value if `PyTuple_New` fails in `dictiter_iternextitem` (GH-140059)
(cherry picked from commit ded59f7e8e)

Co-authored-by: Sergey Miryanov <sergey.miryanov@gmail.com>
2025-10-14 13:40:13 +00:00
Miss Islington (bot)
7e40d94725
[3.13] gh-70765: Remove unnecessary extra backtick from Changelog entry (GH-140071) (#140101)
gh-70765: Remove unnecessary extra backtick from Changelog entry (GH-140071)
(cherry picked from commit f70082b477)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
2025-10-14 11:16:02 +00:00
Miss Islington (bot)
215068442c
[3.13] gh-82575: Adjust time.get_clock_info *adjustable* attribute doc (GH-135920) (#140098)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-14 08:37:07 +00:00
Miss Islington (bot)
08c9a147a6
[3.13] gh-137871: Clarify cmath.nan documentation by linking to math module (GH-137876) (#140096)
Co-authored-by: Aziz <azizbenothman76@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-10-14 08:32:41 +00:00
Miss Islington (bot)
63ba8018a1
[3.13] gh-97914: Reword misleading sentence on conditional expressions (GH-139064) (#140094)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Co-authored-by: Gilles Peiffer <gilles.peiffer.yt@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-10-14 08:29:16 +00:00
Miss Islington (bot)
eec807a5bb
[3.13] gh-138072: Fix typos and grammatical errors and improve clarity in asyncio howto document (GH-138895) (#140092)
Co-authored-by: Morteza24 <mortezia4444.mz@gmail.com>
2025-10-14 11:26:12 +03:00
Miss Islington (bot)
5bead87f83
[3.13] gh-102247: Improve documentation of http.HTTPStatus members update (GH-133190) (#140090)
Co-authored-by: Loïc Simon <loic.simon@napta.io>
2025-10-14 08:24:31 +00:00
Miss Islington (bot)
13562e1866
[3.13] gh-101100: Fix sphinx warnings in library/smtplib.rst (GH-139991) (#140085)
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-10-14 08:18:53 +00:00
Mikhail Efimov
cbcee9a0f0
[3.13] gh-140000: Traverse name attribute for TypeVar, TypeVarTuple, TypeAliasType, ParamSpec (GH-140016) (#140073)
Correct traversing name attribute for TypeVar, TypeVarTuple, TypeAliasType, ParamSpec
2025-10-13 20:02:32 -07:00
Miss Islington (bot)
0e7893207b
[3.13] gh-138772: Fix and improve documentation for turtle color functions (GH-139325) (GH-140048)
Use multiple signatures for clarity.
Explain different forms of bgcolor() in details.
Fix outdated docstrings.
(cherry picked from commit 525dcfe523)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-10-13 15:56:31 +00:00
Miss Islington (bot)
278384150a
[3.13] gh-107073: fix relevant typo in PyObject_ClearManagedDict (GH-140032) (#140034)
gh-107073: fix relevant typo in `PyObject_ClearManagedDict` (GH-140032)
(cherry picked from commit 52996aaa78)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
2025-10-13 11:29:41 +00:00
Miss Islington (bot)
08a2b2de79
[3.13] gh-139155: Remove "dictionaries are sorted by key" note in pprint docs (GH-139159) (GH-140004)
gh-139155: Remove "dictionaries are sorted by key" note in `pprint` docs (GH-139159)
(cherry picked from commit 68622be935)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2025-10-12 16:56:03 +00:00
Miss Islington (bot)
591946d2fe
[3.13] gh-101100: Fix Sphinx warnings in Doc/library/signal.rst (GH-139930) (GH-139967)
gh-101100: Fix Sphinx warnings in `Doc/library/signal.rst` (GH-139930)
(cherry picked from commit 447c7a89fb)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-10-11 18:35:24 +00:00
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