Miss Islington (bot)
2fb2a23cbd
[3.15] gh-150636: Clarify difference between copy.copy() and the copy() methods (GH-150637) (GH-150665)
...
(cherry picked from commit 1de909b324 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
2026-05-31 12:16:58 +00:00
Miss Islington (bot)
c5655dfe51
[3.15] Correct frexp() docs for zero and non-finite numbers (GH-149753) (GH-150652)
...
0.5 <= abs(m) < 1 is only true for finite nonzero numbers
(cherry picked from commit 5b5ffce05c )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2026-05-31 10:04:18 +00:00
Miss Islington (bot)
2ff80c7533
[3.15] gh-131178: Fix mimetypes CLI docs, mention that errors go to stdout (GH-149683) ( #150655 )
...
gh-131178: Fix mimetypes CLI docs, mention that errors go to stdout (GH-149683)
(cherry picked from commit 2b94b92394 )
Co-authored-by: htjworld <116538001+htjworld@users.noreply.github.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
2026-05-31 08:14:15 +00:00
Miss Islington (bot)
3084bdc54b
[3.15] gh-150524: Remove outdated note in binascii.a2b_hex() documentation (GH-150525) (GH-150627)
...
bytes.fromhex() accepts ASCII bytes and bytes-like objects as input since 3.14
(cherry picked from commit af10734907 )
Co-authored-by: Joshix-1 <57299889+Joshix-1@users.noreply.github.com>
2026-05-31 10:52:55 +03:00
Miss Islington (bot)
d03250657a
[3.15] gh-117291: Explain usage of null bytes in Array(c_char).value (GH-117292) (GH-150649)
...
(cherry picked from commit 73d8e9a47c )
Co-authored-by: Patrick Rauscher <prauscher@prauscher.de>
2026-05-31 07:28:45 +00:00
Miss Islington (bot)
9a393438a7
[3.15] gh-149857: Clarify multiprocessing Process argument wording (GH-149919) ( #149933 )
...
gh-149857: Clarify multiprocessing Process argument wording (GH-149919)
Use consistent 'picklable' wording
(cherry picked from commit 1bab6c9192 )
Co-authored-by: Mani Salahmand <78011313+ManiSalahmand@users.noreply.github.com>
2026-05-31 04:22:11 +00:00
Miss Islington (bot)
ccfa50a078
[3.15] gh-141444:fix broken URLs and examples in urllib.request.rst (GH-144863) ( #150642 )
...
gh-141444:fix broken URLs and examples in urllib.request.rst (GH-144863)
* Doc: fix broken URLs and examples in urllib.request.rst (gh-141444)
* Doc: update urllib.request examples to handle gzip compression
---------
(cherry picked from commit 0f1f7c7889 )
Co-authored-by: Paper Moon <tangyuan0821@email.cn>
Co-authored-by: Senthil Kumaran <senthil@python.org>
2026-05-30 21:08:20 -07:00
Miss Islington (bot)
7cf2b37b66
[3.15] gh-150406: Check result of PyThread_allocate_lock() for netdb_lock (GH-150407) (GH-150616)
...
(cherry picked from commit 1e18c45495 )
Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
2026-05-30 17:15:02 +00:00
Miss Islington (bot)
e4cdee6c19
[3.15] gh-129851: Fix the documentation for -m command (GH-129862) (GH-150614)
...
(cherry picked from commit 9baa7c63be )
Co-authored-by: Dhruv Singla <68206552+d-s-dc@users.noreply.github.com>
2026-05-30 20:03:58 +03:00
Miss Islington (bot)
b952986ced
[3.15] gh-135898: Add section to free-threading howto about memory usage (GH-143279) ( #150607 )
...
gh-135898: Add section to free-threading howto about memory usage (GH-143279)
(cherry picked from commit 62a45fa91c )
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2026-05-30 10:49:26 +00:00
Miss Islington (bot)
187982aa7d
[3.15] gh-150501: Correct inspect.getattr_static docs signature (GH-150504) ( #150601 )
...
gh-150501: Correct `inspect.getattr_static` docs signature (GH-150504)
(cherry picked from commit 678fd8452c )
Co-authored-by: Jonathan Dung <jonathandung@yahoo.com>
2026-05-30 09:25:38 +00:00
Serhiy Storchaka
2f9131575b
[3.15] gh-149489: Fix ElementTree serialization to HTML (GH-149490) (GH-150595)
...
* The content of comments, processing instructions and elements "xmp",
"iframe", "noembed", "noframes", and "plaintext" is no longer escaped.
* The "plaintext" element no longer have the closing tag.
* Add support of empty attributes (with value None).
(cherry picked from commit bcd29e466f )
2026-05-29 21:48:10 +00:00
Miss Islington (bot)
863c7e0f9f
[3.15] gh-149056: Properly pass array_hook in json.load() to json.loads() (GH-149057) (GH-150591)
...
(cherry picked from commit f87d9605d3 )
Co-authored-by: Thomas Kowalski <thom.kowa@gmail.com>
2026-05-29 21:30:50 +00:00
Miss Islington (bot)
a2ba8b192e
[3.15] gh-150403: Document frozendict in language reference Mappings section (GH-150404) (GH-150590)
...
(cherry picked from commit 779694faba )
Co-authored-by: Oral Ersoy Dokumacı <oral.ersoy.dokumaci@gmail.com>
2026-05-29 19:48:48 +00:00
Miss Islington (bot)
59e709b17e
[3.15] Add a security warning about pydoc's HTTP server ( #150573 )
...
(cherry picked from commit 5535c1f9c0 )
Co-authored-by: Stan Ulbrych <stan@python.org>
2026-05-29 20:07:29 +01:00
Miss Islington (bot)
b980552f34
[3.15] gh-150107: Fix asyncio sendfile fallback ignoring non-zero offset (GH-150270) ( #150570 )
...
gh-150107: Fix asyncio sendfile fallback ignoring non-zero offset (GH-150270)
(cherry picked from commit c72d5ea638 )
Co-authored-by: Grant Herman <grantlouisherman041@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-05-29 18:40:56 +05:30
Petr Viktorin
d842895a9d
[3.15] gh-141984: Reword docs on "enclosed" atom grammar (GH-148622) (GH-150552)
...
Reorganize and reword the docs on atoms in parentheses, brackets and braces:
parenthesized groups, list/set/dict/tuple displays, and comprehensions.
(Generator expressions and yield atoms are left for later.)
In the spirit of better matching the underlying grammar, *comprehensions* are
covered separately from non-comprehension displays. Also, parenthesized forms
(with a single expression) and tuple displays are separated.
All sections are rewritten to start with simple cases and build up to the full
formal grammar.
(cherry picked from commit 55f2518326 )
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2026-05-29 10:09:38 +02:00
Miss Islington (bot)
21fa311c04
[3.15] gh-149029: Update SQLite to 3.53.1 for binary releases (GH-149767) ( #150559 )
...
(cherry picked from commit 9242700c14 )
Co-authored-by: Adam Johnson <me@adamj.eu>
Co-authored-by: Ned Deily <nad@python.org>
2026-05-28 18:57:04 -04:00
Miss Islington (bot)
77666483b7
[3.15] gh-150046: Fix test_add_python_opts to ignore PYTHON* env vars (GH-150089) ( #150561 )
...
gh-150046: Fix `test_add_python_opts` to ignore `PYTHON*` env vars (GH-150089)
Avoid the runtime environment from affecting the tests' behaviours,
which notably checks the warning filters which can be controlled by
various PYTHON environment variables.
(cherry picked from commit ef2246f788 )
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
2026-05-28 17:15:27 +00:00
Miss Islington (bot)
0e08bba32e
[3.15] Add prominent crash warning to ctypes docs (GH-150410) (GH-150547)
...
(cherry picked from commit b53f6ca850 )
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-05-28 12:23:56 +02:00
Miss Islington (bot)
f216c89631
[3.15] gh-84353: Preserve non-UTF-8 filenames when appending to ZipFile (GH-150091) (GH-150527)
...
Preserve non-UTF-8 filenames when appending to a ZipFile.
---------
(cherry picked from commit 24c6bbc92b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2026-05-27 21:47:03 +00:00
Miss Islington (bot)
e565d12acb
[3.15] gh-149861: Fix rule in match statement case_block PEG grammar (GH-149908)
...
(cherry picked from commit 99c254e2f7 )
Co-authored-by: Ivy Xu <fakeshadow1337@gmail.com>
2026-05-27 16:24:47 +01:00
Miss Islington (bot)
cc6fea844f
[3.15] gh-150389: Make perf profiler tests resilient (GH-150437) ( #150515 )
2026-05-27 12:52:48 +00:00
Miss Islington (bot)
d2b10e75c7
[3.15] gh-149571: Fix the C implementation of Element.itertext() (GH-149929) (GH-150509)
...
It no longer emits text for comments and processing instructions.
(cherry picked from commit 7de4fcd445 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-05-27 10:52:02 +00:00
Miss Islington (bot)
528356eac0
[3.15] gh-150175: Fix ThreadingMock call_count race condition (GH-150176) ( #150182 )
...
gh-150175: Fix ThreadingMock call_count race condition (GH-150176)
ThreadingMock._increment_mock_call() was not thread-safe.
Multiple threads calling the mock simultaneously could lose
increments due to race conditions on call_count and other
attributes.
Fix by overriding _increment_mock_call in ThreadingMixin
and wrapping it with the existing _mock_calls_events_lock.
(cherry picked from commit 388e023fe1 )
Co-authored-by: saisneha196 <156835592+saisneha196@users.noreply.github.com>
2026-05-26 12:46:16 -07:00
Miss Islington (bot)
79e17d7fa5
[3.15] gh-88726: Stop using non-standard charset names eucgb2312_cn and big5_tw in email (GH-149959) (GH-150491)
...
(cherry picked from commit 5e467f4331 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-05-26 19:21:36 +00:00
Miss Islington (bot)
16a31fac48
[3.15] gh-148557: Use em-config to locate trampoline clang (GH-148556) ( #150481 )
...
When CC is wrapped by ccache, the Emscripten trampoline rule cannot derive the
matching clang path by treating CC as a single executable path. Query the active
LLVM toolchain path with em-config instead.
(cherry picked from commit 1310d2c252 )
Co-authored-by: Clément Péron <peron.clem@gmail.com>
2026-05-26 10:05:11 -07:00
Miss Islington (bot)
413663b26a
[3.15] gh-150443: Exclude explicit dup3 and pipe2 checks on iOS builds. (GH-150444) ( #150446 )
...
Exclude explicit dup3 and pipe2 checks on iOS builds.
(cherry picked from commit 629da5c914 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
2026-05-26 04:03:35 +00:00
Miss Islington (bot)
d73e43317e
[3.15] gh-149931: Fix memory leaks on failed realloc (GH-149932) ( #150439 )
2026-05-26 01:04:49 +00:00
Miss Islington (bot)
340b4dd6ff
[3.15] gh-149619: Harden _remote_debugging error paths (GH-150349) ( #150434 )
...
gh-149619: Harden _remote_debugging error paths (GH-150349)
(cherry picked from commit a5be25d3bd )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2026-05-26 00:15:56 +01:00
Pablo Galindo Salgado
d5381e18b8
[3.15] gh-149619: Harden _remote_debugging error paths (GH-150349) ( #150435 )
...
(cherry picked from commit a5be25d3bd )
2026-05-25 23:02:37 +00:00
Miss Islington (bot)
d23b06b2a8
[3.15] gh-150387: Fix hang in test_run_failed_script_live on slow buildbots (GH-150405) ( #150420 )
2026-05-25 18:46:19 +00:00
Serhiy Storchaka
4bdff2cc89
[3.15] gh-80198: Improve test_pwd and test_grp (GH-150380) (GH-150398)
...
Fix tests for non-existing names and ids when getpwall()/getgrall()
don't return all users/groups.
Add tests for out-of-range uids, integer float ids, bytes names,
null-terminated names, names with surrogates, empty names, excessive
arguments.
(cherry picked from commit 46e8f7a9e7 )
2026-05-25 21:43:23 +03:00
Miss Islington (bot)
e2362aac34
[3.15] gh-149156: Fix perf trampoline crash after fork (GH-150347) ( #150394 )
2026-05-25 19:19:22 +01:00
Miss Islington (bot)
28037c2d11
[3.15] gh-145896: Fix typos and stale docstrings in the traceback module (GH-145897) (GH-150383)
...
(cherry picked from commit 832afeddce )
Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
2026-05-25 10:13:01 +00:00
Miss Islington (bot)
acd402ecdb
[3.15] gh-150374: Fix double release of import lock in lazy import reification (GH-150376) ( #150378 )
...
gh-150374: Fix double release of import lock in lazy import reification (GH-150376)
(cherry picked from commit 5498eba545 )
Co-authored-by: pengyu lee <lipengyu@kylinos.cn>
2026-05-25 09:36:22 +00:00
Miss Islington (bot)
03244b9f04
[3.15] gh-150285: Fix too long docstrings in some Python modules (GH-150366) (GH-150375)
...
(cherry picked from commit 01c6d3d76b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-05-25 11:19:36 +03:00
Miss Islington (bot)
5292bb45d9
[3.15] gh-150285: Fix too long docstrings in _wmi.exec_query (GH-150373) (GH-150377)
...
(cherry picked from commit fbeafc062e )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-05-25 11:19:05 +03:00
Miss Islington (bot)
c95aa3aeb1
[3.15] gh-149449: Fix use-after-free in _PyUnicode_GetNameCAPI (GH-150323) ( #150352 )
...
gh-149449: Fix use-after-free in `_PyUnicode_GetNameCAPI` (GH-150323)
(cherry picked from commit 43c60ec2fd )
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2026-05-25 07:05:24 +00:00
Serhiy Storchaka
cf73b17adf
[3.15] gh-150285: Fix too long docstrings in Argument Clinic code (GH-150338) (GH-150350)
...
(cherry picked from commit 287c98f4cb )
2026-05-24 22:31:19 +03:00
Miss Islington (bot)
d02c2dfc11
[3.15] gh-110704: Recommend distclean target over clean when source tree is not clean (GH-112610) ( #150342 )
...
gh-110704: Recommend `distclean` target over `clean` when source tree is not clean (GH-112610)
Recommend `distclean` target over `clean` when source tree is not clean
(cherry picked from commit 34631058f2 )
Co-authored-by: James <6125322+SnoopJ@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
2026-05-24 08:47:29 -07:00
Serhiy Storchaka
739552caae
[3.15] gh-150285: Fix too long docstrings in the os module (GH-150296) (GH-150341)
...
(cherry picked from commit a5cb7c34dd )
2026-05-24 13:53:29 +00:00
Miss Islington (bot)
79937e3cf1
[3.15] gh-150285: Fix too long docstrings in the sqlite3 module (GH-150290) (GH-150340)
...
(cherry picked from commit 0466560b31 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-05-24 13:43:38 +00:00
Miss Islington (bot)
baf22f34ca
[3.15] gh-150285: Fix too long docstrings in the pyexpat module (GH-150294) (GH-150337)
...
(cherry picked from commit 9da7923835 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-05-24 13:41:40 +00:00
Miss Islington (bot)
d52dad6989
[3.15] gh-149619: Fix _remote_debugging permissions error on Linux (GH-150012) ( #150339 )
...
gh-149619: Fix `_remote_debugging` permissions error on Linux (GH-150012)
When running profiling on Linux without sudo, attempts to read
process memory would fail with the misleading error 'Failed to find
the PyRuntime section in process <pid> on Linux platform'.
The actual issue is a permissions error because profiling was not
run with sudo. We were clearing the exception on Linux when trying
to read memory, instead, we should bubble up the permissions error
and show it properly.
(cherry picked from commit 0563890872 )
Co-authored-by: ivonastojanovic <80911834+ivonastojanovic@users.noreply.github.com>
2026-05-24 13:39:29 +00:00
Miss Islington (bot)
3573b3b1ec
[3.15] gh-149018: Use XML_SetHashSalt16Bytes in pyexpat/_elementtree when possible ( #149645 )
...
(cherry picked from commit 24b8f12544 )
Co-authored-by: Stan Ulbrych <stan@python.org>
2026-05-24 14:36:30 +01:00
Miss Islington (bot)
ef89cf56cc
[3.15] gh-150285: Fix too long docstrings in builtins (GH-150293) (GH-150336)
...
(cherry picked from commit e1e06be119 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-05-24 16:24:57 +03:00
Miss Islington (bot)
d3e2a133d2
[3.15] gh-150285: Fix too long docstrings in the zstd module (GH-150291) (GH-150335)
...
(cherry picked from commit 9fceb1c0c5 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-05-24 16:24:34 +03:00
Miss Islington (bot)
e8f534d1af
[3.15] gh-150285: Fix too long docstrings in the decimal module (GH-150288) (GH-150333)
...
(cherry picked from commit 6bed57a3b6 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-05-24 16:24:08 +03:00
Miss Islington (bot)
cfb2e431cd
[3.15] gh-150285: Fix too long docstrings in the io module (GH-150287) (GH-150332)
...
(cherry picked from commit 160dc74122 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-05-24 16:23:45 +03:00