2000-07-13 02:33:08 -04:00
|
|
|
|
PEP: 1
|
2000-07-25 13:59:08 -04:00
|
|
|
|
Title: PEP Purpose and Guidelines
|
2000-07-13 02:33:08 -04:00
|
|
|
|
Version: $Revision$
|
2001-08-14 18:04:52 -04:00
|
|
|
|
Last-Modified: $Date$
|
2007-06-28 15:53:41 -04:00
|
|
|
|
Author: Barry Warsaw, Jeremy Hylton, David Goodger
|
2001-03-21 16:52:08 -05:00
|
|
|
|
Status: Active
|
2005-08-12 21:37:32 -04:00
|
|
|
|
Type: Process
|
2003-05-03 12:01:32 -04:00
|
|
|
|
Content-Type: text/x-rst
|
2000-07-25 13:59:08 -04:00
|
|
|
|
Created: 13-Jun-2000
|
2003-05-03 12:01:32 -04:00
|
|
|
|
Post-History: 21-Mar-2001, 29-Jul-2002, 03-May-2003
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
What is a PEP?
|
2003-05-03 12:01:32 -04:00
|
|
|
|
==============
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
PEP stands for Python Enhancement Proposal. A PEP is a design
|
|
|
|
|
document providing information to the Python community, or describing
|
2005-08-12 21:37:32 -04:00
|
|
|
|
a new feature for Python or its processes or environment. The PEP
|
|
|
|
|
should provide a concise technical specification of the feature and a
|
|
|
|
|
rationale for the feature.
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
We intend PEPs to be the primary mechanisms for proposing new
|
|
|
|
|
features, for collecting community input on an issue, and for
|
|
|
|
|
documenting the design decisions that have gone into Python. The PEP
|
|
|
|
|
author is responsible for building consensus within the community and
|
|
|
|
|
documenting dissenting opinions.
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
2006-03-23 22:24:04 -05:00
|
|
|
|
Because the PEPs are maintained as text files in a versioned
|
|
|
|
|
repository, their revision history is the historical record of the
|
|
|
|
|
feature proposal [1]_.
|
2002-08-26 12:19:25 -04:00
|
|
|
|
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
2005-08-12 21:37:32 -04:00
|
|
|
|
PEP Types
|
|
|
|
|
=========
|
|
|
|
|
|
|
|
|
|
There are three kinds of PEP:
|
|
|
|
|
|
|
|
|
|
1. A **Standards Track** PEP describes a new feature or implementation
|
|
|
|
|
for Python.
|
|
|
|
|
|
|
|
|
|
2. An **Informational** PEP describes a Python design issue, or
|
|
|
|
|
provides general guidelines or information to the Python community,
|
|
|
|
|
but does not propose a new feature. Informational PEPs do not
|
|
|
|
|
necessarily represent a Python community consensus or
|
|
|
|
|
recommendation, so users and implementors are free to ignore
|
|
|
|
|
Informational PEPs or follow their advice.
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
2005-08-12 21:37:32 -04:00
|
|
|
|
3. A **Process** PEP describes a process surrounding Python, or
|
|
|
|
|
proposes a change to (or an event in) a process. Process PEPs are
|
|
|
|
|
like Standards Track PEPs but apply to areas other than the Python
|
|
|
|
|
language itself. They may propose an implementation, but not to
|
|
|
|
|
Python's codebase; they often require community consensus; unlike
|
|
|
|
|
Informational PEPs, they are more than recommendations, and users
|
2009-02-08 18:06:43 -05:00
|
|
|
|
are typically not free to ignore them. Examples include
|
|
|
|
|
procedures, guidelines, changes to the decision-making process, and
|
|
|
|
|
changes to the tools or environment used in Python development.
|
|
|
|
|
Any meta-PEP is also considered a Process PEP.
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
|
|
|
|
|
2001-03-21 12:05:27 -05:00
|
|
|
|
PEP Work Flow
|
2003-05-03 12:01:32 -04:00
|
|
|
|
=============
|
|
|
|
|
|
2010-03-04 22:07:12 -05:00
|
|
|
|
The PEP editors assign PEP numbers and change their status. Please send
|
2007-05-01 00:00:51 -04:00
|
|
|
|
all PEP-related email to <peps@python.org> (no cross-posting please).
|
2007-05-01 11:37:43 -04:00
|
|
|
|
Also see `PEP Editor Responsibilities & Workflow`_ below.
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
|
|
|
|
The PEP process begins with a new idea for Python. It is highly
|
|
|
|
|
recommended that a single PEP contain a single key proposal or new
|
2010-03-04 22:07:12 -05:00
|
|
|
|
idea. Small enhancements or patches often don't need
|
|
|
|
|
a PEP and can be injected into the Python development work flow with a
|
|
|
|
|
patch submission to the Python `issue tracker`_. The more focussed the
|
|
|
|
|
PEP, the more successful it tends to be. The PEP editor reserves the
|
|
|
|
|
right to reject PEP proposals if they appear too unfocussed or too
|
|
|
|
|
broad. If in doubt, split your PEP into several well-focussed ones.
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
|
|
|
|
Each PEP must have a champion -- someone who writes the PEP using the
|
|
|
|
|
style and format described below, shepherds the discussions in the
|
|
|
|
|
appropriate forums, and attempts to build community consensus around
|
|
|
|
|
the idea. The PEP champion (a.k.a. Author) should first attempt to
|
2004-07-16 15:27:23 -04:00
|
|
|
|
ascertain whether the idea is PEP-able. Posting to the
|
|
|
|
|
comp.lang.python newsgroup (a.k.a. python-list@python.org mailing
|
2010-03-04 22:07:12 -05:00
|
|
|
|
list) or the python-ideas mailing list is the best way to go about this.
|
|
|
|
|
|
|
|
|
|
Vetting an idea publicly before going as far as writing a PEP is meant
|
|
|
|
|
to save the potential author time. Many ideas have been brought
|
|
|
|
|
forward for changing Python that have been rejected for various
|
|
|
|
|
reasons. Asking the Python community first if an idea is original
|
|
|
|
|
helps prevent too much time being spent on something that is
|
|
|
|
|
guaranteed to be rejected based on prior discussions (searching
|
|
|
|
|
the internet does not always do the trick). It also helps to make sure
|
|
|
|
|
the idea is applicable to the entire community and not just the author.
|
|
|
|
|
Just because an idea sounds good to the author does not
|
|
|
|
|
mean it will work for most people in most areas where Python is used.
|
|
|
|
|
|
|
|
|
|
Once the champion has asked the Python community as to whether an
|
|
|
|
|
idea has any chance of acceptance, a draft PEP should be presented to
|
|
|
|
|
python-ideas. This gives the author a chance to flesh out the draft
|
|
|
|
|
PEP to make properly formatted, of high quality, and to address
|
|
|
|
|
initial concerns about the proposal.
|
|
|
|
|
|
|
|
|
|
Following a discussion on python-ideas, the proposal should be sent to
|
|
|
|
|
the `python-dev list <mailto:python-dev@python.org>`__ with the draft
|
|
|
|
|
PEP and the PEP editors <peps@python.org>. This
|
|
|
|
|
draft must be written in PEP style as described below, else it will be
|
|
|
|
|
sent back without further regard until proper formatting rules are
|
|
|
|
|
followed.
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
|
|
|
|
If the PEP editor approves, he will assign the PEP a number, label it
|
2005-08-12 21:37:32 -04:00
|
|
|
|
as Standards Track, Informational, or Process, give it status "Draft",
|
|
|
|
|
and create and check-in the initial draft of the PEP. The PEP editor
|
|
|
|
|
will not unreasonably deny a PEP. Reasons for denying PEP status
|
|
|
|
|
include duplication of effort, being technically unsound, not
|
|
|
|
|
providing proper motivation or addressing backwards compatibility, or
|
|
|
|
|
not in keeping with the Python philosophy. The BDFL (Benevolent
|
|
|
|
|
Dictator for Life, Guido van Rossum) can be consulted during the
|
2005-08-12 21:42:17 -04:00
|
|
|
|
approval phase, and is the final arbiter of the draft's PEP-ability.
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
2010-03-04 22:07:12 -05:00
|
|
|
|
As updates are necessary, the PEP author can check in new versions if
|
|
|
|
|
they have SVN commit permissions, or can email new PEP versions to
|
|
|
|
|
the PEP editor for committing.
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
2005-08-12 21:37:32 -04:00
|
|
|
|
Standards Track PEPs consist of two parts, a design document and a
|
2003-05-03 12:01:32 -04:00
|
|
|
|
reference implementation. The PEP should be reviewed and accepted
|
|
|
|
|
before a reference implementation is begun, unless a reference
|
|
|
|
|
implementation will aid people in studying the PEP. Standards Track
|
2005-08-12 21:37:32 -04:00
|
|
|
|
PEPs must include an implementation -- in the form of code, a patch,
|
|
|
|
|
or a URL to same -- before it can be considered Final.
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
|
|
|
|
PEP authors are responsible for collecting community feedback on a PEP
|
2010-03-04 22:07:12 -05:00
|
|
|
|
before submitting it for review. However, wherever possible, long
|
|
|
|
|
open-ended discussions on public mailing lists should be avoided.
|
|
|
|
|
Strategies to keep the
|
2005-08-12 21:37:32 -04:00
|
|
|
|
discussions efficient include: setting up a separate SIG mailing list
|
2003-05-03 12:01:32 -04:00
|
|
|
|
for the topic, having the PEP author accept private comments in the
|
2005-08-12 21:37:32 -04:00
|
|
|
|
early design phases, setting up a wiki page, etc. PEP authors should
|
|
|
|
|
use their discretion here.
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
|
|
|
|
Once the authors have completed a PEP, they must inform the PEP editor
|
|
|
|
|
that it is ready for review. PEPs are reviewed by the BDFL and his
|
|
|
|
|
chosen consultants, who may accept or reject a PEP or send it back to
|
|
|
|
|
the author(s) for revision. For a PEP that is pre-determined to be
|
|
|
|
|
acceptable (e.g., it is an obvious win as-is and/or its implementation
|
|
|
|
|
has already been checked in) the BDFL may also initiate a PEP review,
|
|
|
|
|
first notifying the PEP author(s) and giving them a chance to make
|
|
|
|
|
revisions.
|
|
|
|
|
|
|
|
|
|
For a PEP to be accepted it must meet certain minimum criteria. It
|
|
|
|
|
must be a clear and complete description of the proposed enhancement.
|
|
|
|
|
The enhancement must represent a net improvement. The proposed
|
|
|
|
|
implementation, if applicable, must be solid and must not complicate
|
|
|
|
|
the interpreter unduly. Finally, a proposed enhancement must be
|
|
|
|
|
"pythonic" in order to be accepted by the BDFL. (However, "pythonic"
|
|
|
|
|
is an imprecise term; it may be defined as whatever is acceptable to
|
|
|
|
|
the BDFL. This logic is intentionally circular.) See PEP 2 [2]_ for
|
|
|
|
|
standard library module acceptance criteria.
|
|
|
|
|
|
|
|
|
|
Once a PEP has been accepted, the reference implementation must be
|
|
|
|
|
completed. When the reference implementation is complete and accepted
|
|
|
|
|
by the BDFL, the status will be changed to "Final".
|
|
|
|
|
|
|
|
|
|
A PEP can also be assigned status "Deferred". The PEP author or
|
|
|
|
|
editor can assign the PEP this status when no progress is being made
|
|
|
|
|
on the PEP. Once a PEP is deferred, the PEP editor can re-assign it
|
|
|
|
|
to draft status.
|
|
|
|
|
|
|
|
|
|
A PEP can also be "Rejected". Perhaps after all is said and done it
|
|
|
|
|
was not a good idea. It is still important to have a record of this
|
|
|
|
|
fact.
|
|
|
|
|
|
|
|
|
|
PEPs can also be replaced by a different PEP, rendering the original
|
|
|
|
|
obsolete. This is intended for Informational PEPs, where version 2 of
|
|
|
|
|
an API can replace version 1.
|
|
|
|
|
|
2007-05-01 11:20:01 -04:00
|
|
|
|
The possible paths of the status of PEPs are as follows:
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
2005-08-12 21:37:32 -04:00
|
|
|
|
.. image:: pep-0001-1.png
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
2005-08-13 14:01:01 -04:00
|
|
|
|
Some Informational and Process PEPs may also have a status of "Active"
|
|
|
|
|
if they are never meant to be completed. E.g. PEP 1 (this PEP).
|
2000-08-07 22:30:55 -04:00
|
|
|
|
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
|
|
|
|
What belongs in a successful PEP?
|
2003-05-03 12:01:32 -04:00
|
|
|
|
=================================
|
|
|
|
|
|
|
|
|
|
Each PEP should have the following parts:
|
|
|
|
|
|
|
|
|
|
1. Preamble -- RFC 822 style headers containing meta-data about the
|
|
|
|
|
PEP, including the PEP number, a short descriptive title (limited
|
|
|
|
|
to a maximum of 44 characters), the names, and optionally the
|
|
|
|
|
contact info for each author, etc.
|
|
|
|
|
|
|
|
|
|
2. Abstract -- a short (~200 word) description of the technical issue
|
|
|
|
|
being addressed.
|
|
|
|
|
|
|
|
|
|
3. Copyright/public domain -- Each PEP must either be explicitly
|
|
|
|
|
labelled as placed in the public domain (see this PEP as an
|
|
|
|
|
example) or licensed under the `Open Publication License`_.
|
|
|
|
|
|
|
|
|
|
4. Specification -- The technical specification should describe the
|
|
|
|
|
syntax and semantics of any new language feature. The
|
|
|
|
|
specification should be detailed enough to allow competing,
|
|
|
|
|
interoperable implementations for any of the current Python
|
|
|
|
|
platforms (CPython, Jython, Python .NET).
|
|
|
|
|
|
|
|
|
|
5. Motivation -- The motivation is critical for PEPs that want to
|
|
|
|
|
change the Python language. It should clearly explain why the
|
|
|
|
|
existing language specification is inadequate to address the
|
|
|
|
|
problem that the PEP solves. PEP submissions without sufficient
|
|
|
|
|
motivation may be rejected outright.
|
|
|
|
|
|
|
|
|
|
6. Rationale -- The rationale fleshes out the specification by
|
|
|
|
|
describing what motivated the design and why particular design
|
|
|
|
|
decisions were made. It should describe alternate designs that
|
|
|
|
|
were considered and related work, e.g. how the feature is supported
|
|
|
|
|
in other languages.
|
|
|
|
|
|
|
|
|
|
The rationale should provide evidence of consensus within the
|
|
|
|
|
community and discuss important objections or concerns raised
|
|
|
|
|
during discussion.
|
|
|
|
|
|
|
|
|
|
7. Backwards Compatibility -- All PEPs that introduce backwards
|
|
|
|
|
incompatibilities must include a section describing these
|
|
|
|
|
incompatibilities and their severity. The PEP must explain how the
|
|
|
|
|
author proposes to deal with these incompatibilities. PEP
|
|
|
|
|
submissions without a sufficient backwards compatibility treatise
|
|
|
|
|
may be rejected outright.
|
|
|
|
|
|
|
|
|
|
8. Reference Implementation -- The reference implementation must be
|
|
|
|
|
completed before any PEP is given status "Final", but it need not
|
|
|
|
|
be completed before the PEP is accepted. It is better to finish
|
|
|
|
|
the specification and rationale first and reach consensus on it
|
|
|
|
|
before writing code.
|
|
|
|
|
|
|
|
|
|
The final implementation must include test code and documentation
|
|
|
|
|
appropriate for either the Python language reference or the
|
|
|
|
|
standard library reference.
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
|
|
|
|
|
2002-08-26 12:19:25 -04:00
|
|
|
|
PEP Formats and Templates
|
2003-05-03 12:01:32 -04:00
|
|
|
|
=========================
|
2002-08-26 12:19:25 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
There are two PEP formats available to authors: plaintext and
|
2006-03-23 22:24:04 -05:00
|
|
|
|
reStructuredText_. Both are UTF-8-encoded text files.
|
2002-08-26 12:19:25 -04:00
|
|
|
|
|
2006-03-23 22:24:04 -05:00
|
|
|
|
Plaintext PEPs are written with minimal structural markup that adheres
|
|
|
|
|
to a rigid style. PEP 9 contains a instructions and a template [3]_
|
|
|
|
|
you can use to get started writing your plaintext PEP.
|
2002-08-26 12:19:25 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
ReStructuredText_ PEPs allow for rich markup that is still quite easy
|
|
|
|
|
to read, but results in much better-looking and more functional HTML.
|
2006-03-23 22:24:04 -05:00
|
|
|
|
PEP 12 contains instructions and a template [4]_ for reStructuredText
|
|
|
|
|
PEPs.
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
There is a Python script that converts both styles of PEPs to HTML for
|
|
|
|
|
viewing on the web [5]_. Parsing and conversion of plaintext PEPs is
|
|
|
|
|
self-contained within the script. reStructuredText PEPs are parsed
|
|
|
|
|
and converted by Docutils_ code called from the script.
|
2002-08-26 12:19:25 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PEP Header Preamble
|
2003-05-03 12:01:32 -04:00
|
|
|
|
===================
|
|
|
|
|
|
|
|
|
|
Each PEP must begin with an RFC 822 style header preamble. The headers
|
|
|
|
|
must appear in the following order. Headers marked with "*" are
|
|
|
|
|
optional and are described below. All other headers are required. ::
|
|
|
|
|
|
|
|
|
|
PEP: <pep number>
|
|
|
|
|
Title: <pep title>
|
2006-04-18 16:52:06 -04:00
|
|
|
|
Version: <svn version string>
|
|
|
|
|
Last-Modified: <svn date string>
|
2003-05-03 12:01:32 -04:00
|
|
|
|
Author: <list of authors' real names and optionally, email addrs>
|
|
|
|
|
* Discussions-To: <email address>
|
|
|
|
|
Status: <Draft | Active | Accepted | Deferred | Rejected |
|
2007-06-19 00:26:23 -04:00
|
|
|
|
Withdrawn | Final | Replaced>
|
2005-08-12 21:37:32 -04:00
|
|
|
|
Type: <Standards Track | Informational | Process>
|
2003-05-03 12:01:32 -04:00
|
|
|
|
* Content-Type: <text/plain | text/x-rst>
|
|
|
|
|
* Requires: <pep numbers>
|
|
|
|
|
Created: <date created on, in dd-mmm-yyyy format>
|
|
|
|
|
* Python-Version: <version number>
|
|
|
|
|
Post-History: <dates of postings to python-list and python-dev>
|
|
|
|
|
* Replaces: <pep number>
|
|
|
|
|
* Replaced-By: <pep number>
|
2010-04-30 15:21:52 -04:00
|
|
|
|
* Resolution: <url>
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
|
|
|
|
The Author header lists the names, and optionally the email addresses
|
|
|
|
|
of all the authors/owners of the PEP. The format of the Author header
|
|
|
|
|
value must be
|
|
|
|
|
|
|
|
|
|
Random J. User <address@dom.ain>
|
|
|
|
|
|
|
|
|
|
if the email address is included, and just
|
|
|
|
|
|
|
|
|
|
Random J. User
|
|
|
|
|
|
|
|
|
|
if the address is not given. For historical reasons the format
|
|
|
|
|
"address@dom.ain (Random J. User)" may appear in a PEP, however new
|
|
|
|
|
PEPs must use the mandated format above, and it is acceptable to
|
|
|
|
|
change to this format when PEPs are updated.
|
|
|
|
|
|
|
|
|
|
If there are multiple authors, each should be on a separate line
|
|
|
|
|
following RFC 2822 continuation line conventions. Note that personal
|
|
|
|
|
email addresses in PEPs will be obscured as a defense against spam
|
|
|
|
|
harvesters.
|
|
|
|
|
|
2010-04-30 15:21:52 -04:00
|
|
|
|
*Note: The Resolution header is required for Standards Track PEPs
|
|
|
|
|
only. It contains a URL that should point to an email message or
|
|
|
|
|
other web resource where the pronouncement about the PEP is made.*
|
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
While a PEP is in private discussions (usually during the initial
|
|
|
|
|
Draft phase), a Discussions-To header will indicate the mailing list
|
|
|
|
|
or URL where the PEP is being discussed. No Discussions-To header is
|
|
|
|
|
necessary if the PEP is being discussed privately with the author, or
|
|
|
|
|
on the python-list or python-dev email mailing lists. Note that email
|
|
|
|
|
addresses in the Discussions-To header will not be obscured.
|
|
|
|
|
|
2005-08-12 21:37:32 -04:00
|
|
|
|
The Type header specifies the type of PEP: Standards Track,
|
|
|
|
|
Informational, or Process.
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
|
|
|
|
The format of a PEP is specified with a Content-Type header. The
|
|
|
|
|
acceptable values are "text/plain" for plaintext PEPs (see PEP 9 [3]_)
|
|
|
|
|
and "text/x-rst" for reStructuredText PEPs (see PEP 12 [4]_).
|
|
|
|
|
Plaintext ("text/plain") is the default if no Content-Type header is
|
|
|
|
|
present.
|
|
|
|
|
|
|
|
|
|
The Created header records the date that the PEP was assigned a
|
|
|
|
|
number, while Post-History is used to record the dates of when new
|
|
|
|
|
versions of the PEP are posted to python-list and/or python-dev. Both
|
|
|
|
|
headers should be in dd-mmm-yyyy format, e.g. 14-Aug-2001.
|
|
|
|
|
|
|
|
|
|
Standards Track PEPs must have a Python-Version header which indicates
|
|
|
|
|
the version of Python that the feature will be released with.
|
2005-08-12 21:37:32 -04:00
|
|
|
|
Informational and Process PEPs do not need a Python-Version header.
|
2003-05-03 12:01:32 -04:00
|
|
|
|
|
|
|
|
|
PEPs may have a Requires header, indicating the PEP numbers that this
|
|
|
|
|
PEP depends on.
|
|
|
|
|
|
|
|
|
|
PEPs may also have a Replaced-By header indicating that a PEP has been
|
|
|
|
|
rendered obsolete by a later document; the value is the number of the
|
|
|
|
|
PEP that replaces the current document. The newer PEP must have a
|
|
|
|
|
Replaces header containing the number of the PEP that it rendered
|
|
|
|
|
obsolete.
|
2001-03-21 12:05:27 -05:00
|
|
|
|
|
2001-08-14 19:58:09 -04:00
|
|
|
|
|
2006-03-23 22:24:04 -05:00
|
|
|
|
Auxiliary Files
|
|
|
|
|
===============
|
|
|
|
|
|
|
|
|
|
PEPs may include auxiliary files such as diagrams. Such files must be
|
|
|
|
|
named ``pep-XXXX-Y.ext``, where "XXXX" is the PEP number, "Y" is a
|
|
|
|
|
serial number (starting at 1), and "ext" is replaced by the actual
|
|
|
|
|
file extension (e.g. "png").
|
|
|
|
|
|
|
|
|
|
|
2001-07-05 14:52:25 -04:00
|
|
|
|
Reporting PEP Bugs, or Submitting PEP Updates
|
2003-05-03 12:01:32 -04:00
|
|
|
|
=============================================
|
|
|
|
|
|
|
|
|
|
How you report a bug, or submit a PEP update depends on several
|
|
|
|
|
factors, such as the maturity of the PEP, the preferences of the PEP
|
|
|
|
|
author, and the nature of your comments. For the early draft stages
|
|
|
|
|
of the PEP, it's probably best to send your comments and changes
|
|
|
|
|
directly to the PEP author. For more mature, or finished PEPs you may
|
2007-08-24 17:23:06 -04:00
|
|
|
|
want to submit corrections to the Python `issue tracker`_ so that your
|
|
|
|
|
changes don't get lost. If the PEP author is a Python developer, assign the
|
2004-08-27 17:19:48 -04:00
|
|
|
|
bug/patch to him, otherwise assign it to the PEP editor.
|
2001-07-05 14:52:25 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
When in doubt about where to send your changes, please check first
|
|
|
|
|
with the PEP author and/or PEP editor.
|
|
|
|
|
|
2007-08-24 17:23:06 -04:00
|
|
|
|
PEP authors who are also Python committers can update the
|
2006-04-18 16:52:06 -04:00
|
|
|
|
PEPs themselves by using "svn commit" to commit their changes.
|
2001-11-12 09:57:18 -05:00
|
|
|
|
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
2002-07-12 12:39:49 -04:00
|
|
|
|
Transferring PEP Ownership
|
2003-05-03 12:01:32 -04:00
|
|
|
|
==========================
|
|
|
|
|
|
|
|
|
|
It occasionally becomes necessary to transfer ownership of PEPs to a
|
|
|
|
|
new champion. In general, we'd like to retain the original author as
|
|
|
|
|
a co-author of the transferred PEP, but that's really up to the
|
|
|
|
|
original author. A good reason to transfer ownership is because the
|
|
|
|
|
original author no longer has the time or interest in updating it or
|
|
|
|
|
following through with the PEP process, or has fallen off the face of
|
|
|
|
|
the 'net (i.e. is unreachable or not responding to email). A bad
|
|
|
|
|
reason to transfer ownership is because you don't agree with the
|
|
|
|
|
direction of the PEP. We try to build consensus around a PEP, but if
|
|
|
|
|
that's not possible, you can always submit a competing PEP.
|
|
|
|
|
|
|
|
|
|
If you are interested in assuming ownership of a PEP, send a message
|
|
|
|
|
asking to take over, addressed to both the original author and the PEP
|
|
|
|
|
editor <peps@python.org>. If the original author doesn't respond to
|
|
|
|
|
email in a timely manner, the PEP editor will make a unilateral
|
|
|
|
|
decision (it's not like such decisions can't be reversed :).
|
2002-07-12 12:39:49 -04:00
|
|
|
|
|
|
|
|
|
|
2007-05-01 11:37:43 -04:00
|
|
|
|
PEP Editor Responsibilities & Workflow
|
|
|
|
|
======================================
|
2007-05-01 00:00:51 -04:00
|
|
|
|
|
|
|
|
|
A PEP editor must subscribe to the <peps@python.org> list. All
|
|
|
|
|
PEP-related correspondence should be sent (or CC'd) to
|
|
|
|
|
<peps@python.org> (but please do not cross-post!).
|
|
|
|
|
|
|
|
|
|
For each new PEP that comes in an editor does the following:
|
|
|
|
|
|
|
|
|
|
* Read the PEP to check if it is ready: sound and complete. The ideas
|
|
|
|
|
must make technical sense, even if they don't seem likely to be
|
|
|
|
|
accepted.
|
|
|
|
|
|
|
|
|
|
* The title should accurately describe the content.
|
|
|
|
|
|
|
|
|
|
* Edit the PEP for language (spelling, grammar, sentence structure,
|
|
|
|
|
etc.), markup (for reST PEPs), code style (examples should match PEP
|
|
|
|
|
8 & 7).
|
|
|
|
|
|
|
|
|
|
If the PEP isn't ready, the editor will send it back to the author for
|
|
|
|
|
revision, with specific instructions.
|
|
|
|
|
|
|
|
|
|
Once the PEP is ready for the repository, the PEP editor will:
|
|
|
|
|
|
|
|
|
|
* Assign a PEP number (almost always just the next available number,
|
|
|
|
|
but sometimes it's a special/joke number, like 666 or 3141).
|
|
|
|
|
|
|
|
|
|
* List the PEP in PEP 0 (in two places: the categorized list, and the
|
|
|
|
|
numeric list).
|
|
|
|
|
|
|
|
|
|
* Add the PEP to SVN. For Subversion repository instructions, see
|
|
|
|
|
`the FAQ for Developers
|
|
|
|
|
<http://www.python.org/dev/faq/#how-do-i-get-a-checkout-of-the-repository-read-only-and-read-write>`_.
|
|
|
|
|
|
|
|
|
|
The command to check out a read-only copy of the repository is::
|
|
|
|
|
|
|
|
|
|
svn checkout http://svn.python.org/projects/peps/trunk peps
|
|
|
|
|
|
|
|
|
|
The command to check out a read-write copy of the repository is::
|
|
|
|
|
|
|
|
|
|
svn checkout svn+ssh://pythondev@svn.python.org/peps/trunk peps
|
|
|
|
|
|
2007-05-01 15:53:12 -04:00
|
|
|
|
In particular, the ``svn:eol-style`` property should be set to ``native``
|
|
|
|
|
and the ``svn:keywords`` property to ``Author Date Id Revision``.
|
|
|
|
|
|
2007-05-01 00:00:51 -04:00
|
|
|
|
* Monitor python.org to make sure the PEP gets added to the site
|
|
|
|
|
properly.
|
|
|
|
|
|
|
|
|
|
* Send email back to the PEP author with next steps (post to
|
2010-09-03 15:08:36 -04:00
|
|
|
|
python-list & -dev).
|
2007-05-01 00:00:51 -04:00
|
|
|
|
|
|
|
|
|
Updates to existing PEPs also come in to peps@python.org. Many PEP
|
|
|
|
|
authors are not SVN committers yet, so we do the commits for them.
|
|
|
|
|
|
|
|
|
|
Many PEPs are written and maintained by developers with write access
|
|
|
|
|
to the Python codebase. The PEP editors monitor the python-checkins
|
|
|
|
|
list for PEP changes, and correct any structure, grammar, spelling, or
|
|
|
|
|
markup mistakes we see.
|
|
|
|
|
|
2007-05-01 11:37:43 -04:00
|
|
|
|
The editors don't pass judgement on PEPs. We merely do the
|
2007-05-01 00:00:51 -04:00
|
|
|
|
administrative & editorial part. Except for times like this, there's
|
|
|
|
|
relatively low volume.
|
|
|
|
|
|
|
|
|
|
Resources:
|
|
|
|
|
|
|
|
|
|
* `How Python is Developed <http://www.python.org/dev/intro/>`_
|
|
|
|
|
|
|
|
|
|
* `Python's Development Process <http://www.python.org/dev/process/>`_
|
|
|
|
|
|
|
|
|
|
* `Why Develop Python? <http://www.python.org/dev/why/>`_
|
|
|
|
|
|
|
|
|
|
* `Development Tools <http://www.python.org/dev/tools/>`_
|
|
|
|
|
|
|
|
|
|
* `Frequently Asked Questions for Developers
|
|
|
|
|
<http://www.python.org/dev/faq/>`_
|
|
|
|
|
|
|
|
|
|
|
2000-08-15 01:54:18 -04:00
|
|
|
|
References and Footnotes
|
2003-05-03 12:01:32 -04:00
|
|
|
|
========================
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
2006-04-18 16:52:06 -04:00
|
|
|
|
.. [1] This historical record is available by the normal SVN commands
|
2003-05-03 12:01:32 -04:00
|
|
|
|
for retrieving older revisions. For those without direct access to
|
2006-04-18 16:52:06 -04:00
|
|
|
|
the SVN tree, you can browse the current and past PEP revisions here:
|
|
|
|
|
http://svn.python.org/view/peps/trunk/
|
2000-07-25 13:59:08 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
.. [2] PEP 2, Procedure for Adding New Modules, Faassen
|
2006-03-23 22:24:04 -05:00
|
|
|
|
(http://www.python.org/dev/peps/pep-0002)
|
2000-08-16 23:11:08 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
.. [3] PEP 9, Sample Plaintext PEP Template, Warsaw
|
2006-03-23 22:24:04 -05:00
|
|
|
|
(http://www.python.org/dev/peps/pep-0009)
|
2001-03-21 12:05:27 -05:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
.. [4] PEP 12, Sample reStructuredText PEP Template, Goodger, Warsaw
|
2006-03-23 22:24:04 -05:00
|
|
|
|
(http://www.python.org/dev/peps/pep-0012)
|
2000-08-16 23:11:08 -04:00
|
|
|
|
|
2006-04-18 16:52:06 -04:00
|
|
|
|
.. [5] The script referred to here is pep2pyramid.py, the successor to
|
|
|
|
|
pep2html.py, both of which live in the same directory in the SVN
|
|
|
|
|
tree as the PEPs themselves. Try ``pep2html.py --help`` for
|
|
|
|
|
details. The URL for viewing PEPs on the web is
|
|
|
|
|
http://www.python.org/dev/peps/.
|
2001-03-21 12:05:27 -05:00
|
|
|
|
|
2007-08-24 17:23:06 -04:00
|
|
|
|
.. _issue tracker:
|
|
|
|
|
http://bugs.python.org/
|
2000-08-17 01:01:20 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
.. _Open Publication License: http://www.opencontent.org/openpub/
|
2001-07-05 14:52:25 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
.. _reStructuredText: http://docutils.sourceforge.net/rst.html
|
2001-08-14 19:58:09 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
.. _Docutils: http://docutils.sourceforge.net/
|
2002-08-26 12:19:25 -04:00
|
|
|
|
|
2000-07-13 02:33:08 -04:00
|
|
|
|
|
2001-03-21 12:05:27 -05:00
|
|
|
|
Copyright
|
2003-05-03 12:01:32 -04:00
|
|
|
|
=========
|
2001-03-21 12:05:27 -05:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
This document has been placed in the public domain.
|
2000-08-16 23:11:08 -04:00
|
|
|
|
|
2000-07-13 02:33:08 -04:00
|
|
|
|
|
2003-05-03 12:01:32 -04:00
|
|
|
|
..
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: indented-text
|
|
|
|
|
indent-tabs-mode: nil
|
|
|
|
|
sentence-end-double-space: t
|
|
|
|
|
fill-column: 70
|
2006-03-02 14:54:50 -05:00
|
|
|
|
coding: utf-8
|
2003-05-03 12:01:32 -04:00
|
|
|
|
End:
|