]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Ken Jin [Wed, 12 Nov 2025 13:30:33 +0000 (13:30 +0000)]
fix JIT builds
Ken Jin [Tue, 11 Nov 2025 15:12:12 +0000 (15:12 +0000)]
remove CALL_LIST_APPEND fix
Ken Jin [Tue, 11 Nov 2025 15:10:46 +0000 (15:10 +0000)]
Restore a test, address review
Ken Jin [Mon, 10 Nov 2025 23:31:41 +0000 (23:31 +0000)]
rename jit_state to jit_tracer_state
Ken Jin [Mon, 10 Nov 2025 23:23:50 +0000 (23:23 +0000)]
Remove specialize_counter
Ken Jin [Mon, 10 Nov 2025 17:49:35 +0000 (17:49 +0000)]
fix TC
Ken Jin [Mon, 10 Nov 2025 17:02:27 +0000 (17:02 +0000)]
Clean up labels
Ken Jin [Sat, 8 Nov 2025 16:49:31 +0000 (16:49 +0000)]
Some fixups
Ken Jin [Sat, 8 Nov 2025 02:20:14 +0000 (02:20 +0000)]
Fix a few perf regressions due to tracing thru optimizer
Ken Jin [Sat, 8 Nov 2025 01:09:25 +0000 (01:09 +0000)]
Support __init__ in the optimizer
Ken Jin [Fri, 7 Nov 2025 23:05:59 +0000 (23:05 +0000)]
Update generated_cases.c.h
Ken Jin [Fri, 7 Nov 2025 22:59:14 +0000 (22:59 +0000)]
Update optimizer.c
Ken Jin [Fri, 7 Nov 2025 22:02:00 +0000 (22:02 +0000)]
Move to thread state
Ken Jin [Fri, 7 Nov 2025 21:11:24 +0000 (21:11 +0000)]
make mypy happy
Ken Jin [Fri, 7 Nov 2025 21:08:12 +0000 (21:08 +0000)]
fix windows
Ken Jin [Fri, 7 Nov 2025 21:05:21 +0000 (21:05 +0000)]
reduce diff
Ken Jin [Fri, 7 Nov 2025 20:58:37 +0000 (20:58 +0000)]
massive refactoring 2
Ken Jin [Fri, 7 Nov 2025 20:47:52 +0000 (20:47 +0000)]
massive refactoring of the struct
Ken Jin [Fri, 7 Nov 2025 20:34:49 +0000 (20:34 +0000)]
Cleanup cases generator
Ken Jin [Fri, 7 Nov 2025 20:21:54 +0000 (20:21 +0000)]
remove nedsguardip table
Ken Jin [Fri, 7 Nov 2025 20:17:32 +0000 (20:17 +0000)]
Partially address review
Ken Jin [Thu, 6 Nov 2025 22:02:45 +0000 (22:02 +0000)]
cleanup
Ken Jin [Thu, 6 Nov 2025 21:41:12 +0000 (21:41 +0000)]
fix a bug where we point FOR_ITER_TIER_TWO
Ken Jin [Thu, 6 Nov 2025 20:45:17 +0000 (20:45 +0000)]
move code to correcdt places
Ken Jin [Thu, 6 Nov 2025 20:33:05 +0000 (20:33 +0000)]
move strange control flow detection up
Ken Jin [Thu, 6 Nov 2025 20:31:24 +0000 (20:31 +0000)]
special case first instr properly
Ken Jin [Thu, 6 Nov 2025 19:22:50 +0000 (19:22 +0000)]
lint
Ken Jin [Thu, 6 Nov 2025 08:48:24 +0000 (08:48 +0000)]
more future-proofing
Ken Jin [Thu, 6 Nov 2025 08:44:03 +0000 (08:44 +0000)]
fix jit builds
Ken Jin [Thu, 6 Nov 2025 08:29:11 +0000 (08:29 +0000)]
rework ad-hoc generation of guards
Ken Jin [Thu, 6 Nov 2025 07:52:05 +0000 (07:52 +0000)]
reduce diff
Ken Jin [Thu, 6 Nov 2025 00:14:14 +0000 (00:14 +0000)]
Remove _DYNAMIC_EXIT jumping for now.
Ken Jin [Wed, 5 Nov 2025 22:56:21 +0000 (22:56 +0000)]
fix assertion
Ken Jin [Wed, 5 Nov 2025 22:34:24 +0000 (22:34 +0000)]
Don't limit control-flow exits
Ken Jin [Wed, 5 Nov 2025 21:54:05 +0000 (21:54 +0000)]
remove dynamic tracing for now
Ken Jin [Wed, 5 Nov 2025 21:11:53 +0000 (21:11 +0000)]
Make sure we don't reenter executors when guard exec ip fails
Ken Jin [Wed, 5 Nov 2025 18:53:30 +0000 (18:53 +0000)]
remove two chain depths
Ken Jin [Wed, 5 Nov 2025 18:48:37 +0000 (18:48 +0000)]
Use a different chain depth for dynamic exits
Ken Jin [Wed, 5 Nov 2025 18:27:51 +0000 (18:27 +0000)]
fix frame owned by interp
Ken Jin [Sat, 1 Nov 2025 15:36:10 +0000 (15:36 +0000)]
cold dynamic executors
Ken Jin [Wed, 5 Nov 2025 11:01:53 +0000 (11:01 +0000)]
Revert "Fix a bug in not setting executors"
This reverts commit
f52668891a1eea1e564bb1968613ee0742ca73eb .
Ken Jin [Wed, 5 Nov 2025 10:58:04 +0000 (10:58 +0000)]
Fix a bug in not setting executors
Ken Jin [Sat, 1 Nov 2025 18:36:39 +0000 (18:36 +0000)]
convert spaces to tabs
Ken Jin [Sat, 1 Nov 2025 17:56:36 +0000 (17:56 +0000)]
fix C analyzer
Ken Jin [Sat, 1 Nov 2025 16:28:16 +0000 (16:28 +0000)]
Merge remote-tracking branch 'origin/main' into tracing_jit
Ken Jin [Sat, 1 Nov 2025 16:27:25 +0000 (16:27 +0000)]
regen global objects
Dino Viehland [Sat, 1 Nov 2025 16:23:58 +0000 (12:23 -0400)]
gh-140868: Don't rely on undefined left shift behavior in assert (#140869)
Don't rely on undefined left shift behavior in assert
Ken Jin [Sat, 1 Nov 2025 16:22:59 +0000 (00:22 +0800)]
gh-140312: Set lltrace on JIT debug builds (GH-140313)
Co-authored-by: Mark Shannon <mark@hotpy.org>
Ken Jin [Sat, 1 Nov 2025 16:02:46 +0000 (16:02 +0000)]
fix mypy
Ken Jin [Sat, 1 Nov 2025 15:59:26 +0000 (15:59 +0000)]
Remove bytecode object for ceval.c
Damian Shaw [Sat, 1 Nov 2025 10:25:19 +0000 (06:25 -0400)]
gh-140874: Upgrade bundled pip to 25.3 (GH-140876)
Upgrade bundled pip to 25.3
Filipe Laíns [Sat, 1 Nov 2025 00:39:48 +0000 (00:39 +0000)]
GH-119668: expose importlib.machinery.NamespacePath (#119669)
* GH-119668: expose importlib.NamespacePath
Signed-off-by: Filipe Laíns <lains@riseup.net>
* add news
Signed-off-by: Filipe Laíns <lains@riseup.net>
* add to docs
Signed-off-by: Filipe Laíns <lains@riseup.net>
* Apply suggestions from code review
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Fix news (importlib.NamespacePath > importlib.machinery.NamespacePath)
Signed-off-by: Filipe Laíns <lains@riseup.net>
* Link to module.__path__ in NamespacePath docs
Signed-off-by: Filipe Laíns <lains@riseup.net>
* Mention the path argument in the documentation
Signed-off-by: Filipe Laíns <lains@riseup.net>
* Simplify docs text
Signed-off-by: Filipe Laíns <lains@riseup.net>
* Highlight argument names in docs text
Signed-off-by: Filipe Laíns <lains@riseup.net>
* Update Lib/importlib/_bootstrap_external.py
Co-authored-by: Brett Cannon <brett@python.org>
* Rewrite NamespacePath's doc
Signed-off-by: Filipe Laíns <lains@riseup.net>
* Specify path_finder's type in the NamespacePath docstring
Signed-off-by: Filipe Laíns <lains@riseup.net>
* Fix doc tests
Signed-off-by: Filipe Laíns <lains@riseup.net>
* Apply suggestions from code review
Co-authored-by: Barry Warsaw <barry@python.org>
* Fix doc lint
Signed-off-by: Filipe Laíns <lains@riseup.net>
* Update Doc/library/importlib.rst
Co-authored-by: Brett Cannon <brett@python.org>
---------
Signed-off-by: Filipe Laíns <lains@riseup.net>
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Barry Warsaw <barry@python.org>
Serhiy Storchaka [Fri, 31 Oct 2025 15:44:02 +0000 (17:44 +0200)]
gh-137836: Support more RAWTEXT and PLAINTEXT elements in HTMLParser (GH-137837)
* the "plaintext" element
* the RAWTEXT elements "xmp", "iframe", "noembed" and "noframes"
* optionally RAWTEXT (if scripting=True) element "noscript"
Pål Grønås Drange [Fri, 31 Oct 2025 15:28:53 +0000 (16:28 +0100)]
gh-140212: Add html for year-month option in Calendar (#140230)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Serhiy Storchaka [Fri, 31 Oct 2025 14:13:43 +0000 (16:13 +0200)]
gh-81313: Add the math.integer module (PEP-791) (GH-133909)
Bénédikt Tran [Fri, 31 Oct 2025 13:50:40 +0000 (14:50 +0100)]
gh-136063: fix quadratic-complexity parsing in `email.message._parseparam` (GH-136072)
Serhiy Storchaka [Fri, 31 Oct 2025 13:49:51 +0000 (15:49 +0200)]
gh-136065: Fix quadratic complexity in os.path.expandvars() (GH-134952)
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
R. David Murray [Fri, 31 Oct 2025 13:09:22 +0000 (09:09 -0400)]
gh-57665: Remove 'response_class' from getresponse docstring. (#140707)
Remove 'response_class' from getresponse docstring.
This variable is not documented as part of the API in the standard
library documentation; it should be considered as an implementation
detail and as such should not be included in the doc string.
Closes #57665.
Semyon Moroz [Fri, 31 Oct 2025 10:16:32 +0000 (14:16 +0400)]
gh-131885: Document `*` for `code.InteractiveConsole` (#132029)
Mikhail Efimov [Fri, 31 Oct 2025 10:09:22 +0000 (13:09 +0300)]
gh-140373: Correctly emit `PY_UNWIND` event when generator is closed (GH-140767)
Brett Cannon [Thu, 30 Oct 2025 22:29:39 +0000 (15:29 -0700)]
Move WASI CI over to Arm runners (GH-140810)
Ken Jin [Thu, 30 Oct 2025 18:26:37 +0000 (18:26 +0000)]
Remove dynamic exit for _FOR_ITER_TIER_TWO
Brett Cannon [Thu, 30 Oct 2025 17:35:53 +0000 (10:35 -0700)]
Make printing log lines to the terminal a little cleaner when building WASI (GH-140772)
Guo Ci [Thu, 30 Oct 2025 17:32:55 +0000 (13:32 -0400)]
gh-140766: [Enum] add `show_flag_values` and `bin` to `enum.__all__` (GH-140765)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Brett Cannon [Thu, 30 Oct 2025 16:32:18 +0000 (09:32 -0700)]
GH-140768: Warn when the WASI SDK version doesn't match the supported version (GH-140769)
yihong [Thu, 30 Oct 2025 15:14:06 +0000 (23:14 +0800)]
gh-139246: zero-width word paste can be wrong in default repl (GH-139254)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: grayjk <grayjk@gmail.com>
Stan Ulbrych [Thu, 30 Oct 2025 14:31:47 +0000 (14:31 +0000)]
gh-55531: Implement `normalize_encoding` in C (#136643)
Closes gh-55531
Serhiy Storchaka [Thu, 30 Oct 2025 13:55:39 +0000 (15:55 +0200)]
gh-135801: Improve filtering by module in warn_explicit() without module argument (GH-140151)
* Try to match the module name pattern with module names constructed
starting from different parent directories of the filename.
E.g., for "/path/to/package/module" try to match with
"path.to.package.module", "to.package.module", "package.module" and
"module".
* Ignore trailing "/__init__.py".
* Ignore trailing ".pyw" on Windows.
* Keep matching with the full filename (without optional ".py" extension)
for compatibility.
* Only ignore the case of the ".py" extension on Windows.
Victor Stinner [Thu, 30 Oct 2025 13:36:15 +0000 (14:36 +0100)]
gh-139353: Add Objects/unicode_writer.c file (#139911)
Move the public PyUnicodeWriter API and the private _PyUnicodeWriter
API to a new Objects/unicode_writer.c file.
Rename a few helper functions to share them between unicodeobject.c
and unicode_writer.c, such as resize_compact() or unicode_result().
Petr Viktorin [Thu, 30 Oct 2025 11:14:17 +0000 (12:14 +0100)]
gh-140748: socket_helper.transient_internet: Unwrap UrlError.__cause__ (GH-140749)
Stan Ulbrych [Thu, 30 Oct 2025 11:12:45 +0000 (11:12 +0000)]
gh-139188: Remove `Tools/tz/zdump.py` script (GH-139189)
Serhiy Storchaka [Thu, 30 Oct 2025 11:11:56 +0000 (13:11 +0200)]
gh-140481: Improve error message when trying to iterate a Tk widget, image or font (GH-140501)
Serhiy Storchaka [Thu, 30 Oct 2025 11:00:42 +0000 (13:00 +0200)]
gh-131927: Do not emit PEP 765 warnings in ast.parse() (GH-139642)
ast.parse() no longer emits syntax warnings for
return/break/continue in finally (see PEP-765) -- they are only
emitted during compilation.
Stan Ulbrych [Thu, 30 Oct 2025 10:54:03 +0000 (10:54 +0000)]
gh-131885: Update unicodedata function signatures to use `/` (#140270)
Serhiy Storchaka [Thu, 30 Oct 2025 10:52:02 +0000 (12:52 +0200)]
gh-138162: Fix logging.LoggerAdapter with merge_extra=True and without the extra argument (GH-140511)
Stan Ulbrych [Thu, 30 Oct 2025 10:50:16 +0000 (10:50 +0000)]
gh-139198: Remove `Tools/scripts/checkpip.py` script (GH-139199)
Commit
Donghee Na [Thu, 30 Oct 2025 10:32:08 +0000 (19:32 +0900)]
gh-137821: Improve Argument Clinic definitions in the ``_json`` module (#140780)
Stan Ulbrych [Thu, 30 Oct 2025 10:18:12 +0000 (10:18 +0000)]
gh-129117: Add unicodedata.isxidstart() function (#140269)
Expose `_PyUnicode_IsXidContinue/Start` in `unicodedata`:
add isxidstart() and isxidcontinue() functions.
Co-authored-by: Victor Stinner <vstinner@python.org>
Yoonho Hann [Thu, 30 Oct 2025 09:42:09 +0000 (18:42 +0900)]
gh-137821: Convert _json module to use Argument Clinic (gh-140778)
Guo Ci [Wed, 29 Oct 2025 21:21:26 +0000 (17:21 -0400)]
gh-120057: add `os.reload_environ` to `__all__` (#140763)
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Ken Jin [Wed, 29 Oct 2025 19:29:59 +0000 (19:29 +0000)]
cleanup
Ken Jin [Wed, 29 Oct 2025 19:01:08 +0000 (19:01 +0000)]
Remove check on RESUME
Stan Ulbrych [Wed, 29 Oct 2025 16:10:58 +0000 (16:10 +0000)]
gh-140741: Fix test added in gh-140745 (#140760)
Commit
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
Mikhail Efimov [Wed, 29 Oct 2025 13:27:35 +0000 (16:27 +0300)]
gh-140576: Fixed crash produced by lexer in case of dedented zero byte (#140583)
Cody Maloney [Wed, 29 Oct 2025 12:33:44 +0000 (05:33 -0700)]
gh-140082: Forward colorizing from libregrtest to unittest (#140083)
libregrtest redirects test output to a file as part of its operation.
When `unittest` checks to see if it should colorize with
`isatty(sys.stdout)` that fails resulting in no colorizing of the
unittest output.
Update `libregrtest` to set `FORCE_COLOR=1` when redirecting test output
so that unittest will do color printing.
Co-authored-by: Victor Stinner <vstinner@python.org>
Victor Stinner [Wed, 29 Oct 2025 12:29:10 +0000 (13:29 +0100)]
gh-140702: Log color and GHA env vars in test.pythoninfo (#140747)
Stan Ulbrych [Wed, 29 Oct 2025 11:38:28 +0000 (11:38 +0000)]
gh-140741: Fix `profiling.sampling` handling of error raised by target (#140745)
Mikhail Efimov [Wed, 29 Oct 2025 09:06:23 +0000 (12:06 +0300)]
gh-140551: Fix `dict` crash if `clear` is called at `lookup` stage (#140558)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Russell Keith-Magee [Wed, 29 Oct 2025 08:33:04 +0000 (16:33 +0800)]
gh-140702: Add test skip for Unix Datagram tests on iOS when on Github Actions (#140740)
Exposes the GITHUB_ACTIONS environment variable to iOS simulator test runs, and
uses this variable to skip a Unix Datagram socketserver test that is unreliable
in the iOS GitHub Actions environment.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Frost Ming [Wed, 29 Oct 2025 06:12:12 +0000 (14:12 +0800)]
gh-139940: Handle RuntimeError when attaching to a non-existing process in pdb. (#139941)
tconley1428 [Wed, 29 Oct 2025 06:06:22 +0000 (23:06 -0700)]
gh-140228: Avoid making unnecessary syscalls in linecache for frozen modules (#140377)
Ken Jin [Tue, 28 Oct 2025 22:13:19 +0000 (22:13 +0000)]
Fix INTERPRETER_EXIT tracing
Maciej Olko [Tue, 28 Oct 2025 19:56:23 +0000 (20:56 +0100)]
gh-139588: Increase maximum LaTeX list depth (#140709)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Victor Stinner [Tue, 28 Oct 2025 17:05:03 +0000 (18:05 +0100)]
gh-140657: Don't rerun test_import single phase init test (GH-140712)
test_basic_multiple_interpreters_main_no_reset() leaks memory:
import_in_subinterp() is called with postcleanup=False.
Victor Stinner [Tue, 28 Oct 2025 13:41:51 +0000 (14:41 +0100)]
gh-125434: Fix non-ASCII thread names in faulthandler on Windows (#140700)
Add _Py_DumpWideString() function to dump a wide string as ASCII. It
supports surrogate pairs.
Replace _Py_EncodeLocaleRaw() with _Py_DumpWideString()
in write_thread_name().
Peter Bierma [Tue, 28 Oct 2025 13:07:19 +0000 (09:07 -0400)]
gh-140544: Always assume that thread locals are available (GH-140690)
Python has required thread local support since 3.12 (see GH-103324). By assuming that thread locals are always supported, we can improve the performance of third-party extensions by allowing them to access the attached thread and interpreter states directly.
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