Stan Ulbrych
b1d2d9829c
Docs: Fix a typo in the 'Non-ASCII characters in names' section ( #148043 )
2026-04-04 17:45:52 +01:00
Hugo van Kemenade
fbdbea949f
Regex HOWTO: invalid string literals result in SyntaxWarning ( #148092 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-04-04 19:13:17 +03:00
Donghee Na
853dafe23a
gh-148083: Prevent constant folding when lhs is container types (gh-148090)
2026-04-05 00:40:12 +09:00
Wulian233
c398490fbf
gh-148074: Fix typeobject.c missing error return ( #148075 )
2026-04-04 21:04:55 +05:30
Donghee Na
289f19adb0
gh-148083: Constant-fold _CONTAINS_OP_SET for frozenset (gh-148084)
2026-04-04 12:32:12 +00:00
Stan Ulbrych
fe9befc1ca
gh-145883: Fix two heap-buffer-overflows in _zoneinfo ( #145885 )
2026-04-04 13:29:17 +01:00
Ken Jin
328da67b2c
gh-146073: Revert "gh-146073: Add fitness/exit quality mechanism for JIT trace frontend (GH-147966)" ( #148082 )
...
This reverts commit 198b04b75f .
2026-04-04 11:56:40 +00:00
TT
611d606a18
gh-148067: Fix typo in asyncio event loop docs: 'signals' -> 'signal' ( #148073 )
2026-04-04 16:02:58 +05:30
Ken Jin
c50d6cd012
gh-148078: Fix uses of sym_is_not_null in JIT optimizer (GH-148079)
2026-04-04 18:16:23 +08:00
Kumar Aditya
e7bf8eac0f
gh-131798: split recursion check to _CHECK_RECURSION_LIMIT and combine checks (GH-148070)
2026-04-04 17:23:03 +08:00
Serhiy Storchaka
113038f940
gh-148016: Improve "Leading padding not allowed" error in Base32 and Base64 decoders (GH-148017)
...
It is now raised instead of "Excess padding not allowed" if all characters
preceding "=" were ignored.
2026-04-04 08:37:14 +00:00
Serhiy Storchaka
985216ced3
gh-148029: Fix error message for invalid number of Base32 characters (GH-148030)
...
Do not count ignored non-alphabet characters.
2026-04-04 11:07:19 +03:00
Kumar Aditya
7bcc1c4920
gh-131798: relax GUARD_CALLABLE checks for self type checks ( #148069 )
2026-04-04 12:49:23 +05:30
Kumar Aditya
7e275d4965
gh-131798: JIT inline function addresses of builtin methods ( #146906 )
2026-04-04 09:12:13 +05:30
Russell Keith-Magee
b8470deb5d
gh-146450: Normalise feature set of Android build script with other platform build scripts ( #146451 )
...
Allows for cleaning a subset of targets, customization of the download cache and
cross-build directories, and modifies the build command to allow 'all', 'build'
and 'hosts' targets.
2026-04-04 11:42:04 +08:00
Robert Kirkman
848bbe9ff2
gh-146541: Allow building the Android testbed for 32-bit targets ( #146542 )
...
Allows building the Android testbed for 32-bit targets, adding the target triplets
`arm-linux-androideabi` and `i686-linux-android`.
Co-authored-by: Malcolm Smith <smith@chaquo.com>
2026-04-04 11:27:27 +08:00
Chris Eibl
dea4083aa9
GH-146210: Fix building the jit stencils on Windows when the interpreter is built with a different clang version ( #146338 )
...
Co-authored-by: Savannah Ostrowski <savannah@python.org>
2026-04-03 12:42:13 -07:00
Joshua Swanson
80d0a85d96
gh-126676: Expand argparse docs for type=bool with warning and alternatives ( #146435 )
...
Co-authored-by: joshuaswanson <joshuaswanson@users.noreply.github.com>
Co-authored-by: Savannah Ostrowski <savannah@python.org>
2026-04-03 18:07:03 +00:00
Hugo van Kemenade
cb76ab3819
gh-145098: Use macos-15-intel instead of unstable macos-26-intel ( #148038 )
2026-04-03 19:23:29 +03:00
Hai Zhu
198b04b75f
gh-146073: Add fitness/exit quality mechanism for JIT trace frontend (GH-147966)
2026-04-03 23:54:30 +08:00
Łukasz Langa
3681d47a44
gh-143930: Tweak the exception message and increase test coverage (GH-146476)
2026-04-03 17:31:25 +02:00
Pieter Eendebak
48317feec8
gh-146640: Optimize int operations by mutating uniquely-referenced operands in place (JIT only) (GH-146641)
2026-04-03 23:23:04 +08:00
Stan Ulbrych
80ab6d958a
gh-125895: Fix static asset location for sphinx-notfound-page ( #147984 )
2026-04-03 16:19:30 +01:00
Pablo Galindo Salgado
edab6860a7
gh-148022: Add threat model to remote debugging docs ( #148024 )
...
The remote debugging protocol has been generating spurious
vulnerability reports from automated scanners that pattern-match
on "remote access" and "memory operations" without understanding
the privilege model. This section documents the security boundaries
so reporters can self-triage before submitting.
The threat model clarifies three points: attaching requires the
same OS-level privileges as GDB (ptrace, task_for_pid, or
SeDebugPrivilege), crashes caused by reading corrupted target
process memory are not security issues, and a compromised target
process is out of scope. A subsection explains when operators
should use PYTHON_DISABLE_REMOTE_DEBUG for defence-in-depth.
2026-04-03 14:20:50 +00:00
Jakub Kulík
3908593039
test_copy_dir_no_read_permission requires non root user (GH-148028)
...
This fixes a bug introduced in commit 86b8617747
(GH-146195).
2026-04-03 10:47:59 +02:00
Miikka Koskinen
f3b74d6269
gh-80642: timeit - make target time of autorange configurable ( #140283 )
...
Co-authored-by: Alessandro Cucci <alessandro.cucci@gmail.com>
Co-authored-by: blurb-it[bot] <blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2026-04-03 06:47:21 +00:00
Neil Schemenauer
9d087d6d41
GH-147985: Use lock-free lookup in PySet_Contains ( #147986 )
...
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2026-04-03 12:04:06 +05:30
Tadej Magajna
617f4cc1c2
gh-142533: Document CRLF injection vulnerabilities in http.server doc ( #143395 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-04-02 23:26:21 +02:00
Sergey Miryanov
c1b20a6d96
GH-145247: Use _PyTuple_FromPair in Modules (part 2) ( #148003 )
...
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-04-02 23:24:03 +02:00
Sergey Miryanov
0c100664bc
GH-145247: Use _PyTuple_FromPair in Modules (part 1) ( #148000 )
2026-04-02 23:20:13 +02:00
Ken Jin
74a82a29ba
gh-139038: Update JIT results in preparation for 3.15a8 (GH-148018)
...
Update JIT results in preparation for 3.15a8
2026-04-03 03:10:04 +08:00
Jakub Kulík
86b8617747
Move root user checks to test.support ( #146195 )
2026-04-02 15:50:38 +00:00
Petr Viktorin
9b08f8c56f
GH-126910: Revert "Make _Py_get_machine_stack_pointer return the stack pointer ( #147945 )" (GH-147994)
...
Revert "GH-126910: Make `_Py_get_machine_stack_pointer` return the stack pointer (#147945 )"
This reverts commit 255026d9ee ,
which broke a tier-1 buildbot.
2026-04-02 16:53:09 +02:00
Ma Yukun
fc7a188fe7
gh-146613: Fix re-entrant use-after-free in itertools._grouper ( #147962 )
2026-04-02 19:04:58 +05:30
Victor Stinner
c1a4112c22
gh-147988: Initialize digits in long_alloc() in debug mode ( #147989 )
...
When Python is built in debug mode:
* long_alloc() now initializes digits with a pattern to detect usage of
uninitialized digits.
* _PyLong_CompactValue() now makes sure that the digit is zero when the
sign is zero.
* PyLongWriter_Finish() now raises SystemError if it detects uninitialized
digits
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2026-04-02 11:55:34 +00:00
Petr Viktorin
a86963b3e2
gh-146636: Py_mod_abi mandatory for modules created from slots array (GH-146855)
2026-04-02 13:54:21 +02:00
Victor Stinner
97babb8ef7
gh-143394: Skip pyrepl test_no_newline() basic REPL if readline is missing ( #147973 )
2026-04-02 13:45:59 +02:00
Russell Keith-Magee
7817651b21
gh-146444: Remove legacy iOS folder ( #147993 )
...
Remove legacy iOS folder.
2026-04-02 03:46:20 +00:00
Locked-chess-official
c32e264227
gh-146656: properly raise NotImplementedError instead of NotImplemented in test_discover ( #146661 )
...
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Filipe Laíns <filipe.lains@gmail.com>
2026-04-01 22:54:06 +00:00
Sergey B Kirpichev
b456cb25a9
gh-143050: Add helper _PyLong_InitTag() ( #147956 )
...
With this we can assume, that _PyLong_SetSignAndDigitCount() and
_PyLong_SetDigitCount() operate on non-immortal integers.
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-04-01 21:42:10 +00:00
Yongtao Huang
4810beddbf
gh-147960: Fix memory leak in crossinterp _tuple_shared() on alloc failure ( #147961 )
2026-04-01 18:34:55 +02:00
Peter Sutton
021ee7fd6a
Docs: Use !r in __repr__ example (gh-146273)
2026-04-01 11:16:36 -05:00
Mark Shannon
255026d9ee
GH-126910: Make _Py_get_machine_stack_pointer return the stack pointer ( #147945 )
...
* Make _Py_get_machine_stack_pointer return the stack pointer (or close to it), not the frame pointer
* Make ``_Py_ReachedRecursionLimit`` inline again
* Remove ``_Py_MakeRecCheck`` relacing its use with ``_Py_ReachedRecursionLimit``
* Move stack swtiching check into ``_Py_CheckRecursiveCall``
2026-04-01 17:15:13 +01:00
Hugo van Kemenade
9e5b838372
gh-146488: hash-pin check-html-ids action references ( #147968 )
2026-04-01 14:23:25 +00:00
konsti
03f3b9ade9
gh-146907: Clarify ABI compatibility between debug and release builds (GH-146925)
2026-04-01 16:17:56 +02:00
Petr Viktorin
2452324001
gh-146636: PEP 803: add Py_TARGET_ABI3T and .abi3t.so extension (GH-146637)
...
- Add Py_TARGET_ABI3T macro.
- Add ".abi3t.so" to importlib EXTENSION_SUFFIXES.
- Remove ".abi3.so" from importlib EXTENSION_SUFFIXES on Free Threading.
- Adjust tests
This is part of the implementation for PEP-803.
Detailed documentation to come later.
Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
2026-04-01 16:14:59 +02:00
Stan Ulbrych
08c5d3d423
gh-145000: Run check-html-ids.py in CI ( #145632 )
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2026-04-01 15:10:27 +02:00
Stan Ulbrych
07d5d72484
Increase dependabot interval to quarterly ( #147959 )
2026-04-01 12:46:57 +00:00
William Woodruff
a504c0a590
gh-146488: hash-pin all action references
...
Signed-off-by: William Woodruff <william@yossarian.net>
2026-04-01 12:46:19 +00:00
Victor Stinner
b38cfb7bca
gh-146479: Skip test_frame_pointer_unwind for gcc -O3 --enable-shared ( #147947 )
...
Skip the test if Python is built with --enable-shared and "gcc -O2"
or "gcc -O3".
2026-04-01 12:35:58 +02:00