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

Since 3.12, when server.wait_closed() was fixed, cancelling a serve_forever() call would wait for the last handler to exit, which may be never if it is waiting to read from a...

Python's [Full Grammar specification](https://docs.python.org/3/reference/grammar.html#full-grammar-specification) and [PEP 617](https://peps.python.org/pep-0617/) states: > `~` (“cut”): commit to the current alternative and fail the rule ~~even~~ [NB: typo?] if this [alternative] fails to parse It...

docs
topic-parser

It was incorrect in case of mixed tabs and spaces in indentation. * Issue: gh-143346

awaiting core review
needs backport to 3.13
needs backport to 3.14

# Bug report There is the `indent` parameter in `plistlib._PlistWriter`, which is `b'\t'` by default. `write_bytes()` calculates the width of the indentation, but doe it incorrect if the indentation is...

type-bug
OS-mac
stdlib
3.13
3.14
3.15

The documentation is currently pretty inconsistent about listing the type flags as part of the Stable ABI. Some are listed and some aren't. I've hopefully got all the important ones....

awaiting review

# Bug report ### Bug description: ```python #!/usr/bin/python3 from email.message import MIMEPart from email.policy import compat32 m = MIMEPart(policy=compat32) m.set_content(b'\x00'*100, 'image', 'phg') ``` This raises the following exception: ``` Traceback...

type-bug
stdlib
topic-email

* Issue: gh-133315 ---- 📚 Documentation preview 📚: https://cpython-previews--143307.org.readthedocs.build/

docs
awaiting review
skip news

(singlephase == NULL) check in update_global_state_for_extension could be removed because it's only called with pointers to stack objects. I've tried creating a minimal working reproducer instead of importing numpy with...

awaiting review

# Bug report ### Bug description: Currently, all blocking operations in [`concurrent.interpreters.Queue`](https://docs.python.org/3/library/concurrent.interpreters.html#concurrent.interpreters.Queue) work via polling. In general, this approach is satisfactory for an initial implementation (unfortunately, this is a cancer...

type-bug
type-feature
stdlib
topic-subinterpreters

This PR adds a note to the print() documentation to clarify how Python’s stdout buffering works with newline (\n) characters inside a single print call. Motivation: Current documentation mentions that...

docs
awaiting review
skip news