Commit graph

130826 commits

Author SHA1 Message Date
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
Serhiy Storchaka
473d2a35ce
gh-147944: Increase range of bytes_per_sep (GH-147946)
Accepted range for the bytes_per_sep argument of bytes.hex(),
bytearray.hex(), memoryview.hex(), and binascii.b2a_hex()
is now increased, so passing sys.maxsize and -sys.maxsize is now
valid.
2026-04-01 08:33:30 +00:00
Serhiy Storchaka
42825e6387
gh-146431: Add the wrapcol and ignorechars parameters for more Base XX codec (GH-146434)
Add the wrapcol parameter to base64 functions b16encode(), b32encode(),
b32hexencode(), b85encode() and z85encode(), and binascii functions
b2a_base32() and b2a_base85().

Add the ignorechars parameter to base64 functions b16decode(), b32decode(),
b32hexdecode(), b85decode() and z85decode(), and binascii functions
a2b_hex(), unhexlify(), a2b_base32() and a2b_base85().
2026-04-01 10:48:50 +03:00
dependabot[bot]
4497cf3aed
build(deps): bump qs from 6.14.0 to 6.15.0 in /Platforms/emscripten/browser_test (#146048)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-01 09:43:58 +03:00
Boy Steven
9e1f1644cd
Docs: fill in descriptor C API docs (GH-146644) 2026-03-31 17:52:11 -04:00
Stan Ulbrych
62a6e898e0
gh-147856: Allow the 'count' argument of bytes.replace() to be a keyword (#147943) 2026-03-31 19:27:52 +02:00
Ken Jin
362145c20e
gh-139109: Document the trace recording interpreter in internaldocs (GH-146110) 2026-03-31 23:25:54 +08:00
Sergey B Kirpichev
db5936c5b8
gh-143050: Correct PyLong_FromString() to use _PyLong_Negate() (#145901)
The long_from_string_base() might return a small integer, when the
_pylong.py is used to do conversion.  Hence, we must be careful here to
not smash it "small int" bit by using the _PyLong_FlipSign().

Co-authored-by: Victor Stinner <vstinner@python.org>
2026-03-31 13:17:49 +00:00
Hugo van Kemenade
829e4d0b14
gh-141510: Support frozendict in plistlib (#145590)
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-03-31 15:45:23 +03:00
Pieter Eendebak
67354b2925
gh-145563: Add thread-safety annotation for PyCapsule C-API (#146612) 2026-03-31 16:32:35 +05:30
Thomas Kowalski
b4fac15613
gh-145458: use self.skip_idle consistently in the tachyon profiler (#145459) 2026-03-31 09:57:07 +01:00
sunmy2019
bbf7fb2c15
gh-146615: Fix format specifiers in Objects/ directory (GH-146620) 2026-03-31 10:59:48 +03:00
sunmy2019
dcb260eff2
gh-146615: Fix format specifiers in Python/ directory (GH-146619) 2026-03-31 10:59:17 +03:00