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

`get_type_hints` can now resolve TypeVarLikes correctly for all generic classes, including TypedDicts. There were a lot of edge cases that I tested and subsequently wrote unit tests for. I've also...

awaiting review

(cherry picked from commit 034cf0c3167c850c8341deb61e210cb0dbcdb02d) ---- 📚 Documentation preview 📚: https://cpython-previews--119266.org.readthedocs.build/

skip issue
awaiting core review

### Proposal: Currently for C extension devs if they over-allocate a list, and then realize later in a loop after checking using some if's that not every entry is filled...

type-feature
topic-C-API

* Issue: gh-111201

awaiting core review
topic-repl

# Feature or enhancement Since python 3.10, `isinstance` and `issubclass` allow testing against `Union`-types ([PEP604](https://peps.python.org/pep-0604/)). However, the same is not true for match-case. # Pitch `case klass():` should probably be...

type-feature
interpreter-core

Add test coverage for "starred kind" in _PyPegen_set_expr_context (cherry picked from commit 8231a24454c854ea22590fd74733d29e4274122d) Co-authored-by: Mark Jason Dominus (陶敏修) * Issue: gh-94808

tests
awaiting review
skip news

Add test coverage for "starred kind" in _PyPegen_set_expr_context (cherry picked from commit 8231a24454c854ea22590fd74733d29e4274122d) Co-authored-by: Mark Jason Dominus (陶敏修) * Issue: gh-94808

tests
awaiting review
skip news

(cherry picked from commit 034cf0c3167c850c8341deb61e210cb0dbcdb02d) ---- 📚 Documentation preview 📚: https://cpython-previews--119261.org.readthedocs.build/

skip issue
awaiting core review

# Bug report ### Bug description: If a dataclass has a subclass that is not itself a dataclass, `is_dataclass()` returns True on the subclass and its instances: ```python from dataclasses...

type-bug
stdlib

# Bug report ### Bug description: When I use the Python REPL, I am used to PgUp browsing my prompt history based on the partial command I already typed. Consider:...

type-bug
3.13
3.14
topic-repl