2001-08-14 19:59:22 -04:00
|
|
|
|
PEP: 9
|
2002-08-26 12:29:31 -04:00
|
|
|
|
Title: Sample Plaintext PEP Template
|
2001-08-14 19:59:22 -04:00
|
|
|
|
Version: $Revision$
|
|
|
|
|
Last-Modified: $Date$
|
2007-06-28 15:53:41 -04:00
|
|
|
|
Author: Barry Warsaw <barry@python.org>
|
2016-01-05 18:33:02 -05:00
|
|
|
|
Status: Withdrawn
|
2007-06-19 00:52:34 -04:00
|
|
|
|
Type: Process
|
2002-08-26 12:29:31 -04:00
|
|
|
|
Content-Type: text/plain
|
2001-08-14 19:59:22 -04:00
|
|
|
|
Created: 14-Aug-2001
|
|
|
|
|
Post-History:
|
2016-01-05 18:35:21 -05:00
|
|
|
|
Resolution: https://mail.python.org/mailman/private/peps/2016-January/001165.html
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
|
|
|
|
|
2016-01-05 18:33:02 -05:00
|
|
|
|
Update
|
|
|
|
|
|
|
|
|
|
As of 05-Jan-2016, this PEP is officially deprecated and replaced
|
|
|
|
|
by PEP 12. All PEPs should now use the reStructuredText format
|
|
|
|
|
described by PEP 12, and plaintext PEPs will no longer be
|
|
|
|
|
accepted, however you may still see legacy PEPs written using the
|
|
|
|
|
plaintext style.
|
|
|
|
|
|
2001-08-14 19:59:22 -04:00
|
|
|
|
Abstract
|
|
|
|
|
|
|
|
|
|
This PEP provides a boilerplate or sample template for creating
|
2002-08-26 12:29:31 -04:00
|
|
|
|
your own plaintext PEPs. In conjunction with the content
|
|
|
|
|
guidelines in PEP 1 [1], this should make it easy for you to
|
|
|
|
|
conform your own PEPs to the format outlined below.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2001-11-13 14:12:03 -05:00
|
|
|
|
Note: if you are reading this PEP via the web, you should first
|
2002-08-26 12:29:31 -04:00
|
|
|
|
grab the plaintext source of this PEP in order to complete the
|
|
|
|
|
steps below. DO NOT USE THE HTML FILE AS YOUR TEMPLATE!
|
2001-11-13 14:12:03 -05:00
|
|
|
|
|
2006-03-23 09:28:55 -05:00
|
|
|
|
To get the source this (or any) PEP, look at the top of the HTML
|
|
|
|
|
page and click on the date & time on the "Last-Modified" line. It
|
|
|
|
|
is a link to the source text in the Python repository.
|
2001-11-13 14:12:03 -05:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
If you would prefer to use lightweight markup in your PEP, please
|
|
|
|
|
see PEP 12, "Sample reStructuredText PEP Template" [2].
|
|
|
|
|
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
|
|
|
|
Rationale
|
|
|
|
|
|
|
|
|
|
PEP submissions come in a wide variety of forms, not all adhering
|
2002-08-26 12:29:31 -04:00
|
|
|
|
to the format guidelines set forth below. Use this template, in
|
|
|
|
|
conjunction with the content guidelines in PEP 1, to ensure that
|
2001-08-14 19:59:22 -04:00
|
|
|
|
your PEP submission won't get automatically rejected because of
|
|
|
|
|
form.
|
|
|
|
|
|
2001-08-15 11:28:57 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
How to Use This Template
|
2001-08-15 11:28:57 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
To use this template you must first decide whether your PEP is
|
|
|
|
|
going to be an Informational or Standards Track PEP. Most PEPs
|
|
|
|
|
are Standards Track because they propose a new feature for the
|
|
|
|
|
Python language or standard library. When in doubt, read PEP 1
|
|
|
|
|
for details or contact the PEP editors <peps@python.org>.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
Once you've decided which type of PEP yours is going to be, follow
|
|
|
|
|
the directions below.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- Make a copy of this file (.txt file, not HTML!) and perform the
|
|
|
|
|
following edits.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- Replace the "PEP: 9" header with "PEP: XXX" since you don't yet
|
2001-08-14 19:59:22 -04:00
|
|
|
|
have a PEP number assignment.
|
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- Change the Title header to the title of your PEP.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- Leave the Version and Last-Modified headers alone; we'll take
|
2005-11-10 09:42:20 -05:00
|
|
|
|
care of those when we check your PEP into Python's Subversion
|
|
|
|
|
repository. These headers consist of keywords ("Revision" and
|
|
|
|
|
"Date" enclosed in "$"-signs) which are automatically expanded
|
|
|
|
|
by the repository. Please do not edit the expanded date or
|
|
|
|
|
revision text.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- Change the Author header to include your name, and optionally
|
2002-07-30 12:23:15 -04:00
|
|
|
|
your email address. Be sure to follow the format carefully:
|
|
|
|
|
your name must appear first, and it must not be contained in
|
2002-08-26 12:29:31 -04:00
|
|
|
|
parentheses. Your email address may appear second (or it can be
|
|
|
|
|
omitted) and if it appears, it must appear in angle brackets.
|
|
|
|
|
It is okay to obfuscate your email address.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
|
|
|
|
- If there is a mailing list for discussion of your new feature,
|
2002-08-26 12:29:31 -04:00
|
|
|
|
add a Discussions-To header right after the Author header. You
|
|
|
|
|
should not add a Discussions-To header if the mailing list to be
|
|
|
|
|
used is either python-list@python.org or python-dev@python.org,
|
|
|
|
|
or if discussions should be sent to you directly. Most
|
|
|
|
|
Informational PEPs don't have a Discussions-To header.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- Change the Status header to "Draft".
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- For Standards Track PEPs, change the Type header to "Standards
|
|
|
|
|
Track".
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- For Informational PEPs, change the Type header to
|
|
|
|
|
"Informational".
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- For Standards Track PEPs, if your feature depends on the
|
|
|
|
|
acceptance of some other currently in-development PEP, add a
|
|
|
|
|
Requires header right after the Type header. The value should
|
|
|
|
|
be the PEP number of the PEP yours depends on. Don't add this
|
|
|
|
|
header if your dependent feature is described in a Final PEP.
|
|
|
|
|
|
|
|
|
|
- Change the Created header to today's date. Be sure to follow
|
2001-08-14 19:59:22 -04:00
|
|
|
|
the format carefully: it must be in dd-mmm-yyyy format, where
|
2001-09-07 18:23:29 -04:00
|
|
|
|
the mmm is the 3 English letter month abbreviation, e.g. one of
|
|
|
|
|
Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- For Standards Track PEPs, after the Created header, add a
|
|
|
|
|
Python-Version header and set the value to the next planned
|
|
|
|
|
version of Python, i.e. the one your new feature will hopefully
|
|
|
|
|
make its first appearance in. Do not use an alpha or beta
|
|
|
|
|
release designation here. Thus, if the last version of Python
|
|
|
|
|
was 2.2 alpha 1 and you're hoping to get your new feature into
|
|
|
|
|
Python 2.2, set the header to:
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
|
|
|
|
Python-Version: 2.2
|
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- Leave Post-History alone for now; you'll add dates to this
|
2001-09-07 18:23:29 -04:00
|
|
|
|
header each time you post your PEP to python-list@python.org or
|
|
|
|
|
python-dev@python.org. E.g. if you posted your PEP to the lists
|
2002-08-26 12:29:31 -04:00
|
|
|
|
on August 14, 2001 and September 3, 2001, the Post-History
|
2001-09-07 18:23:29 -04:00
|
|
|
|
header would look like:
|
|
|
|
|
|
|
|
|
|
Post-History: 14-Aug-2001, 03-Sept-2001
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2001-09-07 18:45:52 -04:00
|
|
|
|
You must manually add new dates and check them in. If you don't
|
|
|
|
|
have check-in privileges, send your changes to the PEP editor.
|
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- Add a Replaces header if your PEP obsoletes an earlier PEP. The
|
|
|
|
|
value of this header is the number of the PEP that your new PEP
|
|
|
|
|
is replacing. Only add this header if the older PEP is in
|
|
|
|
|
"final" form, i.e. is either Accepted, Final, or Rejected. You
|
|
|
|
|
aren't replacing an older open PEP if you're submitting a
|
|
|
|
|
competing idea.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- Now write your Abstract, Rationale, and other content for your
|
|
|
|
|
PEP, replacing all this gobbledygook with your own text. Be sure
|
|
|
|
|
to adhere to the format guidelines below, specifically on the
|
|
|
|
|
prohibition of tab characters and the indentation requirements.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
|
|
|
|
- Update your References and Copyright section. Usually you'll
|
|
|
|
|
place your PEP into the public domain, in which case just leave
|
2002-08-26 12:29:31 -04:00
|
|
|
|
the "Copyright" section alone. Alternatively, you can use the
|
|
|
|
|
Open Publication License[3], but public domain is still strongly
|
2001-08-14 19:59:22 -04:00
|
|
|
|
preferred.
|
|
|
|
|
|
|
|
|
|
- Leave the little Emacs turd at the end of this file alone,
|
2002-08-26 12:29:31 -04:00
|
|
|
|
including the formfeed character ("^L", or \f).
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
- Send your PEP submission to the PEP editors (peps@python.org),
|
|
|
|
|
along with $100k in unmarked pennies. (Just kidding, I wanted
|
|
|
|
|
to see if you were still awake. :)
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
Plaintext PEP Formatting Requirements
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
PEP headings must begin in column zero and the initial letter of
|
|
|
|
|
each word must be capitalized as in book titles. Acronyms should
|
|
|
|
|
be in all capitals. The body of each section must be indented 4
|
|
|
|
|
spaces. Code samples inside body sections should be indented a
|
|
|
|
|
further 4 spaces, and other indentation can be used as required to
|
|
|
|
|
make the text readable. You must use two blank lines between the
|
|
|
|
|
last line of a section's body and the next section heading.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
You must adhere to the Emacs convention of adding two spaces at
|
|
|
|
|
the end of every sentence. You should fill your paragraphs to
|
|
|
|
|
column 70, but under no circumstances should your lines extend
|
|
|
|
|
past column 79. If your code samples spill over column 79, you
|
|
|
|
|
should rewrite them.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
Tab characters must never appear in the document at all. A PEP
|
|
|
|
|
should include the standard Emacs stanza included by example at
|
|
|
|
|
the bottom of this PEP.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
When referencing an external web page in the body of a PEP, you
|
|
|
|
|
should include the title of the page in the text, with a
|
|
|
|
|
footnote reference to the URL. Do not include the URL in the body
|
|
|
|
|
text of the PEP. E.g.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
Refer to the Python Language web site [1] for more details.
|
|
|
|
|
...
|
|
|
|
|
[1] http://www.python.org
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
When referring to another PEP, include the PEP number in the body
|
|
|
|
|
text, such as "PEP 1". The title may optionally appear. Add a
|
|
|
|
|
footnote reference, a number in square brackets. The footnote
|
|
|
|
|
body should include the PEP's title and author. It may optionally
|
|
|
|
|
include the explicit URL on a separate line, but only in the
|
|
|
|
|
References section. Note that the pep2html.py script will
|
|
|
|
|
calculate URLs automatically. For example:
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
...
|
|
|
|
|
Refer to PEP 1 [7] for more information about PEP style
|
|
|
|
|
...
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
References
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
[7] PEP 1, PEP Purpose and Guidelines, Warsaw, Hylton
|
2008-08-10 13:25:11 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0001/
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
If you decide to provide an explicit URL for a PEP, please use
|
|
|
|
|
this as the URL template:
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2008-08-10 13:25:11 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-xxxx/
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
PEP numbers in URLs must be padded with zeros from the left, so as
|
|
|
|
|
to be exactly 4 characters wide, however PEP numbers in the text
|
|
|
|
|
are never padded.
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
References
|
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
[1] PEP 1, PEP Purpose and Guidelines, Warsaw, Hylton
|
2008-08-10 13:25:11 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0001/
|
2002-08-26 12:29:31 -04:00
|
|
|
|
|
|
|
|
|
[2] PEP 12, Sample reStructuredText PEP Template, Goodger, Warsaw
|
2008-08-10 13:25:11 -04:00
|
|
|
|
http://www.python.org/dev/peps/pep-0012/
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
2002-08-26 12:29:31 -04:00
|
|
|
|
[3] http://www.opencontent.org/openpub/
|
2001-08-14 19:59:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Copyright
|
|
|
|
|
|
|
|
|
|
This document has been placed in the public domain.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: indented-text
|
|
|
|
|
indent-tabs-mode: nil
|
2002-04-01 10:59:19 -05:00
|
|
|
|
sentence-end-double-space: t
|
2001-09-07 18:23:29 -04:00
|
|
|
|
fill-column: 70
|
2006-03-02 14:54:50 -05:00
|
|
|
|
coding: utf-8
|
2001-08-14 19:59:22 -04:00
|
|
|
|
End:
|