cpython icon indicating copy to clipboard operation
cpython copied to clipboard

The Python programming language

Results 1387 cpython issues
Sort by recently updated
recently updated
newest added

# Feature or enhancement ### Proposal: See [PEP 793](https://peps.python.org/pep-0793/). I'll copy the abstract for reference: > In this PEP, we propose a new entry point for C extension modules, by...

type-feature
interpreter-core
topic-C-API

### What happened? `atexit.unregister` iterates its callback list while comparing each entry. A user-defined `__eq__` that calls `atexit._clear()` frees the list during iteration, so the next comparison dereferences a stale...

extension-modules
type-crash

### What happened? Re-entrant `ContextVar.set` during `_PyHamt_Eq` lets `Context.__eq__` replace a context while `hamt_iterator_next` still walks the old HAMT nodes, leaving the iterator with freed storage and producing a use-after-free...

interpreter-core
type-crash

# Bug report ### Bug description: `PyABIInfo_VAR` in `modsupport.h` generates incorrect code because `_PyABIInfo_DEFAULT` has been defined as a function. The parentheses should be removed. ### CPython versions tested on:...

type-bug
tests
topic-C-API
3.15

# Bug report ### Bug description: Ideally, defaultdict would provide atomic "compute and add only if key is absent" behavior. When `__missing__` is called, another thread might insert the key....

extension-modules
type-crash
topic-free-threading

## Summary Implement the TODO at line 99-100 in `Modules/xxlimited.c` to add `Py_tp_token` slot support, demonstrating Python 3.14 type checking best practices for Limited C API extension modules. ## Changes...

docs
skip news
needs backport to 3.14

We make the PY_UNWIND monitoring event available as a code-local event to allow trapping on function exit events when an exception bubbles up. This complements the PY_RETURN event by allowing...

awaiting review

# Bug report ### Bug description: Most importantly, it doesn't call `.close()` on it, which blocks GH-140288 and causes surprising warnings on Windows (see GH-141262). Ideally, we'd employ `asyncio.Runner` to...

type-bug
topic-asyncio
stdlib
3.13
3.14
topic-repl
3.15

# Bug report ### Bug description: The original problem - https://github.com/jcrist/msgspec/pull/960 In Python 3.13 `PyObject_GC_New` does not do initialization inline values (aka `_PyObject_InitInlineValues`). In Python 3.14 `PyObject_GC_New` does initialization inline...

type-bug
interpreter-core
topic-C-API
pending
3.13