Commit graph

13861 commits

Author SHA1 Message Date
Miss Islington (bot)
89cb8aa3ba
[3.13] Minor fixes to idle.rst and regenerate help.html (GH-140037) (#141122)
Minor fixes to `idle.rst` and regenerate `help.html` (GH-140037)
(cherry picked from commit 4e6e208be9)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-06 12:11:50 +00:00
Miss Islington (bot)
a29f5218e5
[3.13] gh-140569: recommend the new REPL in the asyncio REPL docs (GH-140570) (#141116)
gh-140569: recommend the new REPL in the asyncio REPL docs (GH-140570)
(cherry picked from commit 8822166200)

Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-11-06 05:45:18 +00:00
Miss Islington (bot)
8641c471a7
[3.13] gh-118516: clarify that subprocess are automatically killed if transport gets garbage collected (GH-140997) (#141111)
gh-118516: clarify that subprocess are automatically killed if transport gets garbage collected (GH-140997)
(cherry picked from commit 101c9c0a21)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-11-06 10:35:01 +05:30
Miss Islington (bot)
f671739fdc
[3.13] GH-108009: Add clarification of parser and argument defaults in argparse docs (GH-124154) (#141085)
GH-108009: Add clarification of parser and argument defaults in argparse docs (GH-124154)
(cherry picked from commit 95f6e1275b)

Co-authored-by: Savannah Ostrowski <savannah@python.org>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
2025-11-05 22:52:43 +00:00
Miss Islington (bot)
d29fe3f32c
[3.13] gh-76007: remove curses.__version__ doc (GH-141052) (#141077)
Co-authored-by: Zenith <me@arielle.codes>
2025-11-05 22:07:32 +00:00
Miss Islington (bot)
91b85c5346
[3.13] gh-139313: Improve docs on XML security (GH-139460) (GH-141066)
Clarify that:
- it takes parsing for an attack
- that some doors are closed by default
- only Expat version 2.7.2 has all the fixes
- use of the bundle depends on configuration
(cherry picked from commit baa9f33897)

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
2025-11-05 19:06:37 +00:00
Miss Islington (bot)
2dd0a6ad9c
[3.13] Docs: Fix cached calls count in factorial example (gh-140882) (gh-141032)
Co-authored-by: Clifford Gama <cliffygamy@gmail.com>
2025-11-05 12:15:05 -06:00
Filip Łajszczak
d76e411891
[3.13] gh-139434: Update selected RFC 2822 references to RFC 5322 (GH-139435) (#141024)
Update selected RFC 2822 references to RFC 5322

RFC 2822 was obsoleted by RFC 5322 in 2008. This updates references
to use the current standard in documentation, docstrings, and comments.

It preserves RFC 2822 references in legacy API components to maintain their
historical context.

RFC 822 → RFC 2822 → RFC 5322 progression is explained where relevant.

In some places specific sections of RFC are referenced where it seems helpful.

Scout rule was applied in some places and RFC mentions format was
normalized in doc strings and comments.
(cherry picked from commit ce1bb85d28)
2025-11-04 16:22:31 -05:00
Miss Islington (bot)
426daef412
[3.13] Docs: Fix typo in email.headerregistry.rst (GH-140965) (#141021)
Docs: Fix typo in `email.headerregistry.rst` (GH-140965)

Fix missing 'Header' suffix on header class name in `email.headerregistry.rst`
(cherry picked from commit 97d8dda980)

Co-authored-by: Guo Ci <zguoci@gmail.com>
2025-11-04 19:35:14 +00:00
Miss Islington (bot)
fbfa3e3fe8
[3.13] gh-134817: Restore accidentally deleted line in documentation. (GH-141013) (GH-141017)
(cherry picked from commit 66c86c6)
2025-11-04 18:57:32 +00:00
Miss Islington (bot)
aa4dd4ece8
[3.13] Document that returning sys.monitoring.DISABLE in response to a global event raises ValueError (GH-140726) (GH-141015)
Document that returning `sys.monitoring.DISABLE` in response to a global event raises `ValueError` (GH-140726)
(cherry picked from commit 8a7dbb7a68)

Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-11-04 18:36:40 +00:00
Miss Islington (bot)
ac0ecb0f5d
[3.13] gh-140826 Remove the wrong documents about comparison behavior on winreg.HKEYType (GH-140999) (GH-141003)
(cherry picked from commit c3f9702f04)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
2025-11-04 16:36:46 +00:00
Miss Islington (bot)
551d68d8cf
[3.13] Fix minor typo: 'web site' -> 'website' (GH-140561) (GH-140977)
(cherry picked from commit 08115d241a)

Co-authored-by: commitWithTisha <tishaa1010@gmail.com>
2025-11-04 14:11:15 +01:00
Miss Islington (bot)
e7507967f8
[3.13] Docs: Fix a typo in idle.rst (Chitespace -> Whitespace) (GH-140946) (#140954)
Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
2025-11-04 10:02:17 +02:00
Sebastian Pipping
bc36bd1786
[3.13] gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375) (GH-139234) (#139367)
* gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375) (#139234)

Expose the XML Expat 2.7.2 mitigation APIs to disallow use of
disproportional amounts of dynamic memory from within an Expat
parser (see CVE-2025-59375 for instance).

The exposed APIs are available on Expat parsers, that is,
parsers created by `xml.parsers.expat.ParserCreate()`, as:

- `parser.SetAllocTrackerActivationThreshold(threshold)`, and
- `parser.SetAllocTrackerMaximumAmplification(max_factor)`.

(cherry picked from commit f04bea44c3)
(cherry picked from commit 68a1778b77)
2025-11-02 12:39:11 +00:00
Serhiy Storchaka
c6c57f1a0b
[3.13] Fix the versionchanged directive for gh-137836 (GH-140859) 2025-10-31 16:55:54 +00:00
Miss Islington (bot)
0329bd11c7
[3.13] gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLParser (GH-137837) (GH-140842)
* the "plaintext" element
* the RAWTEXT elements "xmp", "iframe", "noembed" and "noframes"
* optionally RAWTEXT (if scripting=True) element "noscript"
(cherry picked from commit a17c57eee5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-10-31 16:08:42 +00:00
Miss Islington (bot)
32c3dcc7a4
[3.13] gh-138162: Fix logging.LoggerAdapter with merge_extra=True and without the extra argument (GH-140511) (GH-140785)
(cherry picked from commit 327dbbedff)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-10-30 11:31:54 +00:00
Miss Islington (bot)
887ee39462
[3.13] gh-140463: Fix typo in xmlrpc.client documentation (GH-140552) (#140567)
gh-140463: Fix typo in xmlrpc.client documentation (GH-140552)

Fix typo in xmlrpc.client documentation
(cherry picked from commit 44b6eead21)

Co-authored-by: Miša Jakovljević <misajakovljevic3@gmail.com>
2025-10-24 20:53:38 +00:00
Emma Smith
df35beb6de
[3.13] zlib.rst: Link to constants and deduplicate text (GH-140115) (GH-140350)
* Link to compression setting constants from compression functions
* De-duplicate descriptions of the constants
(cherry picked from commit 091e8513bb)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-10-21 14:45:02 -07:00
Miss Islington (bot)
9084371107
[3.13] [Docs] Add missing note about Required/NotRequired/ReadOnly in get_type_hints() (GH-139565) (#140387)
[Docs] Add missing note about Required/NotRequired/ReadOnly in get_type_hints() (GH-139565)
(cherry picked from commit a752f58d6b)

Co-authored-by: Sam Bull <git@sambull.org>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2025-10-20 13:23:28 -07:00
Miss Islington (bot)
e5ebcabc6b
[3.13] gh-101100: Fix sphinx warnings in library/resource.rst (GH-140023) (#140353)
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-10-20 07:23:27 +00:00
Miss Islington (bot)
152e7d14dc
[3.13] docs: be clearer that glob results are unordered (GH-140184) (#140340)
(cherry picked from commit ed672f7a8a)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
2025-10-20 07:32:05 +03:00
Miss Islington (bot)
26ea18146d
[3.13] gh-138997: Remove false justify fill option from Tkinter docs (GH-139023) (#140320)
gh-138997: Remove false justify `fill` option from Tkinter docs (GH-139023)
(cherry picked from commit 115a04b802)

Co-authored-by: Marat Khagazheev <marathagazeev@gmail.com>
Co-authored-by: marat <khagazheev@artlebedev.ru>
2025-10-19 03:53:44 +00:00
Miss Islington (bot)
7b6fb716a1
[3.13] gh-128571: Document UTF-16/32 native byte order (GH-139974) (#140308)
Closes GH-128571
(cherry picked from commit 920de7ccdc)

Co-authored-by: Parham MohammadAlizadeh <prhmma@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-10-18 19:03:38 +00:00
Miss Islington (bot)
762fbdbf8c
[3.13] gh-140241: Fix documentation for the registry parameter of warnings.warn_explicit() (GH-140242) (GH-140293)
(cherry picked from commit 78e1d65a4d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-10-18 11:03:03 +00:00
Tan Long
134b4f2fd1
[3.13] Remove duplicate words in the documentation (GH-140221) (GH-140226)
(cherry picked from commit 2ebd0cdb16)
2025-10-16 20:10:31 +02:00
Miss Islington (bot)
426fa77a19
[3.13] gh-140078: fix typo in tkinter docs (GH-140081) (#140218)
gh-140078: fix typo in tkinter docs (GH-140081)

Remove extraneous word.
(cherry picked from commit 5f357f3b0d)

Co-authored-by: wangxiaolei <fatelei@gmail.com>
2025-10-16 15:09:14 +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)
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)
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
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)
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
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)
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
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)
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)
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
Thomas Wouters
a15ae614de Python 3.13.8 2025-10-07 14:01:51 +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
Adam Turner
ac853ece08
[3.13] gh-105812: Use the `:deco:` role in place of manual decorator markup (GH-139619) (#139628) 2025-10-05 20:28:30 +00:00
Miss Islington (bot)
89a1efc23f
[3.13] Replace ambiguous word "pound" by "hash" in difflib docs (GH-139601) (#139617)
Replace ambiguous word "pound" by "hash" in `difflib` docs (GH-139601)
(cherry picked from commit dadbb2662a)

Co-authored-by: George Ogden <38294960+George-Ogden@users.noreply.github.com>
2025-10-05 17:18:11 +00:00
Miss Islington (bot)
be388836c0
[3.13] gh-138703: clarify data buffer requirement of asyncio.StreamWriter.write (GH-139564) (#139571)
gh-138703: clarify data buffer requirement of `asyncio.StreamWriter.write` (GH-139564)
(cherry picked from commit 0b2168275e)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-10-04 22:12:03 +05:30
Alex Willmer
bf9d410bf3
[3.13] gh-139495: Fix hashlib.file_digest() versionchanged description of BlockingIOError (GH-139496) (#139528)
* Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError`

The sentence was missing a negation and contradicted the other two
descriptions in the same commit. I believe code behaviour is correct.

* fixup! Fix `hashlib.file_digest()` versionchanged description of `BlockingIOError`

* Remove unncessary NEWS.d entry
(cherry picked from commit fb114cf497)
2025-10-02 17:17:55 -07:00