]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Ken Jin [Wed, 29 Oct 2025 14:51:33 +0000 (14:51 +0000)]
make windows happy
Ken Jin [Wed, 29 Oct 2025 14:45:05 +0000 (14:45 +0000)]
Add _GUARD_IP autogenerator
Ken Jin [Tue, 28 Oct 2025 22:13:19 +0000 (22:13 +0000)]
Fix INTERPRETER_EXIT tracing
Ken Jin [Tue, 28 Oct 2025 11:11:39 +0000 (11:11 +0000)]
remove faulty assertion
Ken Jin [Tue, 28 Oct 2025 11:10:41 +0000 (11:10 +0000)]
fix backoff for previous exits
Ken Jin [Tue, 28 Oct 2025 10:39:33 +0000 (10:39 +0000)]
fix test
Ken Jin [Tue, 28 Oct 2025 10:37:51 +0000 (10:37 +0000)]
properly restore exponential backoffs
Ken Jin [Tue, 28 Oct 2025 00:12:59 +0000 (00:12 +0000)]
fix backoff counters
Ken Jin [Mon, 27 Oct 2025 22:27:46 +0000 (22:27 +0000)]
Sink LOAD_IP into guards
Ken Jin [Mon, 27 Oct 2025 21:26:42 +0000 (21:26 +0000)]
Move unpredictable jump detection to the cases generator
Ken Jin [Mon, 27 Oct 2025 18:30:18 +0000 (18:30 +0000)]
merge from upstream
Ken Jin [Mon, 27 Oct 2025 18:27:32 +0000 (18:27 +0000)]
Merge remote-tracking branch 'upstream/main' into tracing_jit
Ken Jin [Mon, 27 Oct 2025 18:26:47 +0000 (02:26 +0800)]
gh-140104: Set next_instr properly in the JIT during exceptions (GH-140233)
Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
Cody Maloney [Mon, 27 Oct 2025 18:06:46 +0000 (11:06 -0700)]
gh-140607: Validate returned byte count in RawIOBase.read (#140611)
While `RawIOBase.readinto` should return a count of bytes between 0 and
the length of the given buffer, it is not required to. Add validation
inside RawIOBase.read() that the returned byte count is valid.
Co-authored-by: Shamil <ashm.tech@proton.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
Victor Stinner [Mon, 27 Oct 2025 17:41:18 +0000 (18:41 +0100)]
gh-125434: Display thread name in faulthandler on Windows (#140675)
Ken Jin [Mon, 27 Oct 2025 16:51:07 +0000 (16:51 +0000)]
fix backoff
alm [Mon, 27 Oct 2025 16:37:37 +0000 (18:37 +0200)]
gh-138050: [WIP] JIT - Streamline MAKE_WARM - move coldness check to executor creation (GH-138240)
Stan Ulbrych [Mon, 27 Oct 2025 15:09:25 +0000 (15:09 +0000)]
gh-79922: Remove always false test skips in `test_time` (#136202)
Ken Jin [Mon, 27 Oct 2025 14:22:05 +0000 (14:22 +0000)]
Stop recursive traces
Alper [Mon, 27 Oct 2025 13:52:30 +0000 (06:52 -0700)]
gh-116738: Use PyMutex for bz2 module (gh-140555)
The methods are already wrapped with a lock, which makes them thread-safe in
free-threaded build. This replaces `PyThread_acquire_lock` with `PyMutex` and
removes some macros and allocation handling code.
Also add a test for free-threading to ensure we aren't getting data races and
that the locking is working.
Itamar Oren [Mon, 27 Oct 2025 13:18:58 +0000 (06:18 -0700)]
gh-140641: Break out of inittab search on match (GH-140642)
Victor Stinner [Mon, 27 Oct 2025 11:59:56 +0000 (12:59 +0100)]
gh-140487: Fix Py_RETURN_NOTIMPLEMENTED in limited C API 3.11 (GH-140636)
Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE have already been
fixed by commit
9258f3da9175134d03f2c8c7c7eed223802ad945 (issue gh-134989).
Ken Jin [Mon, 27 Oct 2025 10:44:10 +0000 (10:44 +0000)]
Differentiate the two dependencies
Petr Viktorin [Mon, 27 Oct 2025 10:39:42 +0000 (11:39 +0100)]
gh-134160: Add more comments for the xxlimited module (GH-140214)
Ken Jin [Mon, 27 Oct 2025 10:03:47 +0000 (10:03 +0000)]
fix cg builds, invalidate executors on function deallocation
Ken Jin [Mon, 27 Oct 2025 09:57:14 +0000 (09:57 +0000)]
fix some formatting
Ken Jin [Mon, 27 Oct 2025 09:56:48 +0000 (09:56 +0000)]
Change RECORD_PREVIOUS_INST to a label to save an opcode
Ken Jin [Mon, 27 Oct 2025 09:46:37 +0000 (09:46 +0000)]
Address Kumar's review
RayXu [Mon, 27 Oct 2025 09:43:24 +0000 (17:43 +0800)]
Docs: Replace "encoder" with "decoder" in `Doc/c-api/codec.rst` (#140613)
Petr Viktorin [Mon, 27 Oct 2025 09:09:22 +0000 (10:09 +0100)]
gh-140633: AppleFrameworkLoader: Ignore AttributeError when setting __file__ (GH-140635)
Shamil [Mon, 27 Oct 2025 08:55:57 +0000 (11:55 +0300)]
Remove dead stores to 'size' in UTF-8 decoder (unicodeobject.c) (#140637)
da-woods [Mon, 27 Oct 2025 04:58:30 +0000 (04:58 +0000)]
Fix typo in TLS docs (#140640)
Brian Schubert [Sun, 26 Oct 2025 22:35:21 +0000 (18:35 -0400)]
gh-138944: Fix `SyntaxError` message for invalid syntax following valid import-as statement (#138945)
Ken Jin [Sun, 26 Oct 2025 20:55:44 +0000 (20:55 +0000)]
Address Chris' review
Ken Jin [Sun, 26 Oct 2025 17:52:10 +0000 (17:52 +0000)]
address review
yihong [Sun, 26 Oct 2025 17:37:31 +0000 (01:37 +0800)]
gh-140609: delete unused `_stdlib_enums` in enum.py (#140618)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Bartosz Sławecki [Sun, 26 Oct 2025 14:48:03 +0000 (15:48 +0100)]
gh-137568: Ignore startup file in `test_dumb_terminal_exits_cleanly` (GH-140295)
Ken Jin [Sun, 26 Oct 2025 14:45:10 +0000 (14:45 +0000)]
fix up gitattributes
Sebastian Pipping [Sun, 26 Oct 2025 13:45:32 +0000 (14:45 +0100)]
gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat` (#140602)
Ensure that the memory allocated for the content model
passed to `my_ElementDeclHandler` is freed in all error
paths.
Bénédikt Tran [Sun, 26 Oct 2025 12:07:31 +0000 (13:07 +0100)]
gh-133346: add tests for `_colorize.Theme` (#139687)
Bénédikt Tran [Sun, 26 Oct 2025 11:33:57 +0000 (12:33 +0100)]
gh-133346: make `_colorize.Argparse` kw-only constructible (#140620)
Other themes are kw-only constructible.
Stan Ulbrych [Sun, 26 Oct 2025 11:01:04 +0000 (11:01 +0000)]
gh-76007: Deprecate `__version__` attribute in `decimal` (#140302)
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
RayXu [Sun, 26 Oct 2025 09:39:32 +0000 (17:39 +0800)]
Docs: Fix a grammatical error in `Doc/c-api/codec.rst` (#140612)
Ken Jin [Sun, 26 Oct 2025 01:00:17 +0000 (01:00 +0000)]
Fix a test
Ken Jin [Sat, 25 Oct 2025 23:57:30 +0000 (00:57 +0100)]
fix no-opt JIT
Ken Jin [Sat, 25 Oct 2025 23:56:37 +0000 (00:56 +0100)]
Change the backoffs to fix nqueens
Zachary Ware [Sat, 25 Oct 2025 23:29:46 +0000 (18:29 -0500)]
gh-124694: Add versionadded note to InterpreterPoolExecutor (#140468)
Ken Jin [Sat, 25 Oct 2025 22:49:49 +0000 (23:49 +0100)]
up the trace length
Ken Jin [Sat, 25 Oct 2025 18:04:29 +0000 (19:04 +0100)]
Fix a bug with ENTER_EXECUTOR linking
Ken Jin [Sat, 25 Oct 2025 17:47:10 +0000 (18:47 +0100)]
fix
Ken Jin [Sat, 25 Oct 2025 17:45:33 +0000 (18:45 +0100)]
Support underflow and yield value in the optimizer
RayXu [Sat, 25 Oct 2025 15:34:45 +0000 (23:34 +0800)]
Fix typo in `Doc/c-api/code.rst` (#140586)
Shamil [Sat, 25 Oct 2025 14:59:12 +0000 (17:59 +0300)]
Remove unreachable break statements in _ctypes_test.c (#140585)
Kumar Aditya [Sat, 25 Oct 2025 14:53:26 +0000 (20:23 +0530)]
gh-140544: use faster `_PyInterpreterState_GET` for type lock (#140584)
Kumar Aditya [Sat, 25 Oct 2025 14:26:07 +0000 (19:56 +0530)]
gh-140544: store pointer to interpreter state as a thread local for fast access (#140573)
RayXu [Sat, 25 Oct 2025 13:54:52 +0000 (21:54 +0800)]
Docs: Fix a grammatical error in `Doc/c-api/capsule.rst` (GH-140577)
"who" -> "which"
Mikhail Efimov [Fri, 24 Oct 2025 19:53:00 +0000 (22:53 +0300)]
Add missing NEWS entry for gh-140517 (GH-140560)
Ken Jin [Fri, 24 Oct 2025 19:22:16 +0000 (20:22 +0100)]
fix windows builds
Ken Jin [Fri, 24 Oct 2025 19:20:23 +0000 (20:20 +0100)]
Fix the counters
Tapeline [Fri, 24 Oct 2025 19:12:49 +0000 (00:12 +0500)]
gh-136327: Fix inconsistent ``TypeError`` messages regarding invalid values after * and ** (#136395)
Ken Jin [Fri, 24 Oct 2025 19:04:10 +0000 (20:04 +0100)]
Move specializing ddetection to specialize inst
Ken Jin [Fri, 24 Oct 2025 18:42:15 +0000 (19:42 +0100)]
make mypy happy
Ken Jin [Fri, 24 Oct 2025 18:27:16 +0000 (19:27 +0100)]
Remove TIER2_STORE_IP
Ken Jin [Fri, 24 Oct 2025 18:07:37 +0000 (19:07 +0100)]
Emit RECORD_DYNAMIC_JUMP_TAKEN automatically
Barry Warsaw [Fri, 24 Oct 2025 18:07:08 +0000 (11:07 -0700)]
gh-140482: Preserve and restore `stty echo` as a test environment (#140519)
gh-140482: Restore `stty echo` as a test environment
Miša Jakovljević [Fri, 24 Oct 2025 16:04:43 +0000 (18:04 +0200)]
gh-140463: Fix typo in xmlrpc.client documentation (GH-140552)
Fix typo in xmlrpc.client documentation
Mikhail Efimov [Fri, 24 Oct 2025 15:59:16 +0000 (18:59 +0300)]
gh-140517: fix leak in `map_next` in strict mode (#140543)
Ken Jin [Fri, 24 Oct 2025 15:40:00 +0000 (16:40 +0100)]
Fix FT
Kumar Aditya [Fri, 24 Oct 2025 14:32:17 +0000 (20:02 +0530)]
gh-140414: add fastpath for current running loop in `asyncio.all_tasks` (#140542)
Optimize `asyncio.all_tasks()` for the common case where the event loop is running in the current thread by avoiding stop-the-world pauses and locking.
This optimization is already present for `asyncio.current_task()` so we do the same for `asyncio.all_tasks()`.
Kumar Aditya [Fri, 24 Oct 2025 14:23:06 +0000 (19:53 +0530)]
gh-140544: cleanup `HAVE_THREAD_LOCAL` checks in pystate.c (#140547)
Ken Jin [Fri, 24 Oct 2025 13:36:38 +0000 (14:36 +0100)]
disable tracing on FT
Petr Viktorin [Fri, 24 Oct 2025 13:28:48 +0000 (15:28 +0200)]
Document that PyModule_GetDef can return NULL with or without setting an exception (GH-140529)
RayXu [Fri, 24 Oct 2025 12:17:52 +0000 (20:17 +0800)]
Docs: Fix a grammatical error in `Doc/c-api/arg.rst` (GH-140525)
"have" -> "has"
Jiseok CHOI [Fri, 24 Oct 2025 11:20:09 +0000 (20:20 +0900)]
gh-136535: Tests: Correct `Py_TPFLAGS_MANAGED_DICT` in `test_class.py` (gh-136538)
Ken Jin [Fri, 24 Oct 2025 10:36:32 +0000 (11:36 +0100)]
fix test
Ken Jin [Fri, 24 Oct 2025 10:27:20 +0000 (11:27 +0100)]
specialization and deopt fixes
Ken Jin [Fri, 24 Oct 2025 09:39:59 +0000 (10:39 +0100)]
Merge remote-tracking branch 'upstream/main' into tracing_jit
sobolevn [Fri, 24 Oct 2025 09:20:54 +0000 (12:20 +0300)]
gh-138857: Improve error message for `case` outside of `match` (#138858)
* gh-138857: Improve error message for `case` outside of `match`
---------
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Ken Jin [Fri, 24 Oct 2025 08:06:08 +0000 (09:06 +0100)]
fix pystats jit build
Ken Jin [Fri, 24 Oct 2025 08:01:07 +0000 (09:01 +0100)]
fix build on non-JIT
Tan Long [Fri, 24 Oct 2025 06:26:36 +0000 (14:26 +0800)]
gh-133390: sqlite3 CLI completion for tables, columns, indices, triggers, views, functions, schemata (GH-136101)
Ken Jin [Fri, 24 Oct 2025 00:04:12 +0000 (01:04 +0100)]
regen frozenmain
Ken Jin [Thu, 23 Oct 2025 23:52:17 +0000 (00:52 +0100)]
fix JIT builds
Ken Jin [Thu, 23 Oct 2025 23:49:18 +0000 (00:49 +0100)]
fix a tracing bug, ifdef out code
Ken Jin [Thu, 23 Oct 2025 23:26:49 +0000 (00:26 +0100)]
Address review of macros
Ken Jin [Thu, 23 Oct 2025 23:20:58 +0000 (00:20 +0100)]
Fix ifdefs
Ken Jin [Thu, 23 Oct 2025 23:13:48 +0000 (00:13 +0100)]
Rewrite the tracing JIT to use a common opcode handler
Victor Stinner [Thu, 23 Oct 2025 20:35:17 +0000 (22:35 +0200)]
gh-83714: Set os.statx().stx_mode to None if missing from stx_mask (#140484)
* Set stx_mode to None if STATX_TYPE|STATX_MODE is missing from
stx_mask.
* Enhance os.statx() tests.
* statx_result structure: remove atime_sec, btime_sec, ctime_sec and
mtime_sec members. Compute them on demand when stx_atime,
stx_btime, stx_ctime and stx_mtime are read.
* Doc: fix statx members sorting.
Ken Jin [Thu, 23 Oct 2025 18:04:16 +0000 (19:04 +0100)]
add comment to CI
Ken Jin [Thu, 23 Oct 2025 18:03:20 +0000 (19:03 +0100)]
debug changes
Abhishek Tiwari [Thu, 23 Oct 2025 17:05:12 +0000 (22:35 +0530)]
gh-140443: Use `fma` in `loghelper` to improve accuracy of log for very large integers (#140469)
* gh-140443:use fma in loghelper to improve accuracy of log for very large integers
Use fused multiply-add in log_helper() for huge ints.
Saving a rounding here is remarkably effective. Across some millions
of randomized test cases with ints up to a billion bits, on Windows
and using log10, the ULP error distribution was dramatically
flattened, and its range was nearly cut in half. In fact, the largest
error Tim saw was under 0.6 ULP.
---------
Co-authored-by: abhi210 <27881020+Abhi210@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Mikhail Efimov [Thu, 23 Oct 2025 16:00:23 +0000 (19:00 +0300)]
gh-135125: Fix Py_STACKREF_DEBUG build (GH-139475)
* Use the same pattern of refcounting for stackrefs as in production build
Mark Shannon [Thu, 23 Oct 2025 15:45:57 +0000 (16:45 +0100)]
GH-135904: JIT compiler: Support 19 bit branch instructions on AArch64 for Mach-O. (GH-140453)
* Insert labels into assembly for custom relocation during stencil creation.
Stan Ulbrych [Thu, 23 Oct 2025 15:35:21 +0000 (16:35 +0100)]
gh-140471: Fix buffer overflow in AST node initialization with malformed `_fields` (#140506)
Bartosz Sławecki [Thu, 23 Oct 2025 15:23:23 +0000 (17:23 +0200)]
gh-140438: properly run the asyncio REPL tests (#140298)
Sam Gross [Thu, 23 Oct 2025 14:18:13 +0000 (10:18 -0400)]
gh-140431: Fix GC crash due to partially initialized coroutines (gh-140470)
The `make_gen()` function creates and tracks generator/coro objects, but
doesn't fully initialize all the fields. At a minimum, we need to
initialize all the fields that may be accessed by gen_traverse because
the call to `compute_cr_origin()` can trigger a GC.
George Ogden [Thu, 23 Oct 2025 13:56:05 +0000 (14:56 +0100)]
gh-138774: use `value` to `ast.unparse` code when `str` is `None` in `ast.Interpolation` (#139415)
Maurycy Pawłowski-Wieroński [Thu, 23 Oct 2025 12:28:29 +0000 (14:28 +0200)]
gh-137627: Make `csv.Sniffer.sniff()` delimiter detection 1.6x faster (#137628)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Stan Ulbrych [Thu, 23 Oct 2025 09:49:27 +0000 (10:49 +0100)]
gh-140474: Fix memory leak in `array.array` (GH-140478)
Ken Jin [Thu, 23 Oct 2025 01:02:55 +0000 (02:02 +0100)]
fix test