aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include
Commit message (Collapse)AuthorAge
* GH-132508: Use tagged integers on the evaluation stack for the last ↵Mark Shannon10 hours
| | | | instruction offset (GH-132545)
* gh-133079: Remove Py_C_RECURSION_LIMIT & PyThreadState.c_recursion_remaining ↵Petr Viktorin16 hours
| | | | | | | | (GH-133080) Both were added in 3.13, are undocumented, and don't make sense in 3.14 due to changes in the stack overflow detection machinery (gh-112282). PEP 387 exception for skipping a deprecation period: https://github.com/python/steering-council/issues/288
* GH-132554: Add stats for GET_ITER (GH-132592)Mark Shannon19 hours
| | | | | | | * Add stats for GET_ITER * Look for common iterable types, not iterator types * Add stats for self iter and fix naming in summary
* Revert gh-127266: avoid data races when updating type slots (gh-131174) ↵Neil Schemenauer20 hours
| | | | | (gh-133129) This is triggering deadlocks in test_opcache. See GH-133130 for stack trace.
* gh-87859: Track Code Object Local Kinds For Arguments (gh-132980)Eric Snow24 hours
| | | | | Doing this was always the intention. I was finally motivated to find the time to do it. See #87859 (comment).
* gh-132775: Add _PyCode_ReturnsOnlyNone() (gh-132981)Eric Snow25 hours
| | | | | The function indicates whether or not the function has a return statement. This is used by a later change related treating some functions like scripts.
* gh-132775: Add _PyMarshal_GetXIData() (gh-133108)Eric Snow27 hours
| | | Note that the bulk of this change is tests.
* gh-127266: avoid data races when updating type slots (gh-131174)Neil Schemenauer30 hours
| | | | | | | | In the free-threaded build, avoid data races caused by updating type slots or type flags after the type was initially created. For those (typically rare) cases, use the stop-the-world mechanism. Remove the use of atomics when reading or writing type flags. The use of atomics is not sufficient to avoid races (since flags are sometimes read without a lock and without atomics) and are no longer required.
* gh-132775: Add _PyBytes_GetXIData() (gh-133101)Eric Snow32 hours
| | | This is the base for several other XIData wrappers, like pickle and marshal. It is essentially a refactor of the existing bytes XIData code.
* gh-132775: Drop PyUnstable_InterpreterState_GetMainModule() (gh-132978)Eric Snow32 hours
| | | | | We replace it with _Py_GetMainModule(), and add _Py_CheckMainModule(), but both in the internal-only C-API. We also add _PyImport_GetModulesRef(), which is the equivalent of _PyImport_GetModules(), but which increfs before the lock is released. This is used by a later change related to pickle and handling __main__.
* gh-132775: Add _PyModule_GetFilenameObject() and _PyModule_GetFilenameUTF8() ↵Eric Snow32 hours
| | | | | | | (gh-132979) They are derived from the existing `PyModule_GetFilenameObject(). They are used by a later change related to pickle and handling __main__.
* gh-132775: Cleanup Related to crossinterp.c Before Further Changes (gh-132974)Eric Snow33 hours
| | | This change consists of adding tests and moving code around, with some renaming thrown in.
* gh-132952: Speed up startup by importing _io instead of io (#132957)Jelle Zijlstra35 hours
|
* gh-130907: Treat all module-level annotations as conditional (#131550)Jelle Zijlstra38 hours
|
* gh-132781: Cleanup Code Related to NotShareableError (gh-132782)Eric Snow4 days
| | | | | | | | | | 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-132776: Revert Moving memoryview XIData Code to memoryobject.c (gh-132960)Eric Snow4 days
| | | This is a partial revert of gh-132821. It resolves the refleak introduced by that PR.
* gh-132798: Schedule removal of `PyUnicode_AsDecoded/Encoded` functions for ↵Stan Ulbrych5 days
| | | | | 3.15 (#132799) Co-authored-by: Victor Stinner <vstinner@python.org>
* gh-132776: Cleanup for XIBufferViewType (gh-132821)Eric Snow5 days
| | | | | * 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.5 days
|
* GH-131798: Split up and optimize CALL_STR_1 in the JIT (GH-132849)Tomas R.5 days
|
* gh-131591: Check for remote debug in PyErr_CheckSignals (#132853)Pablo Galindo Salgado6 days
| | | | | | | | 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-131798: JIT: Split CALL_TYPE_1 into several uops (GH-132419)Tomas R.7 days
|
* gh-128813: hide mixed-mode functions for complex arithmetic from C-API (#131703)Sergey B Kirpichev8 days
|
* gh-132449: Improve syntax error messages for keywords with typos (#132450)Pablo Galindo Salgado8 days
| | | | Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-131586: Avoid refcount contention in context managers (gh-131851)Sam Gross8 days
| | | | | 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 Bierma8 days
|
* gh-132639: Adds PyLong_AsNativeBytes, PyLong_FromNativeBytes and ↵Steve Dower8 days
| | | | PyLong_FromUnsignedNativeBytes to the limited API (GH-132640)
* gh-127117: ensure that `_initial_thread` is the last field of ↵Bénédikt Tran10 days
| | | | `PyInterpreterState` when `Py_STACKREF_DEBUG` is defined (#132721)
* gh-132399: ensure correct alignment of `PyInterpreterState` (#132428)Bénédikt Tran11 days
|
* gh-128398: improve error messages when incorrectly using `with` and `async ↵Bénédikt Tran11 days
| | | | | | | 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-131498: Replace single-element arrays with scalars in bytecodes.c (GH-132615)Brandt Bucher12 days
|
* gh-132097: use a macro for semantically casting function pointers (#132406)Bénédikt Tran12 days
|
* gh-103997: Automatically dedent the argument to "-c" (#103998)Jon Crall12 days
| | | | | | | Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <80244920+Eclips4@users.noreply.github.com> Co-authored-by: Inada Naoki <songofacandy@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* gh-131757: allow lru_cache functions to execute concurrently (#131758)Tomasz Pytel2025-04-14
|
* GH-131498: Cases generator: Allow input and 'peek' variables to be modified ↵Mark Shannon2025-04-14
| | | | (GH-132506)
* gh-131927: Prevent emitting optimizer warnings twice in the REPL (#131993)Tomas R.2025-04-12
|
* gh-132261: Store annotations at hidden internal keys in the class dict (#132345)Jelle Zijlstra2025-04-10
|
* gh-128384: Use a context variable for warnings.catch_warnings (gh-130010)Neil Schemenauer2025-04-09
| | | | | | | | | | | | | | | | | | | | Make `warnings.catch_warnings()` use a context variable for holding the warning filtering state if the `sys.flags.context_aware_warnings` flag is set to true. This makes using the context manager thread-safe in multi-threaded programs. Add the `sys.flags.thread_inherit_context` flag. If true, starting a new thread with `threading.Thread` will use a copy of the context from the caller of `Thread.start()`. Both these flags are set to true by default for the free-threaded build and false for the default build. Move the Python implementation of warnings.py into _py_warnings.py. Make _contextvars a builtin module. Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* GH-131798: Remove JIT guards for dict, frozenset, list, set, and tuple ↵Brandt Bucher2025-04-09
| | | | (GH-132289)
* Post 3.14.0a7Hugo van Kemenade2025-04-08
|
* Python 3.14.0a7v3.14.0a7Hugo van Kemenade2025-04-08
|
* gh-100239: more stats for BINARY_OP/SUBSCR specialization (#132230)Irit Katriel2025-04-08
|
* gh-126703: Add freelist for range and range_iter objects (GH-128619)Pieter Eendebak2025-04-07
|
* gh-131591: Handle includes for iOS in remote_debugging.c (#132050)Pablo Galindo Salgado2025-04-06
|
* gh-131591: Fix GENERATE_DEBUG_SECTION for clangcl on Windows (GH-132112)Chris Eibl2025-04-06
|
* gh-126703: Add PyCFunction freelist (GH-128692)Pieter Eendebak2025-04-05
|
* GH-131498: Cases generator: manage stacks automatically (GH-132074)Mark Shannon2025-04-04
|
* gh-100239: more refined specialisation stats for BINARY_OP/SUBSCR (#132068)Irit Katriel2025-04-04
|
* GH-131288: Use `_AddressOfReturnAddress` for MSVC in pycore_ceval.h (gh-131289)Chris Eibl2025-04-04
| | | Use `_AddressOfReturnAddress` in `_Py_get_machine_stack_pointer` to silence MSVC warning in pycore_ceval.h for release builds.
* gh-131591: Implement PEP 768 (#131937)Pablo Galindo Salgado2025-04-03
| | | | Co-authored-by: Ivona Stojanovic <stojanovic.i@hotmail.com> Co-authored-by: Matt Wozniski <godlygeek@gmail.com>