Commit graph

124814 commits

Author SHA1 Message Date
Miss Islington (bot)
0dcff3d9ce
[3.13] GH-101100: Resolve reference warnings in whatsnew/3.10.rst (GH-138408) (#138481)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-09-03 21:05:16 +00:00
Miss Islington (bot)
b8f9b6bc23
[3.13] GH-101100: Resolve reference warnings in whatsnew/3.5.rst (GH-138412) (#138460)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-09-03 20:58:54 +00:00
Miss Islington (bot)
a62b59a96e
[3.13] Fix Windows path in venv docs (GH-138478)
(cherry picked from commit f8d9cb1407)
2025-09-03 20:22:05 +00:00
sobolevn
826d4ebfb5
[3.13] gh-138281: Run ruff on Tools/peg_generator (GH-138282) (#138472)
(cherry picked from commit 0d1f4e1639)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-09-03 21:46:52 +03:00
Miss Islington (bot)
e8280e3f91
[3.13] gh-72249: Correct wording of GH-101910 blurb (GH-138471)
This incidentally corrects a reST issue reported by Daniel Nylander from the Swedish translation.

(cherry picked from commit 007bc5fc62)
2025-09-03 18:27:23 +00:00
Adam Turner
23bc77b4e2
[3.13] GH-101100: Resolve reference warnings in using/windows.rst (#138416) (#138463)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-09-03 17:12:51 +00:00
Miss Islington (bot)
1ca2a4d54d
[3.13] GH-101100: Resolve reference warnings in whatsnew/3.4.rst (GH-138413) (#138444)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-09-03 15:47:22 +00:00
Miss Islington (bot)
4ee0ef9b59
[3.13] GH-101100: Resolve reference warnings in whatsnew/3.6.rst (GH-138411) (#138456)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-09-03 15:28:22 +00:00
Miss Islington (bot)
a7fd73e43f
[3.13] gh-60462: Fix locale.strxfrm() on Solaris (GH-138242) (GH-138449)
It should interpret the result of wcsxfrm() as a sequence of abstract
integers, not a sequence of Unicode code points or using other encoding
scheme that does not preserve ordering.
(cherry picked from commit 482fd0c811)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-09-03 13:31:23 +00:00
Miss Islington (bot)
50048aaddb
[3.13] GH-101100: Resolve reference warnings in extending/extending.rst (GH-138417) (#138447)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-09-03 16:15:33 +03:00
Miss Islington (bot)
1943877c66
[3.13] GH-101100: Resolve reference warnings in whatsnew/2.7.rst (GH-138415) (#138442)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-09-03 11:42:23 +00:00
Miss Islington (bot)
45e5ee46a1
[3.13] GH-101100: Resolve reference warnings in whatsnew/3.8.rst (GH-138409) (#138438)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-09-03 11:32:17 +00:00
Miss Islington (bot)
005c43a249
[3.13] GH-101100: Resolve reference warnings in whatsnew/3.3.rst (GH-138414) (#138436)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-09-03 11:28:33 +00:00
Miss Islington (bot)
06dbf81a56
[3.13] gh-138204: Forbid expansion of a shared anonymous mmap on Linux (GH-138220) (GH-138387)
This is a Linux kernel bug which caused a bus error.
https://bugzilla.kernel.org/show_bug.cgi?id=8691
(cherry picked from commit 33fcb0c4a0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-09-03 11:33:08 +03:00
Miss Islington (bot)
154ec76def
[3.13] GH-101100: Resolve reference warnings in whatsnew/3.7.rst (GH-138410) (#138424)
GH-101100: Resolve reference warnings in whatsnew/3.7.rst (GH-138410)

Resolve reference warnings in whatsnew/3.7.rst
(cherry picked from commit dd86fb4ba5)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-09-03 06:27:17 +00:00
Miss Islington (bot)
01d95d4b0f
[3.13] gh-101100: Resolve reference warnings in library/xml.sax.handler.rst (GH-136612) (#138422)
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-09-03 00:43:18 +00:00
Miss Islington (bot)
3a2e436dc5
[3.13] Doc: Track file downloads via plausible (GH-138393) (#138397)
Co-authored-by: Jacob Coffee <jacob@z7x.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-09-02 23:00:17 +03:00
Miss Islington (bot)
a8460a285a
[3.13] gh-136599: Add tests for long_hash (GH-138335) (#138391)
gh-136599: Add tests for long_hash (GH-138335)
(cherry picked from commit 2d3711dc06)

Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-09-02 17:04:13 +00:00
Miss Islington (bot)
f88bf2ce0d
[3.13] gh-138297 Point link in docs for finally to try/else, instead of if/else (GH-138298) (#138382)
Co-authored-by: James Parrott <80779630+JamesParrott@users.noreply.github.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2025-09-02 15:10:30 +00:00
Miss Islington (bot)
406a81fc32
[3.13] gh-89905: Correct -R option doc (GH-137608) (#138354)
gh-89905: Correct `-R` option doc (GH-137608)
(cherry picked from commit b3ff3165d2)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-09-01 18:05:26 +00:00
Miss Islington (bot)
76aa2abdef
[3.13] gh-54874: Expand unicodedata module documentation (GH-138301) (#138345)
* gh-54874: Expand unicodedata module documentation (GH-138301)

Closes GH-54874
(cherry picked from commit 0d383f86ee)

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

* Changes links to UCD 15.0.0

---------

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Alexander Belopolsky <abalkin@users.noreply.github.com>
2025-09-01 18:18:57 +02:00
Bénédikt Tran
a38f0266df
[3.13] gh-116946: Revert GC protocol for immutable empty heap types (GH-138322, GH-138323, GH-138326) (#138337)
* Revert "[3.13] gh-116946: fully implement GC protocol for `bz2` objects (GH-138266) (#138322)"

This reverts commit 90036f51fe.

* Revert "[3.13] gh-116946: fully implement GC protocol for `lzma` objects (GH-138288) (#138323)"

This reverts commit 828682df86.

* Revert "[3.13] gh-116946: fully implement GC protocol for `_hashlib` objects (GH-138289) (#138326)"

This reverts commit 21b593219a.
2025-09-01 21:14:47 +05:30
Bénédikt Tran
d25d2d6b95
[3.13] gh-116946: fully implement GC protocol for zlib objects (GH-138290) (#138328)
(cherry picked from commit 2a54acf3c3)
2025-09-01 12:25:11 +02:00
Bénédikt Tran
21b593219a
[3.13] gh-116946: fully implement GC protocol for _hashlib objects (GH-138289) (#138326)
(cherry picked from commit 6f1dd9551a)
2025-09-01 12:23:28 +02:00
Bénédikt Tran
828682df86
[3.13] gh-116946: fully implement GC protocol for lzma objects (GH-138288) (#138323)
(cherry picked from commit 3ea16f990f)
2025-09-01 12:22:06 +02:00
Bénédikt Tran
90036f51fe
[3.13] gh-116946: fully implement GC protocol for bz2 objects (GH-138266) (#138322)
(cherry picked from commit 9be91f6a20)
2025-09-01 12:21:40 +02:00
Miss Islington (bot)
aebf072a52
[3.13] gh-138295: Fix a grammar issue in the descriptor HOWTO (GH-138296) (GH-138300)
gh-138295: Fix a grammar issue in the descriptor HOWTO (GH-138296)

"an str" -> "a str"
(cherry picked from commit 552cf86b83)

Co-authored-by: Fangyi Zhou <me@fangyi.io>
2025-08-31 15:59:22 +00:00
Miss Islington (bot)
6d2958583e
[3.13] gh-133829: Remove some specifics from the `zipimport` example (GH-133835) (#138273)
Co-authored-by: R Chintan Meher <meherrihaan@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-08-31 00:59:47 +00:00
Miss Islington (bot)
8dd027602d
[3.13] gh-138158: Use the "data" tarfile extraction filter in Tools/ssl/multissltests.py (GH-138147) (#138263)
gh-138158: Use the `"data"` tarfile extraction filter in `Tools/ssl/multissltests.py` (GH-138147)

The `Tools/ssl/multissltests.py` script may extract a possibly untrusted tarball.
Since the script does not necessarily use Python 3.14 or later (where the `"data"`
filter became the default `tarfile` extraction filter), the user may theoretically
suffer from a path traversal attack.

Although the script should not be used in production and usually relies on downloading
trusted sources, the `"data"` extraction filter is now explicitly used wherever relevant.
(cherry picked from commit 31d3836f26)

Co-authored-by: Tommaso Bona <piergeolo@gmail.com>
2025-08-30 10:49:45 +00:00
Miss Islington (bot)
573589cf75
[3.13] gh-138257: Fix internal RuleCollectorVisitor attribute name (GH-138208) (#138260)
gh-138257: Fix internal `RuleCollectorVisitor` attribute name (GH-138208)

The internal `RuleCollectorVisitor` class had an attribute named "rulses"
instead of "rules" that other `GrammarVisitor` subclasses define.
(cherry picked from commit 11217a883d)

Co-authored-by: chemelnucfin <3982092+chemelnucfin@users.noreply.github.com>
2025-08-30 09:51:25 +00:00
Miss Islington (bot)
e93cacb8cf
[3.13] gh-123858: Improve Doc: SyntaxWarning is emitted during bytecode generation (gh-138243)
---------
(cherry picked from commit 5f7906715a)

Co-authored-by: Hang <bebound@gmail.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
2025-08-30 00:35:17 +10:00
Miss Islington (bot)
f6536d48cd
[3.13] gh-137317: Fix inspect.signature() for class with wrapped __init__ or __new__ (GH-137862) (GH-138225)
Fixed several cases where __init__, __new__ or metaclass` __call__ is a descriptor
that returns a wrapped function.
(cherry picked from commit 025a2135ef)

Co-authored-by: Ju4tCode <42488585+yanyongyu@users.noreply.github.com>
2025-08-28 16:10:06 +00:00
Miss Islington (bot)
502ca0d1ad
[3.13] bpo-41839: Fix error checking in sched_get_priority_ functions (GH-22374) (GH-138202)
(cherry picked from commit bbcb75c986)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
2025-08-27 18:05:36 +00:00
Miss Islington (bot)
d6a346055b
[3.13] Docs: Fix typo in shutil.make_archive example (GH-138188) (GH-138196)
Docs: Fix typo in `shutil.make_archive` example (GH-138188)
(cherry picked from commit f733e428f8)

Co-authored-by: Andreas Pelme <andreas@pelme.se>
2025-08-27 16:03:28 +00:00
Miss Islington (bot)
cdafa05fd5
[3.13] gh-71679: Improve tests for repr() of bytes and bytearray (GH-138180) (GH-138183)
* Merge existing tests test_repr_str and test_to_str.
* Add more tests for non-printable and non-ASCII bytes.
* Add tests for special escape sequences ('\t\n\r').
* Add tests for slashes.
* Add more tests for quotes.
* Add tests for subclasses.
* Add test for non-ASCII class name.
* Only apply @check_bytes_warnings for str() tests.
(cherry picked from commit 0dbbf61cc2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-08-27 10:46:33 +00:00
Miss Islington (bot)
d6f7c615c0
[3.13] gh-106318: Add example for str.find() (GH-134529) (#138175)
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-08-27 06:49:19 +00:00
Miss Islington (bot)
238a1ca713
[3.13] gh-137740: Clarify __del__ invocation mechanism in reference counting (GH-137741) (#138112)
gh-137740: Clarify `__del__` invocation mechanism in reference counting (GH-137741)
(cherry picked from commit 90b932e650)

Co-authored-by: Robin Narsingh Ranabhat <robinnarsingha123@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-08-26 23:43:42 +05:30
Miss Islington (bot)
0a72696f45
[3.13] enhance docs for critical sections (GH-137334) (#138168)
enhance docs for critical sections (GH-137334)
(cherry picked from commit 5ae8b97f6b)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-08-26 17:26:09 +00:00
Miss Islington (bot)
31eb3ef569
[3.13] gh-138148: Fix grammatical error in the asynchronous generator iterator term (GH-138155) (GH-138160)
gh-138148: Fix grammatical error in the `asynchronous generator iterator` term (GH-138155)
(cherry picked from commit 43b113d23d)

Co-authored-by: Krishna Chaitanya <141550576+XChaitanyaX@users.noreply.github.com>
2025-08-26 11:20:32 +00:00
Serhiy Storchaka
bad7bc49f1
[3.13] gh-137609: Update signatures of builtins in the documentation (GH-137610) (GH-138138)
Show signatures that match the actual signatures or future multisignatures
for all functions, classes and methods in the "builtins" module.
(cherry picked from commit 65fb4d11a0)
2025-08-25 12:40:09 +00:00
🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко)
f75fc9a780
[3.13] Lint: Create a project-wide `.ruff.toml` settings file (GH-133124) (#137670)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-08-25 14:38:16 +03:00
Miss Islington (bot)
7e4afe0d52
[3.13] gh-138081: Fix/remove incorrect links in idlelib/HISTORY.txt (GH-138091) (#138125)
gh-138081: Fix/remove incorrect links in `idlelib/HISTORY.txt` (GH-138091)
(cherry picked from commit be24ff0b57)

Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
2025-08-25 02:10:51 +00:00
Bénédikt Tran
8629d466f0
[3.13] gh-135261: bring back CI job for testing OpenSSL 1.1.1w (GH-135262) (#138110)
This partially reverts commit ad944b5e1f
by bringing back the CI job for testing OpenSSL 1.1.1w. Despite this
version being upstream EOL, the rationale for keeping it as follows:

- It most resembles other 1.1.1-work-a-like ssl APIs supported by important vendors.
- Python officially requires OpenSSL 1.1.1 or later, although OpenSSL 3.0 or later
  is recommended for cryptographic modules. Since changing the build requirements
  requires a transition period, we need to keep testing the allowed versions.
- The code base still contains calls to OpenSSL functions that are deprecated since
  OpenSSL 3.0 as well as `ifdef` blocks constrained to OpenSSL 1.1.1.

(cherry picked from commit 96b7a2eba4)
2025-08-24 09:47:09 +00:00
Serhiy Storchaka
59068dfcf4
[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 aa1dbd4dde)

Co-authored-by: maurycy <5383+maurycy@users.noreply.github.com>
2025-08-24 08:37:41 +00:00
Bénédikt Tran
f12e7cb8b2
[3.13] gh-136134: smtplib: fix CRAM-MD5 on FIPS-only environments (GH-136623) (#138087)
(cherry picked from commit 766614f88a)
(cherry picked from commit ab1bef8ad2)
2025-08-23 14:27:47 +02:00
Bénédikt Tran
3afc263c41
[3.13] gh-136134: imaplib: fix CRAM-MD5 on FIPS-only environments (GH-136615) (#138055)
(cherry picked from commit 4519b8acb5)
2025-08-23 13:01:36 +02:00
Miss Islington (bot)
b9179c354b
[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 6620ef0ff6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-08-23 09:33:58 +00:00
Miss Islington (bot)
57b5baf3f9
[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 282e88506b)

Co-authored-by: Kentaro Jay Takahashi <64148935+KentaroJay@users.noreply.github.com>
Co-authored-by: Emma Smith <emma@emmatyping.dev>
2025-08-22 17:01:37 -07:00
Miss Islington (bot)
2aeae241ca
[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 f278afcabf)

Co-authored-by: Krishna Chaitanya <141550576+XChaitanyaX@users.noreply.github.com>
2025-08-22 14:25:55 -04:00
Miss Islington (bot)
ab8ffc482e
[3.13] gh-135386: Skip readonly tests for the root user (GH-138058) (GH-138064)
(cherry picked from commit 5b0f00e616)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-08-22 13:44:19 +00:00