2013-11-29 13:26:55 -05:00
|
|
|
Python Enhancement Proposals
|
|
|
|
============================
|
|
|
|
|
2016-08-10 12:38:18 -04:00
|
|
|
.. image:: https://travis-ci.org/python/peps.svg?branch=master
|
|
|
|
:target: https://travis-ci.org/python/peps
|
|
|
|
|
2013-11-29 13:26:55 -05:00
|
|
|
The PEPs in this repo are published automatically on the web at
|
|
|
|
http://www.python.org/dev/peps/. To learn more about the purpose of
|
|
|
|
PEPs and how to go about writing a PEP, please start reading at PEP 1
|
2016-06-16 00:36:43 -04:00
|
|
|
(``pep-0001.txt`` in this repo). Note that PEP 0, the index PEP, is
|
|
|
|
now automatically generated, and not committed to the repo.
|
2013-11-29 13:26:55 -05:00
|
|
|
|
|
|
|
|
2002-08-26 11:36:55 -04:00
|
|
|
reStructuredText for PEPs
|
|
|
|
=========================
|
|
|
|
|
|
|
|
Original PEP source may be written using two standard formats, a
|
2002-08-29 23:13:40 -04:00
|
|
|
mildly idiomatic plaintext format and the reStructuredText format
|
2013-11-29 13:26:55 -05:00
|
|
|
(also, technically plaintext). These two formats are described in
|
2016-06-16 00:36:43 -04:00
|
|
|
PEP 9 and PEP 12 respectively. The ``pep2html.py`` processing and
|
2002-08-29 23:13:40 -04:00
|
|
|
installation script knows how to produce the HTML for either PEP
|
2011-03-26 13:11:51 -04:00
|
|
|
format.
|
2002-08-26 11:36:55 -04:00
|
|
|
|
2011-03-26 13:11:51 -04:00
|
|
|
For processing reStructuredText format PEPs, you need the docutils
|
2016-06-16 00:36:43 -04:00
|
|
|
package, which is available from `PyPI <http://pypi.python.org>`_.
|
|
|
|
If you have pip, ``pip install docutils`` should install it.
|
2013-11-29 13:34:39 -05:00
|
|
|
|
|
|
|
|
|
|
|
Generating HTML
|
|
|
|
===============
|
|
|
|
|
|
|
|
Do not commit changes with bad formatting. To check the formatting of
|
|
|
|
a PEP, use the Makefile. In particular, to generate HTML for PEP 999,
|
2016-06-16 00:36:43 -04:00
|
|
|
your source code should be in ``pep-0999.txt`` and the HTML will be
|
|
|
|
generated to ``pep-0999.html`` by the command ``make pep-0999.html``.
|
|
|
|
The default Make target generates HTML for all PEPs. If you don't have
|
|
|
|
Make, use the ``pep2html.py`` script.
|