summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* gh-110850: Replace private _PyTime_MAX with public PyTime_MAX (#115751)Victor Stinner2024-02-213-8/+4
| | | | | | | Remove references to the old names _PyTime_MIN and _PyTime_MAX, now that PyTime_MIN and PyTime_MAX are public. Replace also _PyTime_MIN with PyTime_MIN.
* Delete unused sym_clear_flag function. (#115744)Benjamin Peterson2024-02-211-6/+0
|
* gh-112087: Make list_{concat, repeat, inplace_repeat, ass_item) to be ↵Donghee Na2024-02-212-40/+88
| | | | thread-safe (gh-115605)
* gh-112075: Accessing a single element should optimistically avoid locking ↵Dino Viehland2024-02-213-175/+496
| | | | | (#115109) Makes accessing a single element thread safe and typically lock free
* gh-112075: Make PyDictKeysObject thread-safe (#114741)Dino Viehland2024-02-216-93/+257
| | | Adds locking for shared PyDictKeysObject's for dictionaries
* gh-110850: Use public PyTime functions (#115746)Victor Stinner2024-02-2012-55/+39
| | | | | Replace private _PyTime functions with public PyTime functions. random_seed_time_pid() now reports errors to its caller.
* gh-110850: Rename internal PyTime C API functions (#115734)Victor Stinner2024-02-2016-83/+68
| | | | | | | | | | | | | | | | | Rename functions: * _PyTime_GetSystemClock() => _PyTime_TimeUnchecked() * _PyTime_GetPerfCounter() => _PyTime_PerfCounterUnchecked() * _PyTime_GetMonotonicClock() => _PyTime_MonotonicUnchecked() * _PyTime_GetSystemClockWithInfo() => _PyTime_TimeWithInfo() * _PyTime_GetMonotonicClockWithInfo() => _PyTime_MonotonicWithInfo() * _PyTime_GetMonotonicClockWithInfo() => _PyTime_MonotonicWithInfo() Changes: * Remove "typedef PyTime_t PyTime_t;" which was "typedef PyTime_t _PyTime_t;" before a previous rename. * Update comments of "Unchecked" functions. * Remove invalid PyTime_Time() comment.
* gh-104061: Add socket.SO_BINDTOIFINDEX constant (GH-104062)Victor Westerhuis2024-02-203-0/+9
| | | | | Add socket.SO_BINDTOIFINDEX constant This socket option avoids a race condition between SO_BINDTODEVICE and network interface renaming.
* Tier 2 cleanups and tweaks (#115534)Guido van Rossum2024-02-208-121/+203
| | | | | | | | | * Rename `_testinternalcapi.get_{uop,counter}_optimizer` to `new_*_optimizer` * Use `_PyUOpName()` instead of` _PyOpcode_uop_name[]` * Add `target` to executor iterator items -- `list(ex)` now returns `(opcode, oparg, target, operand)` quadruples * Add executor methods `get_opcode()` and `get_oparg()` to get `vmdata.opcode`, `vmdata.oparg` * Define a helper for printing uops, and unify various places where they are printed * Add a hack to summarize_stats.py to fix legacy uop names (e.g. `POP_TOP` -> `_POP_TOP`) * Define helpers in `test_opt.py` for accessing the set or list of opnames of an executor
* gh-115733: Fix crash involving exhausted list iterator (#115740)Sam Gross2024-02-206-5/+13
| | | | | * gh-115733: Fix crash involving exhausted iterator * Add blurb
* GH-115727: Temporary fix of confidence score test. (GH-115728)Mark Shannon2024-02-201-4/+3
| | | Temporary fix of confidence score test.
* gh-115735: Fix current executor NULL before _START_EXECUTOR (#115736)Ken Jin2024-02-201-2/+2
| | | This fixes level 3 or higher lltrace debug output `--with-pydebug` runs.
* gh-115103: Implement delayed free mechanism for free-threaded builds (#115367)Sam Gross2024-02-208-0/+226
| | | | | | This adds `_PyMem_FreeDelayed()` and supporting functions. The `_PyMem_FreeDelayed()` function frees memory with the same allocator as `PyMem_Free()`, but after some delay to ensure that concurrent lock-free readers have finished.
* gh-110850: Cleanup pycore_time.h includes (#115724)Victor Stinner2024-02-2023-17/+28
| | | | | <pycore_time.h> include is no longer needed to get the PyTime_t type in internal header files. This type is now provided by <Python.h> include. Add <pycore_time.h> includes to C files instead.
* gh-86291: linecache: get module name from __spec__ if available (GH-22908)Eugene Toder2024-02-203-7/+45
| | | | | This allows getting source code for the __main__ module when a custom loader is used.
* gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True ↵Serhiy Storchaka2024-02-203-17/+90
| | | | | | | | (GH-115721) Restore support of such combination, disabled in gh-113796. csv.writer() now quotes empty fields if delimiter is a space and skipinitialspace is true and raises exception if quoting is not possible.
* gh-115491: Keep some fields valid across allocations (free-threading) (#115573)Sam Gross2024-02-205-25/+33
| | | | | This avoids filling the memory occupied by ob_tid, ob_ref_local, and ob_ref_shared with debug bytes (e.g., 0xDD) in mimalloc in the free-threaded build.
* gh-101860: Expose __name__ on property (GH-101876)Eugene Toder2024-02-208-25/+158
| | | | | Useful for introspection and consistent with functions and other descriptors.
* gh-110850: Replace _PyTime_t with PyTime_t (#115719)Victor Stinner2024-02-2031-341/+341
| | | | | Run command: sed -i -e 's!\<_PyTime_t\>!PyTime_t!g' $(find -name "*.c" -o -name "*.h")
* gh-112175: Add `eval_breaker` to `PyThreadState` (#115194)Brett Simmers2024-02-2019-169/+262
| | | | | | | | | | | This change adds an `eval_breaker` field to `PyThreadState`. The primary motivation is for performance in free-threaded builds: with thread-local eval breakers, we can stop a specific thread (e.g., for an async exception) without interrupting other threads. The source of truth for the global instrumentation version is stored in the `instrumentation_version` field in PyInterpreterState. Threads usually read the version from their local `eval_breaker`, where it continues to be colocated with the eval breaker bits.
* gh-112020: Document the meaning of empty bytes returned by socket.recv() ↵talcs2024-02-201-2/+3
| | | | (GH-112055)
* gh-110850: Enhance PyTime C API tests (#115715)Victor Stinner2024-02-201-4/+9
|
* Add missed `stream` argument (#111775)Alexander Shadchin2024-02-202-1/+3
| | | | | * Add missed `stream` argument * Add news
* gh-110850: PyTime_Time() return 0 on success (GH-115713)Victor Stinner2024-02-201-1/+1
| | | Thanks!
* gh-115687: Split up guards from COMPARE_OP (GH-115688)Ken Jin2024-02-209-163/+249
|
* gh-115700: Add target `_RegenCases` in Windows build for cases regeneration. ↵Kirill Podoprigora2024-02-202-3/+30
| | | | (GH-115708)
* GH-115457: Support splitting and replication of micro ops. (GH-115558)Mark Shannon2024-02-2020-309/+908
|
* GH-112354: Initial implementation of warm up on exits and trace-stitching ↵Mark Shannon2024-02-2029-198/+744
| | | | (GH-114142)
* gh-113157: Document and test __get__ for MethodType (gh-115492)Raymond Hettinger2024-02-201-2/+18
|
* Make the title match the content (GH-115702)Raymond Hettinger2024-02-202-5/+5
|
* Modernize the Sorting HowTo guide (gh-115479)Raymond Hettinger2024-02-201-6/+54
|
* gh-115539: Allow enum.Flag to have None members (GH-115636)Jason Zhang2024-02-192-21/+52
|
* gh-115543: Update py.exe to know about Python 3.13 and to install 3.12 by ↵Steve Dower2024-02-192-1/+7
| | | | default (GH-115544)
* Fix typo in multiprocessing docs (#115650)Naglis Jonaitis2024-02-191-1/+1
|
* gh-115664: Fix versionadded and versionchanged directives in ↵Serhiy Storchaka2024-02-191-15/+14
| | | | multiprocessing.rst (GH-115665)
* gh-115664: Fix chronological ordering of versionadded and versionchanged ↵Brian Schubert2024-02-196-20/+20
| | | | directives (#115676)
* gh-60346: Improve handling single-dash options in ↵Serhiy Storchaka2024-02-193-23/+57
| | | | ArgumentParser.parse_known_args() (GH-114180)
* gh-115341: Fix loading unit tests with doctests in -OO mode (GH-115342)Serhiy Storchaka2024-02-191-1/+1
|
* Fix test_py_compile with -O mode (GH-115345)Serhiy Storchaka2024-02-191-1/+3
|
* Fix test_compile with -O mode (GH-115346)Serhiy Storchaka2024-02-191-2/+5
|
* gh-115154: Fix untokenize handling of unicode named literals (#115171)Pablo Galindo Salgado2024-02-193-10/+85
|
* gh-115652: Fix indentation in the documentation of ↵Daniel Haag2024-02-191-5/+5
| | | | multiprocessing.get_start_method (GH-115658)
* gh-114626: Add again _PyCFunctionFastWithKeywords name (GH-115561)Victor Stinner2024-02-192-1/+5
| | | | | | | | Keep the old private _PyCFunctionFastWithKeywords name (Python 3.7) as an alias to the new public name PyCFunctionFastWithKeywords (Python 3.13a4). _PyCFunctionWithKeywords doesn't exist in Python 3.13a3, whereas _PyCFunctionFastWithKeywords was removed in Python 3.13a4.
* gh-83648: Add missing `deprecated` arg in argparse.rst (GH-115640)0xflotus2024-02-191-1/+1
|
* gh-102388: Add windows_31j to aliases for cp932 codec (#102389)Masayuki Moriyama2024-02-193-1/+4
| | | | | | | | | The charset name "Windows-31J" is registered in the IANA Charset Registry[1] and is implemented in Python as the cp932 codec. [1] https://www.iana.org/assignments/charset-reg/windows-31J Signed-off-by: Masayuki Moriyama <masayuki.moriyama@miraclelinux.com>
* Docs: Add explanation about little/big endian (#109841)Simon A. Eugster2024-02-191-0/+15
| | | | Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* gh-111358: Fix timeout behaviour in BaseEventLoop.shutdown_default_executor ↵Jamie Phan2024-02-193-9/+29
| | | | (#115622)
* gh-114709: Mark commonpath behaviour as changed in 3.13 (#115639)Shantanu2024-02-181-1/+4
|
* gh-115122: Add --bisect option to regrtest (#115123)Victor Stinner2024-02-188-30/+178
| | | | | | | | * test.bisect_cmd now exit with code 0 on success, and code 1 on failure. Before, it was the opposite. * test.bisect_cmd now runs the test worker process with -X faulthandler. * regrtest RunTests: Add create_python_cmd() and bisect_cmd() methods.
* gh-115572: Move `codeobject.replace()` docs to the data model (#115631)Daler2024-02-182-9/+9
|