cpython
cpython copied to clipboard
The Python programming language
# Feature or enhancement I propose adding a new `PyBytesWriter` API to create a Python bytes object. API: ```c typedef struct PyBytesWriter PyBytesWriter; // Create a bytes writer instance. //...
* Issue: gh-109523
After some changes applied in ffe9ba04778f852a14f2404b5fcf13cb3ba1bf45 to fix whitespace between encoded words when folding an EmailMessage, the following issue was introduced: - When an encoded word is split in two...
TSAN reported race: ``` WARNING: ThreadSanitizer: data race (pid=31237) Read of size 8 at 0x7fffb9ac6148 by thread T333: #0 PyException_GetTraceback /home/ken/Documents/GitHub/cpython/Objects/exceptions.c:415:12 (python+0x27c20b) (BuildId: e8ff96bc7d1e595a25cb4534a571573eaa53d4f4) #1 _PyErr_SetObject /home/ken/Documents/GitHub/cpython/Python/errors.c:242:14 (python+0x52cf07) (BuildId: e8ff96bc7d1e595a25cb4534a571573eaa53d4f4)...
# Bug report ### Bug description: In Python 3.12.4, using `EmailMessage` class with long non-ASCII characters in the subject, the resulting, encoded extra space `=?utf-8?q?_?=` is generated. The issue doesn't...
Any numbers that have the as_integer_ratio() method (e.g. numpy.float128) can now be converted to a fraction. * Issue: gh-82017 ---- 📚 Documentation preview 📚: https://cpython-previews--120271.org.readthedocs.build/
BPO | [21760](https://bugs.python.org/issue21760) --- | :--- Nosy | @ncoghlan, @ericsnowcurrently, @miss-islington, @furkanonder PRs | python/cpython#19097 *Note: these values reflect the state of the issue at the time it was migrated...
# Feature or enhancement ### Proposal: Using the new PyREPL in Python 3.14.0a0 does not auto complete for module imports. I think adding auto completion for the `import` and `from`...
Add examples of warning filters and the difference between programatic and environmental filters. * Issue: gh-93343 ---- :books: Documentation preview :books:: https://cpython-previews--106618.org.readthedocs.build/