cpython
cpython copied to clipboard
The Python programming language
bpo-32882: Added support for selecting X25519 in SSLContext.set_ecdh_curve() https://bugs.python.org/issue32882
os.dup2(fd, fd, inheritable=True) never changed fd inheritability, but with inheritable=False the function might fail or change it in an inconsistent manner depending on the platform. https://bugs.python.org/issue32862
Previously, urllib.urljoin with a relative URL of the form '?' would result in no change to the URL, in spite of the fact that it should clear the query string....
Fix `textwrap.wrap()` so it's stable. In certain fiddly circumstances, `textwrap.wrap(x)` wasn't the same as `textwrap.wrap(textwrap.wrap(x))`, which was surprising. This happened when a line was wrapped at a whitespace blob that...
Add datetime.date.strptime and datetime.time.strptime. Fix the documentation of _strptime._strptime, the documentation was wrong, return a 3-tuple and not a 2-tuple Co-authored-by: Alexander Belopolsky Co-authored-by: Amaury Forgeot d'Arc Co-authored-by: Berker Peksag...
The itemsize should be computed from the item type, not by dividing the total size by the length and assuming that the length is not zero. https://bugs.python.org/issue32782 (fixes #76963)
https://bugs.python.org/issue32608
BPO | [38624](https://bugs.python.org/issue38624) --- | :--- Nosy | @pitrou *Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current...
# Documentation The [Other Key Features](https://docs.python.org/3/whatsnew/3.10.html#other-key-features) in [What’s New In Python 3.10](https://docs.python.org/3/whatsnew/3.10.html#what-s-new-in-python-3-10) contains the following code snippet: ``` from enum import Enum class Color(Enum): RED = 0 GREEN = 1...