programming

Kept in this browser · My desk

Stands for: Python Enhancement Proposal

Python Enhancement Proposal: a design document that proposes a new feature or process for Python, or gives the community information, with a concise technical specification and its rationale.

Python Enhancement Proposals (PEPs) are the main way large changes are proposed, discussed and recorded. PEP 602 set the annual release cycle, PEP 440 the version scheme, PEP 668 the marker that makes pip refuse to install into a distribution's Python. Once a feature ships, its living specification can move elsewhere, as the packaging PEPs did to the Python Packaging User Guide, and the release notes warn that PEPs usually are not kept up to date after implementation.

What it is, and what it is not. A Python Enhancement Proposal (PEP) is defined by the first of them, PEP 1, created on 13 June 2000 and still Active, as a design document providing information to the Python community or describing a new feature for Python, its processes or its environment, with a concise technical specification and a rationale. It sets three purposes: the primary mechanism for proposing major new features, for collecting community input on an issue, and for documenting the design decisions that went into Python. The author must build consensus and record dissenting opinions, and because PEPs are kept as text files in a versioned repository, their revision history is the historical record of the proposal. The closest analogy for network engineers is the Request for Comments (RFC) series, with the difference that a PEP is decided by Python's own governance rather than by a standards body. The same three letters mean something else entirely in security architecture: in access control and zero trust, a PEP is a policy enforcement point, the component that actually enforces a policy decision on a request, as the glossary of the National Institute of Standards and Technology (NIST) records from several of its publications. Context decides which one is meant.

Three types. Standards Track PEPs describe a new feature or implementation, or an interoperability standard supported outside the standard library before a later PEP brings it in. Informational PEPs describe a design issue or give guidelines without proposing a feature, and users are free to ignore them; the best known is PEP 20, the Zen of Python (2004), in which Tim Peters wrote down 19 of 20 aphorisms and which import this prints, while PEP 8, the style guide of 2001, reads like guidance but is filed as a Process PEP. Process PEPs change a procedure around Python rather than the language, and, unlike Informational ones, are not optional. On 12 November 2026 the index listed 748 PEPs: 589 Standards Track, 106 Informational and 53 Process. Numbers are assigned by the PEP editors and some ranges have meaning: PEP 0 is the index, the 3000 series belonged to the Python 3000 project (PEP 3000 dates from April 2006), the 8000 series to governance, and the 8100 series records each steering council election.

How a PEP moves. An idea is first aired on the Python Discourse, often in a specialized category for typing or packaging, to find out whether it is new and wanted. It then needs a sponsor, for example a member of the core team, the PEP editors or the Typing Council, and is submitted as a pull request to the PEP repository in reStructuredText, using PEP 12 as the template; the editors check structure and formatting, not correctness. Discussion happens on one canonical public thread, and the decision belongs to the Steering Council or a PEP-Delegate it appoints. The states are Draft, Accepted, Provisional (accepted into the reference implementation but still open to change, rejection or withdrawal), Final, Deferred, Rejected, Withdrawn, Superseded, and Active for documents that are never finished, such as PEP 1 itself. The index on 12 November 2026 counted 375 Final, 132 Rejected, 74 Withdrawn, 57 Draft, 38 Active, 35 Deferred, 25 Superseded, 11 Accepted and 1 Provisional, which says as much about the process as any rule: nearly a third of all proposals were rejected, withdrawn or deferred. PEP 1 adds that a proposal must be pythonic to be accepted, and admits that the term is defined as whatever the Steering Council accepts, a circularity it calls intentional.

Who decides, and how that changed. For most of the PEP era design authority came from Guido van Rossum, Python's creator, as Benevolent Dictator for Life (BDFL) until he stepped down in July 2018. The core developers then wrote competing governance models as PEPs 8010 to 8016, surveyed other projects in PEP 8002, and chose by the vote described in PEP 8001: the Steering Council model of PEP 8016 was accepted on 17 December 2018, with the stated aim of being boring and using well-tested processes. PEP 13, created on 16 December 2018, is now the governing document: a five-person council elected by the core team after each feature release, the 2026 council being Barry Warsaw, Donghee Na, Pablo Galindo Salgado, Savannah Ostrowski and Thomas Wouters, elected under PEP 8107. The old title BDFL-Delegate became PEP-Delegate. Specialized bodies followed for areas outside the core language: the Typing Council under PEP 729 (2023) and the Python Packaging Council under PEP 772, created in January 2025 and accepted on 16 April 2026, with broad authority over packaging standards, tools and implementations.

PEPs and the release calendar. PEP 602, created in June 2019 and in force since Python 3.9, puts a feature release every October after about 17 months of development: five unversioned months overlapping the previous release's betas, seven months of alphas, three months of four betas and two months of release candidates, followed by two years of full support and three more of security fixes. Each release is in practice a bundle of accepted PEPs; the What's New page for Python 3.15 opens with PEP 810 (explicit lazy imports), PEP 814 (a frozendict built-in) and PEP 661 (sentinel values). Language milestones are remembered by number: PEP 484 (type hints, 3.5), PEP 572 (assignment expressions, 3.8), PEP 634 (structural pattern matching, 3.10), PEP 703 (making the global interpreter lock optional, 3.13). Rejection is as informative: PEP 2026, which proposed calendar versioning for Python in 2024, was rejected.

Where the specification lives afterwards. PEP 1 is explicit that once a PEP reaches Accepted, Final, Rejected or Superseded it is a historical document, not a living specification; the behaviour is documented elsewhere, in the Language Reference for core features, the Library Reference for the standard library, or, in its words, the PyPA Specifications for packaging, a list the Python Packaging User Guide now publishes as the Python Packaging Specifications, maintained, it says, by the Python Packaging Council. The What's New pages repeat the warning: read the PEP for the design rationale, but PEPs usually are not kept up to date once a feature has been fully implemented. Packaging shows the pattern most clearly. PEP 440 (2013) defined version identifiers and dependency specifiers, PEP 517 (2015) build-system independence, PEP 621 (2020) project metadata in pyproject.toml, and PEP 668 (2021) the EXTERNALLY-MANAGED marker that makes pip refuse to install into a distribution's own Python; the current, maintained versions are the interoperability specifications in the Python Packaging User Guide, now kept by the Packaging Council. The practical rule is to cite the specification for how something behaves today and the PEP for why it was designed that way.

Why engineers outside Python's core meet them. Network and security engineers rarely read PEPs for pleasure, but they cite them to explain behaviour that surprises them: PEP 668 when pip refuses to install on a jump host, PEP 657 when a traceback underlines the failing expression, PEP 3151 (Python 3.3) for the OSError subclasses such as ConnectionRefusedError that network scripts catch, PEP 578 (Python 3.8) for the runtime audit hooks that let a security tool observe what a Python process does, and PEP 740 for digital attestations on the Python Package Index. A Draft PEP is a proposal, not a promise; only Accepted, Provisional and Final ones describe Python as it is or will be.

Also known as: Python Enhancement Proposal, PEPs

Sources

← Back to P Back to the glossary