PEP 9, Sample PEP Template, Barry Warsaw

This commit is contained in:
Barry Warsaw 2001-08-14 23:59:22 +00:00
parent 9a5ae7dfc2
commit 7a54f094ef
2 changed files with 189 additions and 0 deletions

View File

@ -32,6 +32,7 @@ Index by Category
I 6 Bug Fix Releases Aahz
I 7 Style Guide for C Code van Rossum
I 8 Style Guide for Python Code van Rossum, Warsaw
I 9 Sample PEP Template Warsaw
Other Informational PEPs
@ -138,6 +139,7 @@ Numerical Index
I 6 Bug Fix Releases Aahz
I 7 Style Guide for C Code van Rossum
I 8 Style Guide for Python Code van Rossum, Warsaw
I 9 Sample PEP Template Warsaw
I 42 Small Feature Requests Hylton
SF 100 Python Unicode Integration Lemburg

187
pep-0009.txt Normal file
View File

@ -0,0 +1,187 @@
PEP: 9
Title: Sample PEP Template
Version: $Revision$
Last-Modified: $Date$
Author: barry@zope.com (Barry A. Warsaw)
Status: Active
Type: Informational
Created: 14-Aug-2001
Post-History:
Abstract
This PEP provides a boilerplate or sample template for creating
your own PEPs. This should make it easy for you to conform your
own PEPs to the style outlined in PEP 1, PEP Guidelines[1].
Rationale
PEP submissions come in a wide variety of forms, not all adhering
to the style guidelines set forth in PEP 1. Use this template, in
conjunction with the prose guidelines in PEP 1, to ensure that
your PEP submission won't get automatically rejected because of
form.
How to Use This Template for Standard Track PEPs
First, decide if your PEP is going to be Informational or
Standards Track. Most PEPs are Standards Track; if yours is, then
make a copy of this file and perform the following edits:
- replace the "PEP: 9" header with "PEP: XXX" since you don't yet
have a PEP number assignment.
- Change the Title: header to the title of your PEP.
- Leave the Version: and Last-Modified: headers alone; we'll take
care of those when we check your PEP into CVS.
- Change the Author: header to include your email address and
name. Be sure to follow the format carefully: your email
address must appear first, and it should not be contained in
angle brackets. Your full name should appear second and it
should appear in parentheses.
- If there is a mailing list for discussion of your new feature,
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.
- Change the Status: header to "Draft".
- Change the Type: header to "Standards Track".
- 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
the format carefully: it must be in dd-mmm-yyyy format, where
the mmm is the 3 letter month abbreviation.
- 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:
Python-Version: 2.2
- Leave Post-History: alone for now; you'll add dates to this
header after your PEP has been assigned a number and you've
posted your PEP to python-list@python.org or
python-dev@python.org.
- Add a Replaces: header if your PEP describes a feature that will
replace a feature described in some Final PEP. Usually you
won't need to add this header. It's also unlikely that you'll
ever add a Replaced-By: header.
- 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 PEP 1 style guidelines, specifically on
the prohibition of tab characters and the indentation
requirements.
- Update your References and Copyright section. Usually you'll
place your PEP into the public domain, in which case just leave
the Copyright section alone. Alternatively, you can use the
Open Publication License[2], but public domain is still strongly
preferred.
- Leave the little Emacs turd at the end of this file alone,
including the formfeed character (^L, or \f).
- Send your PEP submission to the PEP editor, along with $100k in
unmarked pennies. (Just kidding, I wanted to see if you were
still awake. :)
How to Use This Template for Informational PEPs
If your PEP is an Information PEP, make a copy of this file and
perform the following edits:
- replace the "PEP: 9" header with "PEP: XXX" since you don't yet
have a PEP number assignment.
- Change the Title: header to the title of your PEP.
- Leave the Version: and Last-Modified: headers alone; we'll take
care of those when we check your PEP into CVS.
- Change the Author: header to include your email address and
name. Be sure to follow the format carefully: your email
address must appear first, and it should not be contained in
angle brackets. Your full name should appear second and it
should appear in parentheses.
- If there is a mailing list for discussion of your new feature,
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 Information PEPs don't have a Discussions-To:
header.
- Change the Status: header to "Active".
- Change the Type: header to "Informational".
- Change the Created: header to today's date. Be sure to follow
the format carefully: it must be in dd-mmm-yyyy format, where
the mmm is the 3 letter month abbreviation.
- Leave Post-History: alone for now; you'll add dates to this
header after your PEP has been assigned a number and you've
posted your PEP to python-list@python.org or
python-dev@python.org.
- 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 PEP 1 style guidelines, specifically on
the prohibition of tab characters and the indentation
requirements.
- Update your References and Copyright section. Usually you'll
place your PEP into the public domain, in which case just leave
the Copyright section alone. Alternatively, you can use the
Open Publication License[2], but public domain is still strongly
preferred.
- Leave the little Emacs turd at the end of this file alone,
including the formfeed character (^L, or \f).
- Send your PEP submission to the PEP editor, along with $100k in
unmarked pennies. (Just kidding, I wanted to see if you were
still awake. :)
References
[1] PEP 1, PEP Purpose and Guidelines
http://www.python.org/peps/pep-0001.html
[2] http://www.opencontent.org/openpub/
Copyright
This document has been placed in the public domain.
Local Variables:
mode: indented-text
indent-tabs-mode: nil
End: