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

Part of #95913 Performs basic editing and formatting on the existing `zipfile` section of the Python 3.11 What's New document, and adds two new items: * `ZipFile.mkdir` added in issue...

docs
awaiting review
skip news
3.11
needs backport to 3.11

Part of #95913 . As discussed there, two new methods were added to [string.Template](https://docs.python.org/3.11/library/string.html?highlight=template%20is_valid#template-strings) for 3.11 in issue #90465 / PR #30493 , but were not added to What's New....

docs
awaiting review
skip news
3.11
needs backport to 3.11

# Bug report If I run the following program in Python 3.10: ```py from dataclasses import dataclass from inspect import getsource defs = {} exec( """ @dataclass class C: "The...

type-bug

https://github.com/python/cpython/pull/30582 (in 3.11) introduced a [change](https://github.com/python/cpython/pull/30582/files#diff-007214cd4321f2b3600c085a1b9abe8c6f05662421ff232fb42ee77dafc85920L49) to `Enum.__str__` so that it shows the enum name and the member name, whereas prior it only included the member name. This could be...

docs
stdlib
3.11

* Issue: gh-98250

awaiting review
skip news
needs backport to 3.11

Part of #95913 . Also intends to solve #98250 (which I hadn't seen when I first created this). Initially, this started out as a PR adding the missing new `enum`...

docs
awaiting review
skip news
3.11
needs backport to 3.11

See also https://docs.python.org/dev/library/importlib.html#importlib.machinery.ModuleSpec * Issue: gh-64019

docs
awaiting merge
skip news
needs backport to 3.10
needs backport to 3.11

# Bug report I would like to report a refleak issue involving `typing.py`. The issue is that it internally uses LRU caches to cache certain type-related lookups, and these caches...

type-bug
performance
expert-typing

* Issue: gh-98240

docs
awaiting changes
skip news

This PR updates the exception messages raised from `ctypes` calls to print the exception class name instead of its string representation. Also, it removes obsolete `exceptions.` prefixes from documentation examples....

awaiting review
expert-ctypes