Chris Eibl
76c554bcdf
gh-139922: always run MSVC 64-bit tail-calling CI (GH-146570)
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
2026-03-30 21:55:44 +08:00
Victor Stinner
adf2c47911
gh-126835: Fix _PY_IS_SMALL_INT() macro ( #146631 )
2026-03-30 12:48:18 +00:00
Kumar Aditya
8e10bd77ea
gh-146587: fix type slot assignment incase of multiple slots for same name ( #146593 )
2026-03-30 18:07:38 +05:30
ivonastojanovic
f4d3c61f36
gh-138122: Add differential flame graph ( #145785 )
...
Differential flame graphs compare two profiling runs and highlight where
performance has changed. This makes it easier to detect regressions
introduced by code changes and to verify that optimizations have the
intended effect.
The visualization renders the current profile with frame widths
representing current time consumption. Color is then applied to show the
difference relative to the baseline profile: red gradients indicate
regressions, while blue gradients indicate improvements.
Some call paths may disappear entirely between profiles. These are
referred to as elided stacks and occur when optimizations remove code
paths or when certain branches stop executing. When elided stacks are
present, an "Elided" toggle is displayed, allowing the user to switch
between the main differential view and a view showing only the removed
paths.
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2026-03-30 12:31:06 +01:00
Hood Chatham
6857de625f
gh-146416: Emscripten: Improve standard stream handling in node_entry.mjs ( #146417 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-03-30 13:24:35 +02:00
Russell Keith-Magee
6420847bda
gh-146444: Don't package as part of iOS 'build hosts' target ( #146628 )
...
* Revert Py3.9 compatibility fixes.
* Only build the package on 'build all'.
2026-03-30 12:58:57 +02:00
Marcel Telka
7b2495e811
gh-138850: Add --disable-epoll to configure (GH-145768)
...
* gh-138850: Add --disable-epoll to configure
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2026-03-30 11:55:42 +02:00
Victor Stinner
382c04308d
gh-146444: Make Platforms/Apple/ compatible with Python 3.9 ( #146624 )
...
Replace "str | None" with typing.Union[str, None].
2026-03-30 09:25:11 +00:00
Sanyam Khurana
7f0c4f6a0b
gh-138577: Fix keyboard shortcuts in getpass with echo_char ( #141597 )
...
When using getpass.getpass(echo_char='*'), keyboard shortcuts like
Ctrl+U (kill line), Ctrl+W (erase word), and Ctrl+V (literal next)
now work correctly by reading the terminal's control character
settings and processing them in non-canonical mode.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2026-03-30 11:11:13 +02:00
Ramin Farajpour Cami
2cf6a68f02
gh-146556: Fix infinite loop in annotationlib.get_annotations() on circular __wrapped__ ( #146557 )
2026-03-30 03:08:18 +00:00
cui
4d0e8ee649
gh-146579: _zstd: Fix decompression options dict error message ( #146577 )
...
The TypeError in _zstd_set_d_parameters incorrectly referred to
compression options; say decompression options instead.
2026-03-29 12:58:12 -07:00
Stan Ulbrych
e39d84a37d
gh-146083: Upgrade bundled Expat to 2.7.5 ( #146085 )
2026-03-29 19:05:14 +02:00
Bénédikt Tran
24db78c532
gh-146080: fix a crash in SNI callbacks when the SSL object is gone ( #146573 )
2026-03-29 14:27:22 +02:00
Bénédikt Tran
aa6680775d
gh-146090: fix memory management of internal sqlite3 callback contexts ( #146569 )
2026-03-29 14:21:37 +02:00
Serhiy Storchaka
6932c3ee6a
gh-145876: Do not mask KeyErrors raised during dictionary unpacking in call (GH-146472)
...
KeyErrors raised in keys() or __getitem__() during dictionary unpacking
in call (func(**mymapping)) are no longer masked by TypeError.
2026-03-29 11:58:52 +03:00
Chris Eibl
1af025dd22
gh-146004: fix test_args_from_interpreter_flags on windows ( #146580 )
2026-03-29 09:38:45 +05:30
Pieter Eendebak
1fd66eadd2
gh-139003: Use frozenset for module level attributes in _pyrepl.utils ( #139004 )
...
Use frozenset for module level attributes
2026-03-28 20:21:19 +00:00
Sergey Miryanov
5bf3a31bc2
GH-146527: Add more data to GC statistics and add it to PyDebugOffsets ( #146532 )
2026-03-28 18:52:10 +00:00
Stan Ulbrych
087a5f6444
_pyrepl/pager.py: call less with --clear-screen (#146382 )
2026-03-28 17:23:58 +00:00
Jonathan Dung
578d726d46
gh-146544: Fix asyncio.Queue docstring ambiguity ( #146545 )
2026-03-28 16:35:45 +05:30
Ned Batchelder
3ff582238f
Docs: don't rely on implicit 'above' directions in socket docs ( #146426 )
2026-03-28 05:41:24 -04:00
Gregory P. Smith
1efe441de7
gh-146004: propagate all -X options to multiprocessing child processes (GH-146005)
...
Propagate all -X command line options to multiprocessing spawned child Python processes.
2026-03-28 05:03:05 +00:00
Donghee Na
5992238986
gh-146381: Constant-fold frozendict subscript lookups via REPLACE_OPCODE_IF_EVALUATES_PURE (gh-146490)
2026-03-28 09:48:53 +09:00
Sergey Miryanov
a933e9ccee
GH-145247: Use _PyTuple_FromPair[Steal] in Objects ( #145884 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-03-28 00:01:01 +00:00
Bartosz Sławecki
a5b9d60a69
gh-145059: Record lazy modules without submodules in sys.lazy_modules ( #146081 )
...
Record simple lazy modules as well
2026-03-27 14:37:11 -07:00
Bartosz Sławecki
69b08c397b
gh-145057: Fix test names and comments to reflect sys.lazy_modules is a dict, not a set ( #146084 )
...
Fix test names and comments to reflect sys.lazy_modules is a dict, not a set
2026-03-27 14:35:50 -07:00
Imgyu Kim
73cc1fd4f4
gh-146310: Fix ensurepip to treat empty WHEEL_PKG_DIR as unset ( #146357 )
...
Path('') resolves to CWD, so an empty WHEEL_PKG_DIR string caused
ensurepip to search the current working directory for wheel files.
Add a truthiness check to treat empty strings the same as None.
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-03-27 20:48:07 +00:00
Ken Jin
1384f025f5
gh-126910: Verify that JIT stencils preserve frame pointer (GH-146524)
2026-03-28 03:38:54 +08:00
Diego Russo
b60b9261b5
GH-126910: avoid reading the FP for getting the SP (GH-146521)
2026-03-28 01:52:48 +08:00
Diego Russo
6763d26b2b
GH-126910: reserve FP on AArch64 when generating JIT stencils (GH-146520)
2026-03-28 01:51:51 +08:00
Sergey B Kirpichev
f89fafed25
Mention _Float16 (type from Annex H of the C23) in the struct docs ( #146243 )
2026-03-27 19:38:28 +02:00
Neko Asakura
a492d9ff74
gh-145866: Convert LIST_EXTEND to leave its inputs on the stack to be cleaned up by _POP_TOP be cleaned up by _POP_TOP (GH-146383)
2026-03-28 01:04:17 +08:00
moktamd
1417737810
gh-146507: cache the buffer size for SelectorTransport.get_write_buffer_size() ( #146518 )
2026-03-27 21:43:15 +05:30
Brandon
c8ee196030
gh-146388: Add null check for sym_new(ctx) in make_bottom (GH-146389)
2026-03-27 22:50:29 +08:00
Sam James
a209dd2bdb
gh-85332: Support cross-compiling for GNU/Hurd ( #146094 )
...
Recognise *-gnu (after *-linux*) as GNU/Hurd for cross-compilation.
2026-03-27 15:33:12 +01:00
Pieter Eendebak
9214e3f33e
gh-123471: Make itertools.zip_longest safe in the FT build ( #146033 )
2026-03-27 19:31:49 +05:30
Brij Kapadia
0de4e08a59
gh-146250: Fix memory leak in re-initialization of SyntaxError ( #146251 )
2026-03-27 19:29:21 +05:30
Kumar Aditya
5466f57ead
gh-142518: add thread safety annotations for bytearray C-API ( #146514 )
2026-03-27 18:40:26 +05:30
Kumar Aditya
6a94980301
gh-142518: add thread safety docs on bytes C-API ( #146415 )
2026-03-27 18:31:18 +05:30
Chris Eibl
2e64e36a2b
GH-139922: update 3.15 whatsnew: Windows 64-bit binaries now use the tail-calling interpreter ( #146391 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-03-27 13:44:25 +02:00
Victor Stinner
d4153a9f76
gh-146480: Override the exception in _PyErr_SetKeyError() ( #146486 )
...
If _PyErr_SetKeyError() is called with an exception set, it now
replaces the current exception with KeyError (as expected), instead
of setting a SystemError or failing with a fatal error (in debug
mode).
2026-03-27 11:20:19 +00:00
Joao S. O. Bueno
d0061d50b0
gh-146440: Add array_hook parameter to JSON decoders ( #146441 )
...
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-03-27 11:10:48 +00:00
Sergey B Kirpichev
256907d3aa
gh-138580: Revert sys.float_info.iec_60559 boolean flag ( #146501 )
...
This reverts commit 68c7fad757 .
It looks like on practice the __STDC_IEC_559__ doesn't indicate
conformance to the standard. It can't be used to filter out tests
or to give some promises in documentation. See discussion in
the reverted PR thread:
https://github.com/python/cpython/pull/138811#issuecomment-4117692418
2026-03-27 11:29:15 +01:00
Victor Stinner
0c7a75aeef
gh-146059: Cleanup pickle fast_save_enter() test ( #146481 )
...
Remove {"key": data}, it's not required to reproduce the bug.
Simplify also deep_nested_struct(): remove the seed parameter.
Fix a typo in a comment.
2026-03-27 09:13:48 +01:00
Russell Keith-Magee
36e4ffc173
gh-146444: Move the Apple folder to the Platforms directory ( #146497 )
...
Migrate the Apple/iOS XCframework build tools to the Platforms directory.
2026-03-27 02:50:35 +00:00
Russell Keith-Magee
5684b3a04c
gh-146498: Ensure binary content is correctly processed in multi-arch iOS XCframeworks ( #146499 )
...
Ensure that multi-arch libpython dylibs aren't copied into the app, and the
standard lib is always found for framework post-processing.
2026-03-27 09:56:49 +08:00
Victor Stinner
c75d220e25
gh-146410: Add --pythoninfo to make testios ( #146494 )
...
Add --pythoninfo option to dump build information.
2026-03-26 23:40:32 +01:00
Russell Keith-Magee
ca6dfa0f31
gh-146446: Miscellaneous improvements to iOS XCframework build script ( #146447 )
...
Modifies the iOS build script so that the clean target is more selective about
what is cleaned, the test target has a valid fallback value for ci mode, and the
cross-build directory can be customised.
2026-03-27 05:54:03 +08:00
Serhiy Storchaka
17070f41d4
gh-144837: Improve documentation for more collection methods (GH-144841)
...
Use uniform standard signature syntax in the tutorial and in
the array and collections modules documentation.
2026-03-26 21:29:23 +02:00
Victor Stinner
5c0dcb3e0d
gh-146059: Call fast_save_leave() in pickle save_frozenset() ( #146173 )
...
Add more pickle tests: test also nested structures.
2026-03-26 17:35:27 +01:00