Commit graph

124918 commits

Author SHA1 Message Date
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
Sebastian Pipping
69ab8fbb85
[3.13] gh-139400: Make sure that parent parsers outlive their subparsers in pyexpat (GH-139403) (GH-139608)
Within libexpat, a parser created via `XML_ExternalEntityParserCreate`
is relying on its parent parser throughout its entire lifetime.
Prior to this fix, is was possible for the parent parser to be
garbage-collected too early.

(cherry picked from commit 6edb2ddb5f)
2025-10-06 15:17:37 +02:00
Miss Islington (bot)
1d39dba759
[3.13] gh-116488: Mention dict.get in the data structures tutorial (GH-139643) (GH-139656)
gh-116488: Mention `dict.get` in the data structures tutorial (GH-139643)
(cherry picked from commit 69cfad0b3e)

Co-authored-by: Cycloctane <Cycloctane@outlook.com>
2025-10-06 13:11:49 +00:00
Miss Islington (bot)
52c0738700
[3.13] gh-139624: Skip problematic locales on AIX in test_date_locale2 (GH-139625) (GH-139645)
(cherry picked from commit 6f3dae0dc5)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
2025-10-06 13:49:50 +03:00
Miss Islington (bot)
d3a4e0608b
[3.13] gh-137242: Allow Android testbed to take all Python command-line options (GH-138805) (#139638)
Modifies the Android test runner to ensure that all valid Python command line
options are preserved when running the test suite.
(cherry picked from commit a9b0506d8d)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-10-06 06:25:58 +00: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)
7e5d47de10
[3.13] gh-139310: skip test_aead_aes_gcm for Linux kernel between 6.16.0 and 6.17.x (GH-139552) (#139593)
gh-139310: skip `test_aead_aes_gcm` for Linux kernel between 6.16.0 and 6.17.x (GH-139552)

Currently, Fedora 42 uses a custom Linux Kernel 6.16.9 that backported an upstream change
from 6.17-rc7 [1,3] but not its subsequent fix [2]. Until the issue is resolved upstream,
we skip the failing test `test_socket.test_aead_aes_gcm` for kernel versions between 6.16
and 6.17.x.

[1] 1b34cbbf4f
[2] d0ca0df179
[3] 45bcf60fe4
(cherry picked from commit 41712c4e09)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-10-05 08:52:06 +00:00
Miss Islington (bot)
1a16059cc3
[3.13] gh-139573: Update Windows builds to use OpenSSL 3.0.18 (GH-139587)
(cherry picked from commit 063cef9999)
2025-10-04 20:53:16 -05:00
Zachary Ware
dbcaa25839
[3.13] gh-139573: Update OpenSSL in CI (GH-139585)
(cherry picked from commit 98e748b3a0)
2025-10-04 20:52:08 -05:00
Russell Keith-Magee
336f9b09c2
[3.13] gh-139573: Update Android to OpenSSL 3.0.18 (GH-139562) (#139584)
Update Android to OpenSSL 3.0.18.
(cherry picked from commit 0f0fc5a163)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-10-05 01:16:05 +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
Victor Stinner
a75676bf6c
[3.13] gh-135329: Use longer timeout in pyrepl test_repl_eio() (#139503) (#139507)
gh-135329: Use longer timeout in pyrepl test_repl_eio() (#139503)

Replace hardcoded 5 seconds with support.SHORT_TIMEOUT.

Fix the following error on slow CI such as GitHub Action UBSan:

test test_pyrepl failed -- Traceback (most recent call last):
  File "Lib/test/test_pyrepl/test_unix_console.py", line 362, in test_repl_eio
    _, err = proc.communicate(timeout=5)  # sleep for pty to settle
             ~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "Lib/subprocess.py", line 1219, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
                     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Lib/subprocess.py", line 2126, in _communicate
    self._check_timeout(endtime, orig_timeout, stdout, stderr)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "Lib/subprocess.py", line 1266, in _check_timeout
    raise TimeoutExpired(
    ...<2 lines>...
            stderr=b''.join(stderr_seq) if stderr_seq else None)
subprocess.TimeoutExpired: Command '[...]' timed out after 5 seconds

(cherry picked from commit c985822d86)
2025-10-02 15:08:42 +00:00
Miss Islington (bot)
5d589eedf9
[3.13] gh-139487: add missing imports for standalone doctest Enum examples (GH-139488) (#139494)
gh-139487: add missing imports for standalone doctest `Enum` examples (GH-139488)
(cherry picked from commit f3d7faeafa)

Co-authored-by: Peter <35064951+ttw225@users.noreply.github.com>
2025-10-02 14:43:33 +02:00
Miss Islington (bot)
f42eafdd09
[3.13] gh-139210: Move gh-139210 patch NEWS file to correct section (GH-139469) (GH-139470)
(cherry picked from commit d936dbeb1f)

Co-authored-by: Ken Jin <kenjin@python.org>
2025-10-01 08:59:48 +00:00
Miss Islington (bot)
0114bbe43a
[3.13] Document that PyInterpreterState_GetDict returns a borrowed reference (GH-139451) (#139464)
Document that `PyInterpreterState_GetDict` returns a borrowed reference (GH-139451)
(cherry picked from commit 80cdf3ef74)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-10-01 11:26:39 +05:30
Miss Islington (bot)
f48128b6b3
[3.13] gh-139210: Fix use-after-free in xml.etree.ElementTree.iterparse() (GH-139211) (GH-139456)
(cherry picked from commit c86eb4d3ac)

Co-authored-by: Ken Jin <kenjin@python.org>
2025-09-30 18:14:44 +00:00
Miss Islington (bot)
0ef302e019
[3.13] gh-130567: Enable previously skipped locale tests on FreeBSD and macOS (GH-138652) (GH-139422)
(cherry picked from commit 1b8dcdacc7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-09-30 17:53:45 +02:00
Miss Islington (bot)
6260b6ae24
[3.13] gh-139146: Check calloc() results in _testembed.c::test_pre_initialization_sys_options (GH-139147) (#139414)
gh-139146: Check `calloc()` results in `_testembed.c::test_pre_initialization_sys_options` (GH-139147)
(cherry picked from commit 9c6a1f847b)


Reported by: Dmitrii Chuprov <cheese@altlinux.org>

Signed-off-by: Denis Sergeev <zeff@altlinux.org>
Co-authored-by: Denis Sergeev <zeff@altlinux.org>
2025-09-29 11:03:01 +00:00
Miss Islington (bot)
d232944638
[3.13] gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436) (GH-139407)
gh-78319: Fix implementation of IMAP APPEND UTF8 (GH-9436)

Make UTF8 support for the IMAP APPEND command RFC 6855 compliant.
(cherry picked from commit 408154d64a)

Co-authored-by: Gordon Messmer <gordon.messmer@gmail.com>
2025-09-29 06:25:51 +00:00
Miss Islington (bot)
a461f25ce6
[3.13] gh-139312: Update bundled libexpat to 2.7.3 (GH-139319) (#139377)
gh-139312: Update bundled libexpat to 2.7.3 (GH-139319)

+ Blurb
+ Update sbom.spdx.json
(cherry picked from commit 48d0d0dd97)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-09-27 08:19:09 +00:00
Tian Gao
773a7c05ff
[3.13] gh-139289: Lazy import rlcompleter to fix the refleak (GH-139305) (#139357)
(cherry picked from commit 8288f3693f)
2025-09-26 22:50:33 +08:00
Rafael Fontenelle
606022c55d
[3.13] Remove erroneous text from What’s New (#139343) 2025-09-26 12:36:01 +01:00
Miss Islington (bot)
9b09677c0a
[3.13] gh-115119: Defer --with-system-libmpdec removal to 3.16 (GH-139318) (#139348)
gh-115119: Defer `--with-system-libmpdec` removal to 3.16 (GH-139318)
(cherry picked from commit 0aab07ccf7)

Co-authored-by: sobolevn <mail@sobolevn.me>
2025-09-26 11:27:57 +00:00
Miss Islington (bot)
417e0c0791
[3.13] gh-127502: Fix typo in XML security notes (GH-139335) (#139345)
gh-127502: Fix typo in XML security notes (GH-139335)
(cherry picked from commit 6fa1e552e0)

Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
2025-09-26 10:08:59 +00:00
Miss Islington (bot)
11d6c460b8
[3.13] gh-139330: Check expat version/checksum in SBOM with refresh.sh
gh-139330: Check expat version/checksum in SBOM with refresh.sh

Check expat version/checksum in SBOM with refresh.sh
(cherry picked from commit 89b5571025)

Co-authored-by: Seth Michael Larson <seth@python.org>
2025-09-25 18:05:09 +00:00
Miss Islington (bot)
d1f6b392e4
[3.13] gh-130567: Fix possible crash in locale.strxfrm() (GH-138940) (GH-139266)
On some macOS versions there was an off-by-one error in wcsxfrm() which
caused writing past the end of the array if its size was not calculated
by running wcsxfrm() first.
(cherry picked from commit 5854cf38a2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2025-09-24 13:48:08 +02:00
Karolina Surma
7f83461e56
[3.13] Fix the reference to unicode specification (#139138) (#139285)
(cherry picked from commit b36dee855d)
2025-09-24 10:36:37 +02:00
Tian Gao
dbe4690772
[3.13] gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in… (#139281)
[3.13] gh-138860: Lazy import rlcompleter in pdb to avoid deadlock in subprocess (GH-139185)
(cherry picked from commit c8624cd367)
2025-09-24 14:07:50 +08:00
Miss Islington (bot)
096772dd5d
[3.13] gh-139208: Fix regrtest --fast-ci --verbose (GH-139240) (#139261)
gh-139208: Fix regrtest --fast-ci --verbose (GH-139240)

Don't ignore the --verbose option anymore.
(cherry picked from commit dd683f8f34)

Co-authored-by: Victor Stinner <vstinner@python.org>
2025-09-23 14:32:19 +00:00
Eloisa Perez-Bennetts
5775c0037b
[3.13] Revert "gh-136006: fix Py_NAN expansion on Solaris systems (GH-136575) (#138734)" (#139239)
This reverts commit df349036b3 as discussed in https://github.com/python/cpython/pull/138733#issuecomment-3317818806
2025-09-22 14:18:11 +00:00
Miss Islington (bot)
df8ae28286
[3.13] Doc/library/os.rst: Remove spurious parenthesis (GH-139205) (GH-139218)
`Doc/library/os.rst`: Remove spurious parenthesis (GH-139205)
(cherry picked from commit 9c3d09b984)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-09-21 19:05:42 +00:00
Miss Islington (bot)
4df066d0fe
[3.13] gh-138092: Correct the documented signature of `mmap.flush` (GH-138671) (#139203) 2025-09-21 11:05:10 +00:00
Miss Islington (bot)
eadcf4dcaf
[3.13] Make sure the `:keyword: role works for case` (GH-138878) (#139201) 2025-09-21 10:58:06 +00:00
Alex Waygood
8aa856170d
[3.13] gh-118803: Fixup a few references in the 3.13 branch to the intended removal date for ByteString (#139171) 2025-09-19 18:51:39 +01:00
Peter Bierma
63dd27da3b
[3.13] gh-112729: Correctly fail when the process is out of memory during interpreter creation (GH-139164) (GH-139169)
* gh-112729: Correctly fail when the process is out of memory during interpreter creation (GH-139164)

(cherry picked from commit d06113c7a7)
2025-09-19 15:09:44 +00:00
Miss Islington (bot)
9809c30456
[3.13] gh-139076: Fix regression in pydoc not showing extension functions (GH-139077) (GH-139161)
Fix a bug in the pydoc module that was hiding functions in a Python
module if they were implemented in an extension module and the module did
not have __all__.
(cherry picked from commit 7257b24140)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-09-19 16:38:20 +03:00
Alex Waygood
8246e25ef0
[3.13] gh-118803: Improve documentation around ByteString deprecation (#139115) (#139137) 2025-09-18 19:35:30 +01:00
Miss Islington (bot)
7de5d02b30
[3.13] gh-82916: Don't fail when importing from / with sys.pycache_prefix set (GH-30456) (GH-137905)
(cherry picked from commit d8a9466e29)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-09-18 15:37:39 +02:00
Miss Islington (bot)
24b699231b
[3.13] Document Py_AddPendingCall() change with subinterpreters in 3.12 (GH-139117) (GH-139119)
Document `Py_AddPendingCall()` change with subinterpreters in 3.12 (GH-139117)

Prior to 3.9, Py_AddPendingCall() would always run pending calls in the main interpreter, but then each interpreter got their own ceval state, and they were scheduled for any interpreter. In GH-104813, this was undone, so Py_AddPendingCall() would always schedule for the main interpreter.
(cherry picked from commit 89ff88be89)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
2025-09-18 12:17:06 +00:00
Bénédikt Tran
3b24402568
[3.13] gh-138633: synchronize documented signatures of SSL objects with runtime ones (GH-138639, GH-138648) (#138647)
(cherry picked from commit 4dd36f3a38496494ff64ee8315a1589490bb472a)
(cherry picked from commit 4ef51fa75c)
2025-09-18 13:07:06 +01:00
Miss Islington (bot)
2d24b13d03
[3.13] gh-137376: Add note on top-level global declarations (GH-137707) (#138022)
(cherry picked from commit 9f05f98730)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
2025-09-18 13:02:17 +01:00
Bénédikt Tran
df349036b3
[3.13] gh-136006: fix Py_NAN expansion on Solaris systems (GH-136575) (#138734)
On Solaris, `Py_NAN` may expand as a function address instead of a floating-point number.
This amends commit 7a3b03509e.
(cherry picked from commit d54b1091d4)
2025-09-18 12:47:12 +01:00
Petr Viktorin
135198dd5d
[3.13] gh-138008: Fix segfaults in _ctypes due to invalid argtypes (GH-138285) (#138746)
(cherry picked from commit 1ce05537a3)

Signed-off-by: Nguyen Viet Dung <29406816+magnified103@users.noreply.github.com>
Signed-off-by: Nguyen Viet Dung <dung@ekluster.com>
Co-authored-by: Dung Nguyen <dung@ekluster.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Yongzi Li <204532581+Yzi-Li@users.noreply.github.com>
2025-09-18 12:46:05 +01:00
Miss Islington (bot)
5e59aef20f
[3.13] Make Android streams respect the unbuffered (-u) option (GH-138806) (#139110)
Android pipes stdout/stderr to the log, which means every write to the log
becomes a separate log line. As a result, most practical uses of stdout/stderr
should be buffered; but it doesn't hurt to preserve unbuffered handling in case
it's useful.
(cherry picked from commit 0ac377ff23)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
2025-09-18 12:45:03 +01:00
Miss Islington (bot)
54d5235ed3
[3.13] gh-138871: Clarify NameError exception in 'del' (GH-138881) (#138904)
(cherry picked from commit 481588ad4c)

Co-authored-by: Kian Eliasi <kian.elbo@gmail.com>
2025-09-18 12:43:24 +01:00
Miss Islington (bot)
ccf4b3e021
[3.13] gh-138998: Upgrade vendored expat to 2.7.2 (GH-138999) (#139025)
(cherry picked from commit 64c876dd68)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2025-09-18 12:42:42 +01:00