]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Ken Jin [Sat, 18 Oct 2025 21:00:28 +0000 (22:00 +0100)]
Remove unused buffer
Ken Jin [Sat, 18 Oct 2025 20:59:06 +0000 (21:59 +0100)]
Whole test suite passing
Ken Jin [Sat, 18 Oct 2025 20:56:18 +0000 (21:56 +0100)]
Cleanup, bugfixes to sys trace
Ken Jin [Sat, 18 Oct 2025 20:20:12 +0000 (21:20 +0100)]
Separate the tracer out into its own file
Ken Jin [Sat, 18 Oct 2025 19:59:07 +0000 (20:59 +0100)]
fix tracing completely
Ken Jin [Sat, 18 Oct 2025 19:54:56 +0000 (20:54 +0100)]
Fix tracing
Ken Jin [Sat, 18 Oct 2025 19:13:19 +0000 (20:13 +0100)]
invalidate freed code/function objects used for global promotion
Ken Jin [Sat, 18 Oct 2025 00:13:28 +0000 (01:13 +0100)]
Restore the optimizer fully
Ken Jin [Fri, 17 Oct 2025 23:47:16 +0000 (00:47 +0100)]
fix a few tests and their exposed bugs
Ken Jin [Fri, 17 Oct 2025 17:22:59 +0000 (18:22 +0100)]
Turn off optimizer for real, trace through init
Ken Jin [Fri, 17 Oct 2025 17:17:42 +0000 (18:17 +0100)]
turn off optimizer again (for now)
Ken Jin [Fri, 17 Oct 2025 17:09:37 +0000 (18:09 +0100)]
Delete hello.gvz
Ken Jin [Fri, 17 Oct 2025 17:09:25 +0000 (18:09 +0100)]
Re-enable the optimizer
Ken Jin [Fri, 17 Oct 2025 16:21:57 +0000 (17:21 +0100)]
Properly record the predicted ops
Ken Jin [Fri, 17 Oct 2025 16:06:46 +0000 (17:06 +0100)]
fix bug with predicted stuff
Ken Jin [Fri, 17 Oct 2025 10:02:31 +0000 (11:02 +0100)]
patch the graphviz dump
Ken Jin [Fri, 17 Oct 2025 00:57:11 +0000 (01:57 +0100)]
Delete out.txt
Ken Jin [Fri, 17 Oct 2025 00:23:33 +0000 (01:23 +0100)]
comment out debugging
Ken Jin [Thu, 16 Oct 2025 23:24:54 +0000 (00:24 +0100)]
fix recursive tracing
Ken Jin [Thu, 16 Oct 2025 21:01:51 +0000 (22:01 +0100)]
cleanup a little
Ken Jin [Thu, 16 Oct 2025 20:59:01 +0000 (21:59 +0100)]
Just punt on large opargs for now
Ken Jin [Thu, 9 Oct 2025 19:54:43 +0000 (20:54 +0100)]
Fix handling of EXTENDED_ARG
Ken Jin [Thu, 9 Oct 2025 18:39:45 +0000 (19:39 +0100)]
Fix recursive tracing and dynamic exits
Ken Jin [Thu, 9 Oct 2025 17:18:55 +0000 (18:18 +0100)]
Handle recursive tracing and CALL_ALLOC_AND_ENTER_INIT
Ken Jin [Thu, 9 Oct 2025 14:14:16 +0000 (15:14 +0100)]
add back replaced, move jit tracing env var to
Ken Jin [Wed, 24 Sep 2025 19:34:23 +0000 (20:34 +0100)]
Fix bug where code/func get freed halfway
Ken Jin [Wed, 24 Sep 2025 18:21:20 +0000 (19:21 +0100)]
Track from JUMP_BACKWARD rather than FOR_ITER
Ken Jin [Wed, 24 Sep 2025 11:22:17 +0000 (12:22 +0100)]
fix non-sstandard C
Ken Jin [Wed, 24 Sep 2025 11:18:01 +0000 (12:18 +0100)]
fix branch prediction for real
Ken Jin [Wed, 24 Sep 2025 10:55:11 +0000 (11:55 +0100)]
fix branch tracing
Ken Jin [Wed, 24 Sep 2025 10:41:37 +0000 (11:41 +0100)]
Fix unsupported opcode bug, turn off optimizer again
Ken Jin [Tue, 23 Sep 2025 23:08:33 +0000 (00:08 +0100)]
Fix progress needed and warmup
Ken Jin [Tue, 23 Sep 2025 22:27:01 +0000 (23:27 +0100)]
Point to previous executor when side-exiting
Ken Jin [Tue, 23 Sep 2025 22:17:36 +0000 (23:17 +0100)]
fix problem with jumping labels
Ken Jin [Mon, 22 Sep 2025 23:07:13 +0000 (00:07 +0100)]
remove printf
Ken Jin [Mon, 22 Sep 2025 23:05:28 +0000 (00:05 +0100)]
Fix chain depth bug
Ken Jin [Mon, 22 Sep 2025 13:05:57 +0000 (14:05 +0100)]
Fix handling of EXTENDED_ARG
Ken Jin [Mon, 22 Sep 2025 11:27:52 +0000 (12:27 +0100)]
Fix dispatch_inlined
Ken Jin [Sun, 21 Sep 2025 18:36:54 +0000 (19:36 +0100)]
fix exception bug
Ken Jin [Sun, 21 Sep 2025 11:50:06 +0000 (12:50 +0100)]
Fix double-initialization
Ken Jin [Sun, 21 Sep 2025 11:29:43 +0000 (12:29 +0100)]
fix JIT + debug builds
Ken Jin [Sun, 21 Sep 2025 11:15:07 +0000 (12:15 +0100)]
Fix over-tracing bug
Ken Jin [Sun, 21 Sep 2025 10:23:50 +0000 (11:23 +0100)]
Fix ENTER_EXECUTOR bug
Ken Jin [Sat, 20 Sep 2025 22:55:09 +0000 (23:55 +0100)]
Fix handling of ENTER_EXECUTOR
Ken Jin [Sat, 20 Sep 2025 22:19:39 +0000 (23:19 +0100)]
Fix jump tracing
Ken Jin [Sat, 20 Sep 2025 21:17:47 +0000 (22:17 +0100)]
Fix exception tracing
Ken Jin [Sat, 20 Sep 2025 16:18:58 +0000 (17:18 +0100)]
fix jit build
Ken Jin [Sat, 20 Sep 2025 16:14:34 +0000 (17:14 +0100)]
Fully working bm_generators
Ken Jin [Fri, 19 Sep 2025 22:54:27 +0000 (23:54 +0100)]
fix a bug with specializzation
Ken Jin [Fri, 19 Sep 2025 21:44:30 +0000 (22:44 +0100)]
working python startup
Ken Jin [Fri, 19 Sep 2025 21:31:24 +0000 (22:31 +0100)]
refactor to translate on the go
Ken Jin [Fri, 19 Sep 2025 14:19:38 +0000 (15:19 +0100)]
WIP generators
Ken Jin [Thu, 18 Sep 2025 16:00:44 +0000 (17:00 +0100)]
Basic trace recording
Ken Jin [Thu, 18 Sep 2025 13:12:07 +0000 (21:12 +0800)]
gh-139109: Dynamic opcode targets (GH-139111)
Make opcode targets table dynamic
Victor Stinner [Thu, 18 Sep 2025 12:58:35 +0000 (13:58 +0100)]
gh-129813, PEP 782: Use PyBytesWriter in _sqlite (#138956)
Replace PyBytes_FromStringAndSize(NULL, size) with the new public
PyBytesWriter API.
Victor Stinner [Thu, 18 Sep 2025 12:33:07 +0000 (13:33 +0100)]
gh-135755: Make Py_TAIL_CALL_INTERP macro private (#138981)
Rename Py_TAIL_CALL_INTERP to _Py_TAIL_CALL_INTERP.
Peter Bierma [Thu, 18 Sep 2025 12:29:12 +0000 (08:29 -0400)]
gh-136003: Execute pre-finalization callbacks in a loop (GH-136004)
Victor Stinner [Thu, 18 Sep 2025 12:25:31 +0000 (13:25 +0100)]
gh-129813, PEP 782: Use PyBytesWriter in ssl.MemoryBIO (#139113)
Replace PyBytes_FromStringAndSize(NULL, size) and _PyBytes_Resize()
with the new public PyBytesWriter API.
Peter Bierma [Thu, 18 Sep 2025 12:10:41 +0000 (08:10 -0400)]
Document `Py_AddPendingCall()` change with subinterpreters in 3.12 (GH-139117)
Prior to 3.9, Py_AddPendingCall() would always run pending calls in the main interpreter, but then each interpreter got their own ceval state, and they were scheduled for any interpreter. In GH-104813, this was undone, so Py_AddPendingCall() would always schedule for the main interpreter.
Peter Bierma [Thu, 18 Sep 2025 11:17:51 +0000 (07:17 -0400)]
gh-135729: Store reference to globals in `Interpreter._decref` (GH-139104)
Petr Viktorin [Thu, 18 Sep 2025 11:08:44 +0000 (13:08 +0200)]
gh-138970: Adjust tests for pegen rule flags (#139107)
Peter Bierma [Thu, 18 Sep 2025 11:00:50 +0000 (07:00 -0400)]
gh-139098: Use multiphase initialization in `_testcapi` (GH-139102)
Use multiphase initialization in the _testcapi module to allow loading in subinterpreters. The isolation here isn't perfect as there's still some use of globals, but _testcapi should generally work in other interpreters.
Stan Ulbrych [Thu, 18 Sep 2025 10:47:42 +0000 (11:47 +0100)]
gh-138998: `expat/refresh.sh`: Fail if Step 3 is not completed (GH-139049)
Donghee Na [Thu, 18 Sep 2025 10:46:03 +0000 (11:46 +0100)]
gh-137838: Add CI for no-opt JIT (#139081)
* gh-137838: Add CI for no-opt JIT
* nit
Malcolm Smith [Thu, 18 Sep 2025 10:41:21 +0000 (11:41 +0100)]
Make Android streams respect the unbuffered (`-u`) option (#138806)
Android pipes stdout/stderr to the log, which means every write to the log
becomes a separate log line. As a result, most practical uses of stdout/stderr
should be buffered; but it doesn't hurt to preserve unbuffered handling in case
it's useful.
Cody Maloney [Thu, 18 Sep 2025 10:02:29 +0000 (03:02 -0700)]
gh-138720: Make Buffered closed check match flush (GH-138724)
In `_io__Buffered_flush_impl` the macro `CHECK_CLOSED` is used to check
the `buffered*` is in a good state to be flushed. That differs slightly
from `buffered_closed`.
In some cases, that difference would result in `close()` thinking the
file needed to be flushed and closed while `flush()` thought the file
was already closed.
This could happen during GC and would result in an unraisable exception.
Victor Stinner [Thu, 18 Sep 2025 09:52:16 +0000 (10:52 +0100)]
gh-129813, PEP 782: Optimize byteswriter_resize() (#139101)
There is no need to copy the small_buffer in PyBytesWriter_Create().
Erlend E. Aasland [Thu, 18 Sep 2025 09:25:01 +0000 (10:25 +0100)]
gh-116943: Ensure makesetup does not choke on missing EOL in Setup.* files (#139100)
Victor Stinner [Thu, 18 Sep 2025 09:20:56 +0000 (10:20 +0100)]
gh-129813, PEP 782: Use PyBytesWriter in _socket (#139097)
Replace PyBytes_FromStringAndSize(NULL, size) and _PyBytes_Resize()
with the new public PyBytesWriter API.
Mark Shannon [Thu, 18 Sep 2025 09:09:59 +0000 (10:09 +0100)]
GH-138378: Move globals-to-consts pass into main optimizer pass (GH-138379)
Rafael Fontenelle [Thu, 18 Sep 2025 09:01:09 +0000 (06:01 -0300)]
Remove unmatched closing parenthesis (GH-139082)
Raymond Hettinger [Thu, 18 Sep 2025 07:05:27 +0000 (02:05 -0500)]
Revert gh-139075. The sumprod fix needs more work. (gh-139092)
Oleksandr Kravets [Thu, 18 Sep 2025 05:52:46 +0000 (01:52 -0400)]
Remove unnecessary slice in heapq.py (gh-139087)
Pablo Galindo Salgado [Thu, 18 Sep 2025 01:17:04 +0000 (02:17 +0100)]
gh-138970: Add general metadata system to the peg generator (#138971)
Raymond Hettinger [Wed, 17 Sep 2025 21:50:15 +0000 (16:50 -0500)]
gh-139074: Fix missing high precision case in sumprod() (gh-139075)
Denis Sergeev [Wed, 17 Sep 2025 21:45:52 +0000 (00:45 +0300)]
gh-138813: Fix mutable default kwargs={} in multiprocessing BaseProcess and DummyProcess to use None (GH-138814)
* gh-138813: Default `BaseProcess` `kwargs` to `None` (#138814)
Set `BaseProcess.__init__(..., kwargs=None)` and initialize `kwargs` with
`dict(kwargs) if kwargs else {}`. This avoids a shared mutable default and
matches threading.Thread behavior.
Co-authored-by: Dmitrii Chuprov <cheese@altlinux.org>
* DummyProcess kwargs=None (which threading.Thread accepts properly)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Sergey Miryanov [Wed, 17 Sep 2025 20:25:24 +0000 (13:25 -0700)]
GH-138355: Remove trash_delete_later from _gc_runtime_state (#138767)
Remove trash_delete_later and trash_delete_nesting from _gc_runtime_state.
Donghee Na [Wed, 17 Sep 2025 17:50:16 +0000 (18:50 +0100)]
gh-137838: Move _PyUOpInstruction buffer to PyInterpreterState (gh-138918)
Stefan Tatschner [Wed, 17 Sep 2025 17:18:04 +0000 (19:18 +0200)]
gh-86819: Add ISO-TP CAN socket constants (#23794)
Co-authored-by: Stefan Tatschner <stefan@rumpelsepp.org>
Co-authored-by: Patrick Menschel <menschel.p@posteo.de>
Dino Viehland [Wed, 17 Sep 2025 16:52:56 +0000 (17:52 +0100)]
gh-138714: Don't assume next block has instructions when propagating line numbers (#138770)
Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Adam Turner [Wed, 17 Sep 2025 16:35:00 +0000 (17:35 +0100)]
GH-137630: Convert ``_interpqueues`` to use Argument Clinic (#137685)
Moshe Kaplan [Wed, 17 Sep 2025 16:24:20 +0000 (12:24 -0400)]
GH-139067: Add example for `argparse`'s `append` action (#131389)
Victor Stinner [Wed, 17 Sep 2025 15:58:32 +0000 (16:58 +0100)]
gh-129813, PEP 782: Set invalid bytes in PyBytesWriter (#139054)
Initialize the buffer with 0xFF byte pattern when creating a writer
object, but also when resizing/growing the writer.
Victor Stinner [Wed, 17 Sep 2025 15:55:30 +0000 (16:55 +0100)]
gh-129813, PEP 782: Use PyBytesWriter in _testclinic (#139048)
Replace PyBytes_FromStringAndSize(NULL, size) with the new public
PyBytesWriter API.
chiri [Wed, 17 Sep 2025 15:51:14 +0000 (18:51 +0300)]
gh-138736: Fix sqlite3.Connection.blobopen 'row' parameter type and naming (#138738)
The 'row' parameter represents a ROWID. Clarify this in docs and docstrings.
Victor Stinner [Wed, 17 Sep 2025 15:44:13 +0000 (16:44 +0100)]
gh-129813, PEP 782: Use PyBytesWriter in _multiprocessing (#139047)
Replace PyBytes_FromStringAndSize(NULL, size) and _PyBytes_Resize()
with the new public PyBytesWriter API.
Change also 'read' variable type from int to Py_ssize_t.
Victor Stinner [Wed, 17 Sep 2025 15:43:30 +0000 (16:43 +0100)]
gh-129813, PEP 782: Use PyBytesWriter in _Py_bytes_maketrans() (#139044)
Replace PyBytes_FromStringAndSize(NULL, size) with the new public
PyBytesWriter API.
Hans Then [Wed, 17 Sep 2025 15:25:17 +0000 (17:25 +0200)]
gh-132558: Improve `argparse` docs on combining `type` and `choices` (#133827)
Co-authored-by: Savannah Bailey <savannahostrowski@gmail.com>
Adam Turner [Wed, 17 Sep 2025 15:25:04 +0000 (16:25 +0100)]
GH-92266: Remove embedded tabs from ``c-analyzer/cpython/_parser.py`` (#137622)
Paul Ganssle [Wed, 17 Sep 2025 15:17:27 +0000 (16:17 +0100)]
Add pganssle to CODEOWNERS for ``zoneinfo`` (#139032)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
PrinceNaroliya [Wed, 17 Sep 2025 15:15:57 +0000 (20:45 +0530)]
gh-137988: Fix const description in argparse.add_argument() docs (#138315)
Co-authored-by: Savannah Bailey <savannahostrowski@gmail.com>
Peter Bierma [Wed, 17 Sep 2025 15:14:19 +0000 (11:14 -0400)]
gh-128639: Don't assume one thread in subinterpreter finalization with fixed daemon thread support (GH-134606)
This reapplies GH-128640.
Dino Viehland [Wed, 17 Sep 2025 15:04:02 +0000 (16:04 +0100)]
gh-131776: Expose functions called from the interpreter loop via PyAPI_FUNC (#134242)
Aniket [Wed, 17 Sep 2025 14:56:21 +0000 (20:26 +0530)]
gh-138952: Document platform.machine() output casing inconsistency across platforms (#138962)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Rajhans Jadhao [Wed, 17 Sep 2025 14:51:20 +0000 (20:21 +0530)]
gh-129368: In PyRun C API docs, clarify what a "start token" is (#129935)
Hood Chatham [Wed, 17 Sep 2025 14:33:55 +0000 (16:33 +0200)]
gh-128627: Use __builtin_wasm_test_function_pointer_signature for Emscripten trampoline (#137470)
With https://github.com/llvm/llvm-project/pull/150201 being merged, there is
now a better way to generate the Emscripten trampoline, instead of including
hand-generated binary WASM content. Requires Emscripten 4.0.12.
PrinceNaroliya [Wed, 17 Sep 2025 13:45:34 +0000 (19:15 +0530)]
gh-139006: Doc: Clarify html.escape function description (#139016)
Doc: Clarify html.escape function description (GH-139006)
Petr Viktorin [Wed, 17 Sep 2025 13:40:35 +0000 (15:40 +0200)]
gh-107862: Add property-based round-trip tests for base64 (#119406)
* Add property-based tests to test_base64
* Allow multiple positional arguments in @hypothesis.example stub
* Simplify the altchars strategy
adang1345 [Wed, 17 Sep 2025 13:32:52 +0000 (09:32 -0400)]
gh-138896: Fix error installing C runtime on non-updated Windows machines (GH-138932)
Bénédikt Tran [Wed, 17 Sep 2025 13:31:51 +0000 (15:31 +0200)]
gh-76760: test that `uuid.uuid1()` sets the version field (#139033)