summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
...
* gh-132983: Introduce `compression` package and move `_compression` module ↵Emma Smith2025-04-271-1/+1
| | | | | | | | | | | | | | | (GH-133018) * Introduces `compression` package for https://peps.python.org/pep-0784/ This commit introduces the `compression` package, specified in PEP 784 to re-export the `lzma`, `bz2`, `gzip`, and `zlib` modules. Introduction of `compression.zstd` will be completed in a future commit once the `_zstd` module is merged. This commit also moves the `_compression` private module to `compression._common._streams`. * Re-exports existing module docstrings.
* gh-131798: JIT - Use `sym_new_type` instead of `sym_new_not_null` for ↵Nadeshiko Manju2025-04-272-2/+10
| | | | | | _BUILD_STRING, _BUILD_SET (GH-132564) Signed-off-by: Manjusaka <me@manjusaka.me>
* gh-131798: JIT: Propagate the result in `_BINARY_OP_SUBSCR_TUPLE_INT` ↵Tomas R.2025-04-262-1/+42
| | | | (GH-133003)
* gh-132987: Support __index__() for "k" and "K" formats in PyArg_Parse ↵Serhiy Storchaka2025-04-261-6/+12
| | | | (GH-132988)
* gh-132781: fix refleaks in `crossinterp_exceptions.h` post gh-132782 (#132989)Bénédikt Tran2025-04-261-0/+2
|
* gh-132781: Make NotShareableError a TypeError Subclass (gh-132973)Eric Snow2025-04-251-4/+3
| | | It was a subclass of ValueError. However, shareability is a feature of types, not values.
* gh-132781: Cleanup Code Related to NotShareableError (gh-132782)Eric Snow2025-04-254-102/+274
| | | | | | | | | | The following are added to the internal C-API: * _PyErr_FormatV() * _PyErr_SetModuleNotFoundError() * _PyXIData_GetNotShareableErrorType() * _PyXIData_FormatNotShareableError() We also drop _PyXIData_lookup_context_t and _PyXIData_GetLookupContext().
* gh-131798: JIT: Narrow the return type of _CALL_LEN to int (#132940)Diego Russo2025-04-252-1/+5
| | | | | | Reduce unnecessary guards whenever `len()` is called and used after. Co-authored-by: Max Bernstein <tekknolagi@gmail.com>
* gh-132776: Revert Moving memoryview XIData Code to memoryobject.c (gh-132960)Eric Snow2025-04-253-43/+4
| | | This is a partial revert of gh-132821. It resolves the refleak introduced by that PR.
* gh-132950: Check for Py_SUPPORTS_REMOTE_DEBUG in sys.is_remote_debug_enabled ↵Pablo Galindo Salgado2025-04-251-1/+1
| | | | (#132959)
* gh-107954: Add audit event to PyConfig_Set() (#132958)Victor Stinner2025-04-251-0/+4
|
* gh-107954: Allow setting cpu_count in PyConfig_Set() (#132954)Victor Stinner2025-04-251-7/+23
| | | | | * gh-107954: Allow setting cpu_count in PyConfig_Set() * Update the doc
* gh-91048: Fix _testexternalinspection.c on FreeBSD (#132945)Victor Stinner2025-04-251-3/+5
|
* gh-91048: Refactor _testexternalinspection and add Windows support (#132852)Pablo Galindo Salgado2025-04-252-743/+799
|
* gh-129027: Raise DeprecationWarning for sys._clear_type_cache (#129043)Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)2025-04-251-0/+8
| | | | | Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-132909: handle overflow for `'K'` format in `do_mkvalue` (#132911)Bénédikt Tran2025-04-251-1/+2
|
* gh-127604: Only define dump_pointer() if CAN_C_BACKTRACE (#132897)Victor Stinner2025-04-251-0/+2
|
* gh-131591: Implement PEP 768 support for FAT mac binaries and 32 bit ↵Pablo Galindo Salgado2025-04-251-7/+129
| | | | | binaries (#132892) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-132776: Cleanup for XIBufferViewType (gh-132821)Eric Snow2025-04-253-4/+43
| | | | | * add notes * rename XIBufferViewObject to xibufferview * move memoryview XIData code to memoryobject.c
* GH-131798: Split up and optimize CALL_TUPLE_1 in the JIT (GH-132851)Tomas R.2025-04-245-20/+72
|
* GH-131798: Split up and optimize CALL_STR_1 in the JIT (GH-132849)Tomas R.2025-04-245-20/+72
|
* gh-132859: Run debugger scripts in their own namespaces (#132860)Matt Wozniski2025-04-231-13/+25
| | | | | | | | Run debugger scripts in their own namespaces Previously scripts injected by `sys.remote_exec` were run with the globals of the `__main__` module. Instead, run each injected script with an empty set of globals. If someone really wants to use the `__main__` module's namespace, they can always `import __main__`.
* gh-127604: Replace dprintf() with _Py_write_noraise() (#132854)Victor Stinner2025-04-231-16/+52
|
* gh-131591: Check for remote debug in PyErr_CheckSignals (#132853)Pablo Galindo Salgado2025-04-231-26/+33
| | | | | | | | For the same reasons as running the GC, this will allow sections that run in native code for long periods without executing bytecode to also run the remote debugger protocol without having to wait until bytecode is executed Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-127604: Allow faulthandler to dumpC stack on MacOS (#132841)Pablo Galindo Salgado2025-04-231-3/+20
|
* gh-132758: Fix tail call and pystats builds (GH-132759)Ken Jin2025-04-232-8/+28
|
* GH-131798: JIT: Split CALL_TYPE_1 into several uops (GH-132419)Tomas R.2025-04-225-36/+125
|
* gh-132479: Fix crash with multiple comprehensions in annotations (#132778)Jelle Zijlstra2025-04-211-6/+7
|
* gh-131586: Avoid refcount contention in context managers (gh-131851)Sam Gross2025-04-215-77/+94
| | | | | This avoid reference count contention in the free threading build when calling special methods like `__enter__` and `__exit__`.
* gh-127604: Add C stack dumps to `faulthandler` (#128159)Peter Bierma2025-04-211-0/+108
|
* GH-130415: Improve the JIT's unneeded uop removal pass (GH-132333)Brandt Bucher2025-04-213-15/+40
|
* gh-132399: ensure correct alignment of `PyInterpreterState` (#132428)Bénédikt Tran2025-04-191-3/+14
|
* gh-128398: improve error messages when incorrectly using `with` and `async ↵Bénédikt Tran2025-04-194-17/+88
| | | | | | | with` (#132218) Improve the error message with a suggestion when an object supporting the synchronous (resp. asynchronous) context manager protocol is entered using `async with` (resp. `with`) instead of `with` (resp. `async with`).
* gh-131591: Execute the source and not the file to avoid locking it in ↵Pablo Galindo Salgado2025-04-191-35/+21
| | | | | Windows (#132712) Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
* gh-132685: fix thread safety of `PyMember_GetOne` with `_Py_T_OBJECT` (#132690)Kumar Aditya2025-04-181-3/+15
|
* GH-131498: Replace single-element arrays with scalars in bytecodes.c (GH-132615)Brandt Bucher2025-04-185-813/+900
|
* gh-132097: use a macro for semantically casting function pointers (#132406)Bénédikt Tran2025-04-183-18/+12
|
* gh-132643: use atomic load for dict in specializer (#132653)Kumar Aditya2025-04-181-1/+2
|
* Remove duplicate includes: Python/importdl.c (#132623)Adam Turner2025-04-181-1/+0
|
* gh-131173: Improve exception handling during take_ownership processing (#132620)Alper2025-04-171-0/+2
| | | | | | Save and restore exceptions during take_ownership processing to preserve exceptions currently being raised. Co-authored-by: alperyoney <alperyoney@fb.com>
* gh-130070: Fix `exec(<string>, closure=<non-None>)` unexpected path (#130071)Bartosz Sławecki2025-04-171-0/+1
| | | | | | Fixed an assertion error (so, it could be reproduced only in builds with assertions enabled) for `exec` when the `source` argument is a string and the `closure` argument is not `None`. Co-authored-by: sobolevn <mail@sobolevn.me>
* Remove duplicate includes: Python/ast_opt.c (#132621)Adam Turner2025-04-171-1/+0
|
* gh-131798: Use `sym_new_type` instead of `sym_new_not_null` for ↵Nadeshiko Manju2025-04-162-3/+15
| | | | | | | `_BUILD_LIST`, `_BUILD_SLICE`, and `_BUILD_MAP` (GH-132434) --------- Signed-off-by: Manjusaka <me@manjusaka.me>
* gh-129987: Selectively re-enable SLP autovectorization of ↵T. Wouters2025-04-151-4/+8
| | | | | | | | _PyEval_EvalFrameDefault (#132530) Only disable SLP autovectorization of `_PyEval_EvalFrameDefault` on newer GCCs, as the optimization bug seems to exist only on GCC 12 and later, and before GCC 9 disabling the optimization has a dramatic performance impact.
* gh-124476: Fix decoding from the locale encoding in the C.UTF-8 locale ↵Serhiy Storchaka2025-04-141-9/+1
| | | | (GH-132477)
* GH-131498: Cases generator: Allow input and 'peek' variables to be modified ↵Mark Shannon2025-04-144-92/+48
| | | | (GH-132506)
* gh-131624: Fix posix_spawn tests failing on NetBSD with stack limit ↵Furkan Onder2025-04-131-1/+1
| | | | | | assertions (GH-131625) Fix recursive limit assertions on NetBSD for posix_spawn.
* gh-131927: Prevent emitting optimizer warnings twice in the REPL (#131993)Tomas R.2025-04-122-2/+24
|
* gh-125434: Fix building on OpenBSD (GH-132393)Serhiy Storchaka2025-04-121-0/+11
| | | pthread_get_name_np is defined in pthread_np.h.
* gh-132399: fix invalid function signatures on the free-threaded build (#132400)Bénédikt Tran2025-04-121-8/+18
|