Commit graph

124600 commits

Author SHA1 Message Date
Miss Islington (bot)
f7f1448ffe
[3.13] gh-130160: use .. program:: directive for documenting venv CLI (GH-130699) (#136551)
gh-130160: use `.. program::` directive for documenting `venv` CLI (GH-130699)
(cherry picked from commit fb9f933b8e)

Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
Co-authored-by: Semyon Moroz <donbarbos@proton.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-07-11 17:04:03 +00:00
Pablo Galindo Salgado
cba2974a54
[3.13] gh-136541: Fix several problems of perf trampolines in x86_64 and aarch64 (GH-136500) (#136545)
This commit fixes the following problems:

* The x86_64 trampolines are not preserving frame pointers
* The hardcoded offsets to the code segment from the FDE only worked properly for x64_64
* The CIE data was not following conventions of aarch64
* The eh_frame for aarch64 was not fully correct
(cherry picked from commit 236f733d8f)
2025-07-11 14:02:19 +00:00
Miss Islington (bot)
175ada2806
[3.13] gh-76637: Note that undefined Codec is for testing (GH-136531) (#136537)
gh-76637: Note that `undefined` Codec is for testing (GH-136531)

Closes GH-76637
(cherry picked from commit 975b57d945)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-07-11 10:57:39 +00:00
Miss Islington (bot)
aa4bb1c685
[3.13] gh-101100: Fix sphinx warnings in library/email.parser.rst (GH-136475) (#136533)
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-07-11 12:43:52 +03:00
Miss Islington (bot)
aa3c6421ef
[3.13] gh-52876: Implement missing parameter in codecs.StreamReaderWriter functions (GH-136498) (#136515)
gh-52876: Implement missing parameter in `codecs.StreamReaderWriter` functions (GH-136498)

Closes GH-52876
(cherry picked from commit 35e2c35970)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-07-10 18:06:34 +02:00
Miss Islington (bot)
81d1986297
[3.13] gh-82663: Clarify codecs.iterdecode/encode docs (GH-136497) (#136512)
gh-82663: Clarify `codecs.iterdecode/encode` docs (GH-136497)

Closes GH-82663
(cherry picked from commit 4b41b2043b)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-07-10 17:41:27 +02:00
Miss Islington (bot)
15e9c3bc51
[3.13] gh-136209: Add .. c:var:: declarations for C exception types (GH-136210) (GH-136503)
(cherry picked from commit 85bc89f35f)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2025-07-10 15:10:51 +02:00
sobolevn
a2140fad71
[3.13] gh-136438: Make sure test_builtins pass with all optimization levels (GH-136474) (#136502)
(cherry picked from commit c176543349)
2025-07-10 11:17:20 +00:00
Miss Islington (bot)
d223739883
[3.13] gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431) (#136489)
gh-102740: Clarify time.monotonic() "system-wide" in the doc (GH-136431)
(cherry picked from commit 9c4d287775)

Co-authored-by: Victor Stinner <vstinner@python.org>
2025-07-09 23:13:59 +00:00
Miss Islington (bot)
2c2dd75941
[3.13] gh-136145: Define 'standard library' and 'stdlib' in the glossary (GH-136486)
(cherry picked from commit 92f392ad9e)

Co-authored-by: Zachary Ware <zach@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Éric <merwok@netwok.org>
2025-07-09 21:40:58 +00:00
Miss Islington (bot)
6c81051aa8
[3.13] gh-81520: Document unexpected os.path.ismount behaviour with btrfs subvolumes (GH-136058) (GH-136473)
gh-81520: Document unexpected `os.path.ismount` behaviour with btrfs subvolumes (GH-136058)
(cherry picked from commit 591abcc01f)

Co-authored-by: Oskar Roesler <o.roesler@oscloud.info>
2025-07-09 16:02:49 +00:00
Miss Islington (bot)
217638588f
[3.13] gh-131825: Fix sqlite3 timezone-naive adapter recipe (GH-136270) (GH-136468)
gh-131825: Fix `sqlite3` timezone-naive adapter recipe (GH-136270)
(cherry picked from commit 6a6cd3c07c)

Co-authored-by: NekrodNIK <60639354+NekrodNIK@users.noreply.github.com>
2025-07-09 14:13:02 +00:00
Miss Islington (bot)
7a548e26ac
[3.13] Docs: unittest.enterModuleContext is not a classmethod (GH-136464) (#136466)
Co-authored-by: Geoffrey Thomas <geofft@ldpreload.com>
2025-07-09 14:01:23 +00:00
Miss Islington (bot)
532ecac771
[3.13] gh-136447: Use self.loop instead of global loop variable in asyncio REPL (GH-136448) (#136457)
gh-136447: Use `self.loop` instead of global `loop` variable in asyncio REPL (GH-136448)
(cherry picked from commit 77fa7a4dcc)

Co-authored-by: Justin Su <injustsu@gmail.com>
2025-07-09 09:21:47 +00:00
Stan Ulbrych
a66af8b827
[3.13] gh-136162: Clean up encodings package documentation (#136456)
Remove docs of functions not yet implemented in 3.13
2025-07-09 10:41:22 +02:00
Miss Islington (bot)
21bcecfa2b
[3.13] gh-136162: Document encodings package functions (GH-136164) (#136453)
gh-136162: Document `encodings` package functions (GH-136164)

Closes GH-136162.
(cherry picked from commit ffd7f2f231)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-07-09 10:07:25 +02:00
Miss Islington (bot)
faee3625c3
[3.13] gh-53243: Document codecs.readbuffer_encode() (GH-136284) (#136451)
gh-53243: Document `codecs.readbuffer_encode()` (GH-136284)

Closes GH-53243
(cherry picked from commit f1dcf3c7bf)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-07-09 10:07:10 +02:00
Miss Islington (bot)
301c89ced8
[3.13] gh-94503: Update logging cookbook example with info on addressing log injection. (GH-136446) (GH-136450)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-07-09 09:00:07 +01:00
Miss Islington (bot)
c44070b2d5
[3.13] gh-101100: Fix sphinx warnings in Doc/library/exceptions.rst (GH-136309) (#136415)
Co-authored-by: Yuki Kobayashi <drsuaimqjgar@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-07-08 12:12:22 +00:00
Miss Islington (bot)
4a889d8436
[3.13] gh-136297: Fix hypothesis and subTest usage in test_zoneinfo_property.py (GH-136384) (#136408)
gh-136297: Fix `hypothesis` and `subTest` usage in `test_zoneinfo_property.py` (GH-136384)
(cherry picked from commit db699db99d)

Co-authored-by: sobolevn <mail@sobolevn.me>
2025-07-08 08:14:14 +00:00
Miss Islington (bot)
f17be28cd8
[3.13] gh-136155: Docs: only add custom OpenGraph protocol meta tags for HTML builds (GH-136187) (#136383)
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2025-07-08 10:04:09 +03:00
Miss Islington (bot)
dcfc3d3cc2
[3.13] gh-101100: Fix sphinx warnings in whatsnew/3.11.rst (GH-136402) (#136404)
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-07-08 06:46:32 +00:00
Miss Islington (bot)
095715ceae
[3.13] gh-136032: Fix argparse.BooleanOptionalAction doc (GH-136133) (#136330)
gh-136032: Fix `argparse.BooleanOptionalAction` doc (GH-136133)
(cherry picked from commit 1953713d0d)

Co-authored-by: W. H. Wang <mattwang44@gmail.com>
2025-07-07 19:34:13 -07:00
Miss Islington (bot)
f39103b3fc
[3.13] gh-101100: Fix Sphinx warnings in library/email.compat32-message.rst (GH-136323) (#136390)
Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-07-07 19:51:04 +03:00
Miss Islington (bot)
eea2af3dd8
[3.13] gh-124486: Fix test_whichdb_ndbm in test_dbm on NetBSD (GH-136335) (GH-136379)
On NetBSD, ndbm.open() does not fail for empty file.
(cherry picked from commit b7aa2a4b4d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-07-07 12:50:40 +00:00
Miss Islington (bot)
843e8054b0
[3.13] gh-86682: Add versionadded for sys._getframemodulename (GH-136325) (#136376)
gh-86682: Add versionadded for sys._getframemodulename (GH-136325)

add versionadded for sys._getframemodulename
(cherry picked from commit 11f074b243)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2025-07-07 11:28:32 +00:00
Miss Islington (bot)
d7bb308e80
[3.13] gh-101100: Fix sphinx warnings in whatsnew/3.9 (GH-136163) (#136373)
Co-authored-by: sobolevn <mail@sobolevn.me>
2025-07-07 10:47:59 +00:00
Miss Islington (bot)
4f24dc0ea8
[3.13] gh-136289: Fix test_sqlite3 on platforms with strict UTF-8 filesystem (GH-136326) (GH-136351)
(cherry picked from commit 85b817da94)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-07-07 12:43:22 +03:00
Miss Islington (bot)
0467b1fd17
[3.13] gh-94503: Update logging cookbook with an example of uniformly handling newlines in output. (GH-136217) (GH-136358)
(cherry picked from commit d05423a90c)
2025-07-07 10:18:53 +01:00
Miss Islington (bot)
8f5630d729
[3.13] gh-127502: Remove XML vulnerability table (GH-135294) (#136360)
gh-127502: Remove XML vulnerability table (GH-135294)

* Remove the table
* Replace warnings with notes

Latest releases of Python 3.9-3.15 include expat 2.7.1 which is not vulnerable.

expat 2.6.0 was released in February 2024.
(cherry picked from commit cb99d99277)

Co-authored-by: Victor Stinner <vstinner@python.org>
2025-07-07 09:10:20 +00:00
Miss Islington (bot)
2362cb6c6e
[3.13] gh-109700: fix interpreter finalization while handling memory error (GH-136342) (#136353)
gh-109700: fix interpreter finalization while handling memory error (GH-136342)
(cherry picked from commit 0c3e3da195)

Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-07-07 07:37:35 +00:00
Rafael Fontenelle
bc3390c00a
[3.13] Docs: Move "or" outside monospace syntax in tarfile.rst (GH-136263) (GH-136348)
Docs: Move "or" outside monospace syntax in `tarfile.rst` (GH-136263)

(cherry picked from commit ade1988094)
2025-07-06 21:24:51 -04:00
Miss Islington (bot)
52180bfb37
[3.13] gh-109070: Document that get_context in multiprocessing have side effect (GH-136341) (GH-136344)
gh-109070: Document that get_context in multiprocessing have side effect (GH-136341)

Document that get_context in multiprocessing have side effect
(cherry picked from commit 77a8bd29da)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
2025-07-06 18:32:15 +00:00
Miss Islington (bot)
e7a2d2ae2c
[3.13] gh-101100: Fix references in http.cookiejar docs (GH-136238) (GH-136317)
gh-101100: Fix references in `http.cookiejar` docs (GH-136238)
(cherry picked from commit f0c7344a8f)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-07-05 13:35:52 +00:00
Miss Islington (bot)
b22c8be18a
[3.13] gh-136297: Test all pickle protocols in test_zoneinfo_property.py (GH-136298) (#136312)
gh-136297: Test all `pickle` protocols in `test_zoneinfo_property.py` (GH-136298)
(cherry picked from commit 5de7e3f973)

Co-authored-by: sobolevn <mail@sobolevn.me>
2025-07-05 06:36:41 +00:00
Miss Islington (bot)
a717ed986d
[3.13] gh-136288: Fix error message in _testcapi/vectorcall.c (GH-136258) (GH-136295)
gh-136288: Fix error message in `_testcapi/vectorcall.c` (GH-136258)

Use the %N format specifier instead of %s and `PyType_GetName`.
(cherry picked from commit d1d5dce14f)

Co-authored-by: William S Fulton <wsf@fultondesigns.co.uk>
2025-07-04 16:17:10 +00:00
Miss Islington (bot)
7038e4a243
[3.13] gh-102555: Fix comment parsing in HTMLParser according to the HTML5 standard (GH-135664) (GH-136272)
* "--!>" now ends the comment.
* "-- >" no longer ends the comment.
* Support abnormally ended empty comments "<-->" and "<--->".

---------
(cherry picked from commit 8ac7613dc8)

Co-author: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2025-07-04 07:22:33 +00:00
Miss Islington (bot)
b041a456f1
[3.13] gh-135661: Fix parsing start and end tags in HTMLParser according to the HTML5 standard (GH-135930) (GH-136256)
* Whitespaces no longer accepted between `</` and the tag name.
  E.g. `</ script>` does not end the script section.

* Vertical tabulation (`\v`) and non-ASCII whitespaces no longer recognized
  as whitespaces. The only whitespaces are `\t\n\r\f `.

* Null character (U+0000) no longer ends the tag name.

* Attributes and slashes after the tag name in end tags are now ignored,
  instead of terminating after the first `>` in quoted attribute value.
  E.g. `</script/foo=">"/>`.

* Multiple slashes and whitespaces between the last attribute and closing `>`
  are now ignored in both start and end tags. E.g. `<a foo=bar/ //>`.

* Multiple `=` between attribute name and value are no longer collapsed.
  E.g. `<a foo==bar>` produces attribute "foo" with value "=bar".

* Whitespaces between the `=` separator and attribute name or value are no
  longer ignored. E.g. `<a foo =bar>` produces two attributes "foo" and
  "=bar", both with value None; `<a foo= bar>` produces two attributes:
  "foo" with value "" and "bar" with value None.

---------
(cherry picked from commit 0243f97cba)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
2025-07-03 21:07:40 +00:00
Victor Stinner
8cbece1ffa
[3.13] gh-115119: Recommend upstream libmpdec in build requirements (#136205) (#136245)
gh-115119: Recommend upstream libmpdec in build requirements (#136205)



(cherry picked from commit b2e498ac26)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-07-03 12:55:30 +00:00
Miss Islington (bot)
c30178a295
[3.13] gh-130664: Treat '0' fill character with align '=' as zero-padding for Fraction's (GH-131067) (GH-136242)
(cherry picked from commit c113a8e523)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-07-03 11:20:49 +00:00
Miss Islington (bot)
fc77192109
[3.13] gh-135069: Fix exception message in encodings.idna module (GH-135071) (#136236)
gh-135069: Fix exception message in encodings.idna module (GH-135071)
(cherry picked from commit 8dc3383abe)

Co-authored-by: Daniel Hollas <daniel.hollas@bristol.ac.uk>
2025-07-03 10:31:43 +00:00
Miss Islington (bot)
a09199e3cc
[3.13] Docs: fix docstring of email.message.Message.add_header (GH-134355) (#135340)
Docs: fix docstring of `email.message.Message.add_header` (GH-134355)
(cherry picked from commit c23eec2960)

Co-authored-by: Alexander Shadchin <shadchin@yandex-team.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-07-03 10:22:39 +00:00
Miss Islington (bot)
67c74398fa
[3.13] Fix comments for heapq.siftup_max (GH-135359) (#136233)
Fix comments for `heapq.siftup_max` (GH-135359)
(cherry picked from commit 8f8bdf251a)

Co-authored-by: Alper <alperyoney@fb.com>
Co-authored-by: mpage <mpage@meta.com>
2025-07-03 10:15:01 +00:00
Miss Islington (bot)
1de8fc3e4b
[3.13] gh-135640: Adds more type checking to ElementTree (GH-135643) (GH-136226)
(cherry picked from commit e0245c789f)

Co-authored-by: Kira <kirawhoprograms@fastmail.com>
2025-07-03 08:12:21 +00:00
Miss Islington (bot)
d80df8c1a5
[3.13] gh-135836: Fix IndexError in asyncio.create_connection() (GH-135875) (#136222)
gh-135836: Fix `IndexError` in `asyncio.create_connection()` (GH-135875)
(cherry picked from commit 9084b15156)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-07-03 04:31:43 +00:00
Miss Islington (bot)
1994d2e5b1
[3.13] gh-135836: Fix IndexError in asyncio.create_connection with empty exceptions list (GH-135845) (#136168)
gh-135836: Fix `IndexError` in `asyncio.create_connection` with empty exceptions list (GH-135845)
(cherry picked from commit 0e19db653d)

Co-authored-by: heliang666s <147408835+heliang666s@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-07-03 09:37:28 +05:30
Miss Islington (bot)
004f464338
[3.13] gh-136135: Doc: Fix some broken links (GH-136137) (GH-136219)
gh-136135: Doc: Fix some broken links (GH-136137)
(cherry picked from commit 135ba86212)

Co-authored-by: Weilin Du <108666168+LamentXU123@users.noreply.github.com>
2025-07-03 00:59:13 +00:00
Miss Islington (bot)
c99354cf1f
[3.13] Replace capi-sig mailing list with discuss.python.org (GH-136211) (#136214)
Replace `capi-sig` mailing list with `discuss.python.org` (GH-136211)
(cherry picked from commit 7afe1adb00)

Co-authored-by: sobolevn <mail@sobolevn.me>
2025-07-02 20:55:17 +03:00
Sergey B Kirpichev
1e6db47078
[3.13] gh-115119: Defer removal of bundled libmpdec to 3.16 (GH-133997) (#136201)
Rename libmpdecimal -> libmpdec

see https://www.bytereef.org/mpdecimal/doc/libmpdec/index.html
(cherry picked from commit b19c9da401)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-07-02 14:37:06 +02:00
Miss Islington (bot)
da2c4ef7eb
[3.13] gh-87298: Add tests for find_in_strong_cache() bug in _zoneinfo (GH-24829) (GH-136182)
(cherry picked from commit 12ce16bc13)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Co-authored-by: Paul Ganssle <p.ganssle@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-07-01 15:19:39 +00:00