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

At the sprints at PyConUS 2024, @brandtbucher suggested an improvement to pystats data. Right now, the Tier 2 stats include a count of how many times each UOp is executed,...

type-feature
interpreter-core
topic-JIT

As suggested by @ncoghlan: * Added `test_nonlocal.py` * Added a Documentation NEWS entry * Added a Tests NEWS entry In tests, I've decided to use simply the variable names, rather...

tests
awaiting review

* Issue: gh-139899 ---- 📚 Documentation preview 📚: https://cpython-previews--139900.org.readthedocs.build/

awaiting core review

fix OrderedDict copy heap-use-after-free security issue * Issue: gh-142734

awaiting changes

* Issue: gh-142555

awaiting merge
needs backport to 3.13
needs backport to 3.14

### What happened? A crafted integer subclass overrides `__int__` so when `TextIOWrapper.seek` converts the cookie with `PyNumber_Long` it detaches the wrapper and frees the buffer, yet the seek logic continues...

extension-modules
topic-IO
type-crash

This fix actually changes the existing behavior but messing up with the memoryview while still being accessed is honestly a poor design choice and I don't know when it'd be...

awaiting core review

### What happened? `memory_subscript()` creates a new view (`mbuf_add_view`) **before** parsing slice indices. If a slice bound’s `__index__` releases/truncates the underlying buffer (e.g., `mv.release(); ftruncate()`), the newly created subview keeps...

interpreter-core
type-crash

FTR, the reason why `execute` is actually _not_ affected is that the iterator we are taking is built from a list we create ourselves so it's not possible to have...

awaiting core review
needs backport to 3.13
needs backport to 3.14

### What happened? A crafted indent object overrides `__mul__`, so when `create_indent_cache` calls `PySequence_Repeat` it can drop the encoder’s last reference and free the encoder mid‑call. The freed memory is...

extension-modules
type-crash
3.14
3.15