| Commit message (Collapse) | Author | Age |
|
|
|
| |
instruction offset (GH-132545)
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
| |
* Add stats for GET_ITER
* Look for common iterable types, not iterator types
* Add stats for self iter and fix naming in summary
|
|
|
|
|
| |
(gh-133129)
This is triggering deadlocks in test_opcache. See GH-133130 for stack trace.
|
|
|
|
|
| |
Doing this was always the intention. I was finally motivated to find the time to do it.
See #87859 (comment).
|
|
|
|
|
| |
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.
|
|
|
| |
Note that the bulk of this change is tests.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
| |
This is the base for several other XIData wrappers, like pickle and marshal. It is essentially a refactor of the existing bytes XIData code.
|
|
|
|
|
| |
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-132979)
They are derived from the existing `PyModule_GetFilenameObject().
They are used by a later change related to pickle and handling __main__.
|
|
|
| |
This change consists of adding tests and moving code around, with some renaming thrown in.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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().
|
|
|
| |
This is a partial revert of gh-132821. It resolves the refleak introduced by that PR.
|
|
|
|
|
| |
3.15 (#132799)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
|
|
|
|
| |
* add notes
* rename XIBufferViewObject to xibufferview
* move memoryview XIData code to memoryobject.c
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
|
|
|
|
|
| |
This avoid reference count contention in the free threading build
when calling special methods like `__enter__` and `__exit__`.
|
| |
|
|
|
|
| |
PyLong_FromUnsignedNativeBytes to the limited API (GH-132640)
|
|
|
|
| |
`PyInterpreterState` when `Py_STACKREF_DEBUG` is defined (#132721)
|
| |
|
|
|
|
|
|
|
| |
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`).
|
| |
|
| |
|
|
|
|
|
|
|
| |
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-132506)
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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-132289)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Use `_AddressOfReturnAddress` in `_Py_get_machine_stack_pointer` to silence MSVC warning in pycore_ceval.h for release builds.
|
|
|
|
| |
Co-authored-by: Ivona Stojanovic <stojanovic.i@hotmail.com>
Co-authored-by: Matt Wozniski <godlygeek@gmail.com>
|