cpython
cpython copied to clipboard
The Python programming language
This PR fixes #121109. Using the test files and test script described in the issue: | filename | mode | time with PR | | --- | --- | ---...
# Bug report ### Bug description: If a (legacy email API) email.message.Message is assigned an address header that is pre-encoded with RFC 2047, calling as_bytes(policy=default) can generate an invalid address...
# Crash report ### What happened? Compiling and linking below program results in a crash when run on aarch64 (macOS, Debian VM or Ubuntu 22 VM in Azure for example):...
This removes all instances of backtracking from parsing tarfile headers, specifically `hdrcharset`, PAX, and GNU sparse headers. * Issue: gh-121285
zipinfo now supports attribute - extended_mtime fixes: #121021 ---- 📚 Documentation preview 📚: https://cpython-previews--121020.org.readthedocs.build/ * Issue: gh-121021
Tarfile in the default write mode spends much of its time resolving UIDs into usernames and GIDs into group names. By caching these mappings, a significant speedup can be achieved....
We now have the ``_Py_SourceLocation`` which captures a 4-int source location range. We can use it in symtable instead of passing 4 ints around everywhere. ### Linked PRs * gh-121353
# Bug report ### Bug description: To reproduce, type `f = """` then paste a giant block of text (I pasted [the text of Frankenstein](https://github.com/asweigart/codebreaker/blob/master/frankenstein.txt)) then press Ctrl+C immediately (while...
* Issue: gh-120289