Kit Dallege
b8ebd078f9
gh-137337: Clarify import statement namespace binding (GH-144607)
...
It is not always in the local namespace.
2026-05-04 17:45:00 +03:00
Victor Stinner
1e21cf6fee
gh-148292: Remove shutdown() test in test_ssl.test_got_eof() ( #149366 )
...
The shutdown() behavior depends too much on the operating system and
it's unrelated to the got_eof_error change.
2026-05-04 14:20:25 +00:00
Victor Stinner
6e6f9053e3
gh-148675: Add Zd/Zf formats to array, ctypes, memoryview, struct ( #148676 )
...
* Add Zd/Zf format support to array, memoryview and struct.
* ctypes: Replace F/D/G complex format with Zf/Zd/Zg.
* Modify array, ctypes and struct modules to support format strings
longer than 1 character (such as "Zd").
* Change array.typecodes type from str to tuple.
2026-05-04 16:14:23 +02:00
Maurycy Pawłowski-Wieroński
72f29dc704
gh-147998: Fix possible memory leak in _pop_preserved (crossinterp.c) (GH-147999)
2026-05-04 16:45:31 +03:00
Alyssa Coghlan
5235467b91
gh-149010: Improve reliability of inspect CLI ( #149357 )
...
* Handle non-source modules more gracefully (and consistently)
* Improve handling of frozen modules (which may or may not have source)
* Avoid reporting misleading info when looking up objects via aliases
* Refactor CLI implementation to improve testability
* Add several more test cases
Closes #149010
2026-05-04 23:42:20 +10:00
Wulian233
c3972f2795
gh-148418: Fix a possible reference leak in a corrupted TYPE_CODE marshal stream (GH-148419)
2026-05-04 16:42:02 +03:00
Victor Stinner
ce51c18818
gh-146063: Add PyObject_CallFinalizerFromDealloc() to the limited C API ( #146172 )
...
Co-authored-by: Petr Viktorin <encukou@gmail.com >
2026-05-04 15:37:45 +02:00
Victor Stinner
fc96028191
gh-148600: Add OpenSSL 4.0.0 support to test configurations ( #149356 )
...
Co-authored-by: Charlie Lin <tuug@gmx.us >
2026-05-04 16:21:04 +03:00
wouter bolsterlee
7aedd0a6c6
gh-87245: Improve IPv6Address.ipv4_mapped documentation ( #92572 )
...
Avoid the phrasing ‘starting with ::FFFF/96’, which is confusing since
it seems to mix a prefix and a range. Instead, make it clear what the
actual range is, and refer to the relevant RFC.
Closes #87245 .
2026-05-04 23:03:20 +10:00
Hugo van Kemenade
2ba0a81c91
gh-148352: Add more colour to calendar CLI output ( #148354 )
...
Co-authored-by: Rihaan Meher <sharktidedev@gmail.com >
2026-05-04 15:14:57 +03:00
Ned Deily
1504bd671e
gh-149351: Avoid possible broken macOS framework install names when DESTDIR is specified during builds ( #149352 )
2026-05-04 07:55:06 -04:00
Victor Stinner
7b7fa3f9bf
gh-148292: Update _ssl._SSLSocket for OpenSSL 4 ( #149102 )
...
The _SSLSocket object now remembers if it gets an EOF error. In this
case, read(), sendfile(), write() and do_handshake method calls fail
with SSLEOFError without calling the underlying OpenSSL function.
Co-authored-by: Gregory P. Smith <greg@krypto.org >
2026-05-04 13:52:57 +02:00
Petr Viktorin
bc7c102f34
gh-149231: tomllib: Limit the number of parts in a key (GH-149233)
...
Co-authored-by: Stan Ulbrych <stan@python.org >
2026-05-04 13:49:07 +02:00
kishorhange111
246fe14e7c
gh-148849: Deprecate http.cookies.BaseCookie.js_output() (GH-148978)
2026-05-04 12:51:17 +03:00
Maurycy Pawłowski-Wieroński
0c6d2f64c0
gh-148093: Raise binascii.Error from binascii.a2b_uu() on empty input (GH-149077)
...
Instead of reading past the end of the empty buffer.
2026-05-04 12:40:52 +03:00
Hugo van Kemenade
35061259cc
gh-146609: Use argparse for colour help timeit CLI ( #149334 )
...
Co-authored-by: Stan Ulbrych <stan@python.org >
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com >
2026-05-04 08:44:37 +00:00
Kumar Aditya
5847931d11
gh-143732: allow dict subclasses to be specialized (GH-148128)
2026-05-04 09:39:03 +01:00
Hugo van Kemenade
de1769f700
gh-142389: Add colour to regrtest and pdb's help descriptions ( #149332 )
2026-05-04 10:20:23 +03:00
Pablo Galindo Salgado
3efd2f4db6
gh-149296: Add dump subcommand to sampling profiler for one-shot stack snapshots ( #149297 )
...
Adds `python -m profiling.sampling dump <pid>`, which prints a single
traceback-style snapshot of a running process's Python stack via the
existing `_remote_debugging` unwinder. Supports per-thread status,
source line highlighting, optional bytecode opcodes, and async-aware
task reconstruction (`--async-aware`, default `--async-mode=all`).
2026-05-04 01:02:33 +01:00
Kai (Kazuya Ito)
2e94f14310
gh-145521: Add 'infer_variance' parameter to ParamSpec class ( #145522 )
2026-05-03 23:08:38 +00:00
Tamika Nomara
4144062387
gh-133956 fix bug where dataclass wouldn't detect ClassVar fields if ClassVar was re-exported from a module other than typing ( #140541 )
...
Co-authored-by: Dmitrii Zherbin <zherbin.dima@yandex.ru >
2026-05-03 15:59:18 -07:00
Zachary Ware
68fe899feb
gh-149254: Update CI to use latest OpenSSL and AWS-LC versions (GH-149330)
...
Also update Modules/_ssl_data_36.h to include an added symbol from OpenSSL 3.6.2.
2026-05-03 20:20:51 +00:00
Zachary Ware
d254d6ee49
gh-149254: Update Windows builds to use OpenSSL 3.5.6 (GH-149326)
2026-05-03 15:04:30 -05:00
Barry Warsaw
24c4aecc16
gh-148641: Implement PEP 829 - startup configuration files ( #149109 )
...
Implement PEP 829 - startup configuration files
Also add `pkgutil.resolve_name(..., strict=True)`
Co-authored-by: Brett Cannon <brett@python.org >
2026-05-03 17:17:29 +00:00
Hugo van Kemenade
0bf6e31941
gh-135056: Fix teardown order for Windows in test_httpservers ( #149320 )
2026-05-03 19:42:42 +03:00
Anton Ian Sipos
836fbdaaf3
gh-135056: Add a --header CLI option to http.server ( #135057 )
...
Support custom headers in `python -m http.server` and `http.server.SimpleHTTPRequestHandler`.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com >
2026-05-03 13:01:37 +02:00
sobolevn
726a17e265
gh-149243: Check for recursion limits in CALL_ALLOC_AND_ENTER_INIT ( #149310 )
2026-05-03 13:26:05 +03:00
Serhiy Storchaka
a3435d5ccc
gh-143231: Do not swallow not matched warnings in assertWarns*() (GH-149229)
...
unittest.TestCase methods assertWarns() and assertWarnsRegex() no longer
swallow warnings that do not match the specified category or regex.
Nested context managers are now supported.
2026-05-03 10:24:57 +00:00
Wulian233
8a7eddaa84
gh-149217: Avoid adding dependencies on immutable, immortal classes in the JIT (GH149256)
2026-05-03 11:06:39 +01:00
Serhiy Storchaka
00c4a946f4
gh-143231: Add the module attribute to warnings.WarningMessage (GH-149298)
2026-05-03 09:35:47 +00:00
sobolevn
db0335887e
Ignore /jit_unwind_info*.h from git ( #149311 )
2026-05-03 12:31:53 +03:00
Mazin Sharaf
1fc2b38d63
GH-148189: Fix miscalculation of type-specific free list memory use ( #148190 )
...
* Fix calculation of PyListObject size in allocator
* Fix size calculation in _PyDict_DebugMallocStats
* Fix memory size calculation in tupleobject.c
Adjusted memory calculation for PyTupleObject freelist entries.
* Revert in tupleobject.c
Removed unnecessary comment regarding memory calculation and the memory calculation itself.
* 📜 🤖 Added by blurb_it.
* Update tupleobject.c
---------
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2026-05-02 22:03:13 -05:00
dr-carlos
c1940bcfc8
gh-141388: Improve docs/tests for non-function callables as annotate functions ( #142327 )
2026-05-02 18:21:59 -07:00
Tian Gao
6b632ce36b
gh-139167: Allow users to hook gen_colors function to pyrepl Reader ( #141619 )
2026-05-02 13:28:00 -07:00
Neko Asakura
7c9ad27dd1
gh-148871: extend and improve LOAD_COMMON_CONSTANT (GH-148971)
2026-05-02 19:59:51 +01:00
Eric Mark Martin
a65611e7f5
gh-149171: Make TypeAliasType __module__ writable ( #149172 )
...
closes #149171 .
2026-05-02 17:28:08 +00:00
Anuj Nitin Bharambe
3a1df787e1
gh-149267: Document ast.Constant.kind attribute ( #149268 )
...
The kind attribute of ast.Constant was not mentioned in the
documentation. It is set to 'u' for u-prefixed string literals
and None for all other constants.
---------
Co-authored-by: Anuj Bharambe <anujnitinb@gmail.com >
2026-05-02 09:55:29 -07:00
Hunter Hogan
7b0244dbc7
gh-148063: documentation: move ast.compare from "Compiler flags" to "ast helpers" ( #147954 )
2026-05-02 19:54:26 +03:00
Brian Schubert
bdedc4a20e
gh-116021: Deprecate support for instantiating abstract AST nodes ( #137865 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com >
2026-05-02 09:50:06 -07:00
Zanie Blue
b1d6231736
gh-149285: Increase recursion depth for test_xml_etree from 150k to 500k ( #149286 )
2026-05-02 09:04:36 -07:00
sobolevn
98afa03522
gh-149282: Fix gc.c compilation with --enable-pystats ( #149283 )
2026-05-02 18:24:17 +03:00
Pablo Galindo Salgado
e214324532
gh-146527: Remove private module entry from what's new ( #149284 )
...
Remove private module entry from what's new
2026-05-02 15:16:38 +00:00
Sergey Miryanov
39f123c587
GH-146527: Add get_gc_stats function to _remote_debugging ( #148071 )
2026-05-02 15:04:18 +00:00
Neko Asakura
2ca6333065
gh-148380: remove all uses of _PyType_LookupByVersion in optimizer_bytecodes.c (GH-148394)
2026-05-02 15:45:38 +01:00
Pablo Galindo Salgado
efcac6f281
gh-149214: Fix non ascii characters in remote debugging ( #149228 )
2026-05-02 15:07:28 +01:00
Diego Russo
c7b7ca2cd5
GH-126910: Add gdb support for unwinding JIT frames ( #146071 )
...
Co-authored-by: Pablo Galindo Salgado <pablogsal@gmail.com >
2026-05-02 13:42:03 +00:00
Raymond Hettinger
da09ef807b
gh-149221: Minor comment edit (gh-149278)
...
Minor comment edit
2026-05-02 08:29:06 -05:00
lighting9999
4f0cfe53cb
gh-149221:Fix binomialvariate Function for random module (gh-149222)
2026-05-02 07:55:43 -05:00
Sergey Miryanov
fea2a57282
GH-148932: Improve error message if profiling.sampling run from venv on Windows platform ( #149247 )
2026-05-02 09:23:16 +00:00
Serhiy Storchaka
b89735625d
gh-148914: Fix memoization of in-band PickleBuffer in the Python implementation (GH-149052)
...
Previously, identical PickleBuffers did not preserve identity.
Also, empty writable PickleBuffer memoized an empty bytearray object
in place of b'' which is a singleton in CPython, so the following
references to b'' were unpickled as an empty bytearray object.
2026-05-02 12:04:05 +03:00