cpython
cpython copied to clipboard
The Python programming language
`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...
(cherry picked from commit 034cf0c3167c850c8341deb61e210cb0dbcdb02d) ---- đ Documentation preview đ: https://cpython-previews--119266.org.readthedocs.build/
### 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...
* Issue: gh-111201
# 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...
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
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
(cherry picked from commit 034cf0c3167c850c8341deb61e210cb0dbcdb02d) ---- đ Documentation preview đ: https://cpython-previews--119261.org.readthedocs.build/
# 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...
# 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:...