cpython
cpython copied to clipboard
The Python programming language
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...
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....
# 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...
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...
* Issue: gh-98250
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`...
See also https://docs.python.org/dev/library/importlib.html#importlib.machinery.ModuleSpec * Issue: gh-64019
# 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...
* Issue: gh-98240
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....