peps icon indicating copy to clipboard operation
peps copied to clipboard

Python Enhancement Proposals

Results 120 peps issues
Sort by recently updated
recently updated
newest added

This draft PEP proposes adding optional timestamps to Python exception objects that can be displayed in tracebacks. Based on CPython PR #129337 by Gregory P. Smith. The feature adds a...

Thanks in particular to @.iritkatriel for great feedback on Discourse, and @.gpshead for discussions over lunch. This update makes a moderate change to the proposed `BaseExceptionGroup.leaf_exceptions()` method, to return a...

I'd like to be able to link to more documents on packaging.python.org that contain the bits of specification provided by PEP 639. Currently the banner doesn't reflect that and confuses...

question
infra

- Added my real name 🫠 - Updated Post-History - Bikeshedded on some of the wording in this PEP - Clarified that use of bare `ReadOnly` is not allowed, and...

On https://peps.python.org/pep-0376/ there's a notice that links to [Core metadata specifications](https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata). However, the spec that corresponds to this PEP is actually [Recording installed projects](https://packaging.python.org/en/latest/specifications/recording-installed-packages/).

For PEPs which have a target Python version, PEP 0 could link the Python version number to the release PEP for that version. That would make it a little nicer...

New rebased PR with the correct branch name to avoid confusion (786 not 791). Thank you Alyssa for sponsoring this! Relevant discussions, issues, PRs linked * https://discuss.python.org/t/implement-precision-format-spec-for-int-type-data/80760 * https://github.com/python/cpython/pull/131926 *...

new-pep

These paragraphs don't properly reflect the notion of "subtyping" in [the spec](https://typing.python.org/en/latest/spec/concepts.html). I reworded them to align more explicitly with the way assignability and subtyping are defined in the spec....

## Basic requirements (all PEP Types) * [x] Read and followed [PEP 1](https://peps.python.org/1) & [PEP 12](https://peps.python.org/12) * [x] File created from the [latest PEP template](https://github.com/python/peps/blob/main/peps/pep-0012/pep-NNNN.rst?plain=1) * [x] PEP has next...

new-pep

* Change is either: * [x] To a Draft PEP * [ ] To an Accepted or Final PEP, with Steering Council approval * [ ] To fix an editorial...