- Notifications
You must be signed in to change notification settings - Fork0
Python Enhancement Proposals
we-like-parsers/peps
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The PEPs in this repo are published automatically on the web athttp://www.python.org/dev/peps/. To learn more about the purpose ofPEPs and how to go about writing a PEP, please start reading at PEP 1(pep-0001.txt
in this repo). Note that PEP 0, the index PEP, isnow automatically generated, and not committed to the repo.
See theContributing Guidelines.
Original PEP source should be written in reStructuredText format,which is a constrained version of plaintext, and is described inPEP 12. Older PEPs were often written in a more mildly restrictedplaintext format, as described in PEP 9. Thepep2html.py
processing and installation script knows how to produce the HTMLfor either PEP format.
For processing reStructuredText format PEPs, you need the docutilspackage, which is available fromPyPI.If you have pip,pip install docutils
should install it.
PEP 0 is automatically generated based on the metadata headers in otherPEPs. The script handling this isgenpepindex.py
, with supportinglibraries in thepep0
directory.
Do not commit changes with bad formatting. To check the formatting ofa PEP, use the Makefile. In particular, to generate HTML for PEP 999,your source code should be inpep-0999.rst
and the HTML will begenerated topep-0999.html
by the commandmake pep-0999.html
.The default Make target generates HTML for all PEPs.
If you don't have Make, use thepep2html.py
script directly.
python.org includes its own helper modules to render PEPs as HTML, withsuitable links back to the source pages in the version control repository.
These can be found athttps://github.com/python/pythondotorg/tree/master/peps
When making changes to the PEP management process that may impact python.org'srendering pipeline:
- Clone the python.org repository fromhttps://github.com/python/pythondotorg/
- Get set up for local python.org development as perhttps://pythondotorg.readthedocs.io/install.html#manual-setup
- Adjust
PEP_REPO_PATH
inpydotorg/settings/local.py
to refer to yourlocal clone of the PEP repository - Run
./manage.py generate_pep_pages
as described inhttps://pythondotorg.readthedocs.io/pep_generation.html
About
Python Enhancement Proposals
Resources
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Languages
- Python91.4%
- CSS4.7%
- C2.9%
- Other1.0%