summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* GH-111485: Silence warnings in Python/executor_cases.c.h (#111619)Guido van Rossum2023-11-013-0/+6
|
* gh-106718: Treat PyConfig.stdlib_dir as highest-priority setting for ↵Yilei Yang2023-11-013-10/+30
| | | | stdlib_dir when calculating paths (GH-108730)
* gh-106168: Update PyList_SET_ITEM() What's New doc (#111618)Victor Stinner2023-11-011-1/+2
|
* gh-111374: Add a new PYTHON_FROZEN_MODULES env var, equivalent of `-X ↵Yilei Yang2023-11-015-6/+56
| | | | | | | frozen_modules`. (#111411) Adds a new PYTHON_FROZEN_MODULES env var to correspond with -X frozen_modules. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-111520: Integrate the Tier 2 interpreter in the Tier 1 interpreter (#111428)Guido van Rossum2023-11-0119-487/+509
| | | | | | | | | | | - There is no longer a separate Python/executor.c file. - Conventions in Python/bytecodes.c are slightly different -- don't use `goto error`, you must use `GOTO_ERROR(error)` (same for others like `unused_local_error`). - The `TIER_ONE` and `TIER_TWO` symbols are only valid in the generated (.c.h) files. - In Lib/test/support/__init__.py, `Py_C_RECURSION_LIMIT` is imported from `_testcapi`. - On Windows, in debug mode, stack allocation grows from 8MiB to 12MiB. - **Beware!** This changes the env vars to enable uops and their debugging to `PYTHON_UOPS` and `PYTHON_LLTRACE`.
* Simplify trivial calls of PyUnicode_FromFormat() (GH-111605)Serhiy Storchaka2023-11-012-2/+2
|
* gh-111089: Use PyUnicode_AsUTF8() in Argument Clinic (#111585)Victor Stinner2023-11-0134-907/+180
| | | | | | | Replace PyUnicode_AsUTF8AndSize() with PyUnicode_AsUTF8() to remove the explicit check for embedded null characters. The change avoids to have to include explicitly <string.h> to get the strlen() function when using a recent version of the limited C API.
* gh-111495: Add tests for PyBytes and PyByteArray C API (GH-111496)Serhiy Storchaka2023-11-015-1/+725
|
* Simplify _PyPegen_join_names_with_dot() (GH-111602)Serhiy Storchaka2023-11-011-32/+2
|
* GH-111537: Avoid using `this_instr` in asserts. (GH-111600)Mark Shannon2023-11-012-36/+24
|
* GH-111485: Use micro-ops to split specialization code from base action ↵Mark Shannon2023-11-019-577/+858
| | | | (GH-111561)
* gh-111576: Improve documention for tkinter.messagebox (GH-111578)Serhiy Storchaka2023-11-011-10/+165
|
* gh-111495: add stub files for C API test modules (GH-111586)Sergey B Kirpichev2023-11-0113-3/+204
| | | | | This is to reduce merge conflicts (Modules/Setup.stdlib.in) for subsequent pull requests for the issue.
* gh-110367: Make regrtest --verbose3 compatible with --huntrleaks -jN (#111577)Victor Stinner2023-11-013-2/+34
| | | | | "./python -m test -j1 -R 3:3 --verbose3" now works as expected, since run_single_test() does not replace sys.stdout with StringIO in this case.
* gh-110968: Py_MOD_PER_INTERPRETER_GIL_SUPPORTED was added to 3.12 (#111584)Victor Stinner2023-11-0112-23/+23
|
* gh-111282: Fix NamedTemporaryFile example code (GH-111283)Krzysiek Karbowiak2023-10-311-7/+7
|
* gh-110774: allow setting the Runner(loop_factory=...) from ↵Thomas Grainger2023-10-314-2/+28
| | | | | | | IsolatedAsyncioTestCase (#110776) Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
* gh-108082: Add PyErr_FormatUnraisable() function (GH-111086)Serhiy Storchaka2023-10-317-8/+142
|
* gh-111420: Allow type comments in parenthesized `with` statements (#111468)Tomas R2023-10-315-8/+32
|
* gh-108765: Python.h no longer includes <stddef.h> on Windows (#111563)Victor Stinner2023-10-313-3/+11
| | | | In practice, only Windows is impacted, because the HAVE_STDDEF_H macro was only defined on Windows.
* gh-90815: Exclude mimalloc .c files from Windows build (#111532)Dino Viehland2023-10-316-121/+13
| | | | * Don't include mimalloc .c's in Windows build * Fix warnings on Windows related to mimalloc
* gh-102249: Expand sys.call_tracing documentation (#102806)Quentin Peter2023-10-311-3/+17
| | | | Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
* gh-93607: document `root` attribute of `iterparse` (#99410)Prometheus33752023-10-311-1/+3
| | | | | Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* gh-106861: Docs: Add availability directives to all Unix-only modules (#108975)xzmeng2023-10-319-6/+14
|
* gh-111062: CI: Rename reusable-build-[X].yml to reusable-[X].yml (#111552)Hugo van Kemenade2023-10-314-6/+6
|
* gh-109181: Speed up Traceback object creation by lazily compute the line ↵Pablo Galindo Salgado2023-10-312-6/+31
| | | | | number (#111548) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* GH-111438: Add Support for Sharing Floats Between Interpreters (gh-111439)Anthony Shaw2023-10-314-2/+34
| | | This only affects users of the APIs in pycore_crossinterp.h (AKA _xxsubinterpretersmodule.c and _xxinterpchannels.c).
* GH-111485: Remove some special cases from the code generator and bytecodes.c ↵Mark Shannon2023-10-318-55/+119
| | | | (GH-111540)
* GH-111485: Increment `next_instr` consistently at the start of the ↵Mark Shannon2023-10-3111-521/+1079
| | | | instruction. (GH-111486)
* gh-111531: Tkinter: fix reference leaks in bind_class() and bind_all() ↵Serhiy Storchaka2023-10-312-2/+4
| | | | (GH-111533)
* gh-111301: Move importlib.resources changes to the Removed section (#111509)Karolina Surma2023-10-311-14/+18
|
* gh-111301: Move `importlib.resources.files` change to What's new in Python ↵Karolina Surma2023-10-312-1/+3
| | | | 3.12 (#111512)
* gh-111062 CI: Update skip lists for resuable workflows (#111521)Hugo van Kemenade2023-10-311-6/+8
| | | CI: Update skip lists
* gh-111277: In summarize_stats.py, don't fail fast on invalid ratios (#111278)Michael Droettboom2023-10-311-3/+5
|
* gh-109329: Count tier2 opcode misses (#110561)Michael Droettboom2023-10-315-4/+9
| | | This keeps a separate 'miss' counter for each micro-opcode, incremented whenever a guard uop takes a deoptimization side exit.
* gh-76785: Move the Cross-Interpreter Code to Its Own File (gh-111502)Eric Snow2023-10-3018-760/+849
| | | This is partly to clear this stuff out of pystate.c, but also in preparation for moving some code out of _xxsubinterpretersmodule.c. This change also moves this stuff to the internal API (new: Include/internal/pycore_crossinterp.h). @vstinner did this previously and I undid it. Now I'm re-doing it. :/
* gh-110697: Use CLOCK_RES in test_os.TimerfdTests (#111529)Victor Stinner2023-10-301-6/+6
| | | | More TimerfdTests tests tolerate a difference of 1 ms in measured elapsed time.
* gh-90815: Fix mimalloc atomic.h on Windows arm64 (#111527)Victor Stinner2023-10-301-1/+1
| | | | | | | mi_atomic_load_explicit() casts 'p' argument to drop the 'const' qualifier on Windows arm64 platform. Fix the compiler warning: 'function': different 'const' qualifiers (compiling source file ..\Objects\mimalloc\options.c)
* gh-90815: Fix mimalloc build on WASI (#111524)Victor Stinner2023-10-301-0/+1
| | | Include <unistd.h> to get sbrk() function.
* gh-90815: Fix _PyMem_MimallocEnabled() compiler warning (#111522)Victor Stinner2023-10-301-6/+6
| | | | | | Don't declare _PyMem_MimallocEnabled() if WITH_PYMALLOC macro is not defined (./configure --without-pymalloc). Fix also a typo in _PyInterpreterState_FinalizeAllocatedBlocks().
* Remove myself from typing CODEOWNERS (#111523)Ken Jin2023-10-301-1/+1
|
* gh-111181: Fix enum doctests (GH-111180)Nikita Sobolev2023-10-303-15/+22
| | | Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
* gh-111366: Correctly show custom syntax error messages in the codeop module ↵Pablo Galindo Salgado2023-10-303-5/+30
| | | | functions (#111384)
* gh-111284: Make multiprocessing tests with threads faster and more reliable ↵Serhiy Storchaka2023-10-301-9/+21
| | | | (GH-111285)
* gh-110481: Fix _Py_ThreadId for non-free-threaded mode (gh-111503)Donghee Na2023-10-301-3/+1
|
* gh-108082: C API: Add tests for PyErr_WriteUnraisable() (GH-111455)Serhiy Storchaka2023-10-303-0/+70
| | | | Also document the behavior when called with NULL.
* gh-109515: When generating deep frozen modules on Windows, use a list file ↵Riccardo Ghetta2023-10-303-30/+78
| | | | instead of arguments (GH-109516)
* gh-110481: Implement biased reference counting (gh-110764)Sam Gross2023-10-3029-52/+511
|
* gh-90815: Add mimalloc memory allocator (#109914)Dino Viehland2023-10-3061-158/+16789
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add mimalloc v2.12 Modified src/alloc.c to remove include of alloc-override.c and not compile new handler. Did not include the following files: - include/mimalloc-new-delete.h - include/mimalloc-override.h - src/alloc-override-osx.c - src/alloc-override.c - src/static.c - src/region.c mimalloc is thread safe and shares a single heap across all runtimes, therefore finalization and getting global allocated blocks across all runtimes is different. * mimalloc: minimal changes for use in Python: - remove debug spam for freeing large allocations - use same bytes (0xDD) for freed allocations in CPython and mimalloc This is important for the test_capi debug memory tests * Don't export mimalloc symbol in libpython. * Enable mimalloc as Python allocator option. * Add mimalloc MIT license. * Log mimalloc in Lib/test/pythoninfo.py. * Document new mimalloc support. * Use macro defs for exports as done in: https://github.com/python/cpython/pull/31164/ Co-authored-by: Sam Gross <colesbury@gmail.com> Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-111062: Reusable Windows build that supports free-threaded mode as the ↵Donghee Na2023-10-302-49/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | conditional CI (#111493) * gh-111062 Set up free-threaded CI for windows Co-authored-by: Donghee Na <donghee.na@python.org> * Apply suggestions from code review Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Update * Update names * Add files * Update * Revert "Update" This reverts commit 4f17e1af0dbce3b7959b93b41baaf040dee790cc. * fix --------- Co-authored-by: juanjose.tenorio <juanjose2611@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>