Python Enhancement Proposals
Go to file
Serhiy Storchaka 425a46fb20 Fix an en-dash used instead of a hyphen in a long option. (#235) 2017-04-02 00:03:21 +03:00
pep-0418
pep-0426
pep-0433
pep-0446
pep-0505
pep-0532
pep0
.gitignore
.travis.yml
Makefile
PyRSS2Gen.py
README.rst
docutils.conf
genpepindex.py
pep-0001-1.png
pep-0001.txt
pep-0002.txt
pep-0003.txt
pep-0004.txt
pep-0005.txt
pep-0006.txt
pep-0007.txt
pep-0008.txt
pep-0009.txt
pep-0010.txt
pep-0011.txt
pep-0012.txt
pep-0020.txt
pep-0042.txt
pep-0100.txt
pep-0101.txt
pep-0102.txt
pep-0103.txt
pep-0160.txt
pep-0200.txt
pep-0201.txt
pep-0202.txt
pep-0203.txt
pep-0204.txt
pep-0205.txt
pep-0206.txt
pep-0207.txt
pep-0208.txt
pep-0209.txt
pep-0210.txt
pep-0211.txt
pep-0212.txt
pep-0213.txt
pep-0214.txt
pep-0215.txt
pep-0216.txt
pep-0217.txt
pep-0218.txt
pep-0219.txt
pep-0220.txt
pep-0221.txt
pep-0222.txt
pep-0223.txt
pep-0224.txt
pep-0225.txt
pep-0226.txt
pep-0227.txt
pep-0228.txt
pep-0229.txt
pep-0230.txt
pep-0231.txt
pep-0232.txt
pep-0233.txt
pep-0234.txt
pep-0235.txt
pep-0236.txt
pep-0237.txt
pep-0238.txt
pep-0239.txt
pep-0240.txt
pep-0241.txt
pep-0242.txt
pep-0243.txt
pep-0244.txt
pep-0245.txt
pep-0246.txt
pep-0247.txt
pep-0248.txt
pep-0249.txt
pep-0250.txt
pep-0251.txt
pep-0252.txt
pep-0253.txt
pep-0254.txt
pep-0255.txt
pep-0256.txt
pep-0257.txt
pep-0258.txt
pep-0259.txt
pep-0260.txt
pep-0261.txt
pep-0262.txt
pep-0263.txt
pep-0264.txt
pep-0265.txt
pep-0266.txt
pep-0267.txt
pep-0268.txt
pep-0269.txt
pep-0270.txt
pep-0271.txt
pep-0272.txt
pep-0273.txt
pep-0274.txt
pep-0275.txt
pep-0276.txt
pep-0277.txt
pep-0278.txt
pep-0279.txt
pep-0280.txt
pep-0281.txt
pep-0282.txt
pep-0283.txt
pep-0284.txt
pep-0285.txt
pep-0286.txt
pep-0287.txt
pep-0288.txt
pep-0289.txt
pep-0290.txt
pep-0291.txt
pep-0292.txt
pep-0293.txt
pep-0294.txt
pep-0295.txt
pep-0296.txt
pep-0297.txt
pep-0298.txt
pep-0299.txt
pep-0301.txt
pep-0302.txt
pep-0303.txt
pep-0304.txt
pep-0305.txt
pep-0306.txt
pep-0307.txt
pep-0308.txt
pep-0309.txt
pep-0310.txt
pep-0311.txt
pep-0312.txt
pep-0313.txt
pep-0314.txt
pep-0315.txt
pep-0316.txt
pep-0317.txt
pep-0318.txt
pep-0319.txt
pep-0320.txt
pep-0321.txt
pep-0322.txt
pep-0323.txt
pep-0324.txt
pep-0325.txt
pep-0326.txt
pep-0327.txt
pep-0328.txt
pep-0329.txt
pep-0330.txt
pep-0331.txt
pep-0332.txt
pep-0333.txt
pep-0334.txt
pep-0335.txt
pep-0336.txt
pep-0337.txt
pep-0338.txt
pep-0339.txt
pep-0340.txt
pep-0341.txt
pep-0342.txt
pep-0343.txt
pep-0344.txt
pep-0345.txt
pep-0346.txt
pep-0347.txt
pep-0348.txt
pep-0349.txt
pep-0350.txt
pep-0351.txt
pep-0352.txt
pep-0353.txt
pep-0354.txt
pep-0355.txt
pep-0356.txt
pep-0357.txt
pep-0358.txt
pep-0359.txt
pep-0360.txt
pep-0361.txt
pep-0362.txt
pep-0363.txt
pep-0364.txt
pep-0365.txt
pep-0366.txt
pep-0367.txt
pep-0368.txt
pep-0369.txt
pep-0370.txt
pep-0371.txt
pep-0372.txt
pep-0373.txt
pep-0374.txt
pep-0375.txt
pep-0376.txt Fix an en-dash used instead of a hyphen in a long option. (#235) 2017-04-02 00:03:21 +03:00
pep-0377.txt
pep-0378.txt
pep-0379.txt
pep-0380.txt
pep-0381.txt
pep-0382.txt
pep-0383.txt
pep-0384.txt
pep-0385.txt
pep-0386.txt
pep-0387.txt
pep-0389.txt
pep-0390.txt
pep-0391.txt
pep-0392.txt
pep-0393.txt
pep-0394.txt
pep-0395.txt
pep-0396.txt
pep-0397.txt
pep-0398.txt
pep-0399.txt
pep-0400.txt
pep-0401.txt
pep-0402.txt
pep-0403.txt
pep-0404.txt
pep-0405.txt
pep-0406.txt
pep-0407.txt
pep-0408.txt
pep-0409.txt
pep-0410.txt
pep-0411.txt
pep-0412.txt
pep-0413.txt
pep-0414.txt
pep-0415.txt
pep-0416.txt
pep-0417.txt
pep-0418.txt
pep-0419.txt
pep-0420.txt
pep-0421.txt
pep-0422.txt
pep-0423.txt
pep-0424.txt
pep-0425.txt
pep-0426.txt
pep-0427.txt
pep-0428.txt
pep-0429.txt
pep-0430.txt
pep-0431.txt
pep-0432.txt
pep-0433.txt
pep-0434.txt
pep-0435.txt
pep-0436.txt
pep-0437.txt
pep-0438.txt
pep-0439.txt
pep-0440.txt
pep-0441.txt
pep-0442.txt
pep-0443.txt
pep-0444.txt
pep-0445.txt
pep-0446.txt
pep-0447.txt
pep-0448.txt
pep-0449.txt
pep-0450.txt
pep-0451.txt
pep-0452.txt
pep-0453.txt
pep-0454.txt
pep-0455.txt
pep-0456.txt
pep-0457.txt
pep-0458-1.png
pep-0458-2.png
pep-0458-3.png
pep-0458.txt
pep-0459.txt
pep-0460.txt
pep-0461.txt
pep-0462.txt
pep-0463.txt
pep-0464.txt
pep-0465.txt
pep-0466.txt
pep-0467.txt
pep-0468.txt
pep-0469.txt
pep-0470.txt
pep-0471.txt
pep-0472.txt
pep-0473.txt
pep-0474.txt
pep-0475.txt
pep-0476.txt
pep-0477.txt
pep-0478.txt
pep-0479.txt
pep-0480-1.png
pep-0480.txt
pep-0481.txt
pep-0482.txt
pep-0483.txt
pep-0484.txt
pep-0485.txt
pep-0486.txt
pep-0487.txt
pep-0488.txt
pep-0489.txt
pep-0490.txt
pep-0491.txt
pep-0492.txt
pep-0493.txt
pep-0494.txt
pep-0495-daylightsavings.png
pep-0495-fold-2.png
pep-0495-fold.svg
pep-0495-gap.png
pep-0495-gap.svg
pep-0495.txt
pep-0496.txt
pep-0497.txt
pep-0498.txt PEP 498: Capitalize the F at the start of the sentence (#233) 2017-03-29 11:07:50 -07:00
pep-0499.txt
pep-0500.txt
pep-0501.txt
pep-0502.txt
pep-0503.txt
pep-0504.txt
pep-0505.txt
pep-0506.txt
pep-0507.txt
pep-0508.txt
pep-0509.txt
pep-0510.txt
pep-0511.txt
pep-0512.txt
pep-0513.txt
pep-0514.txt
pep-0515.txt
pep-0516.txt
pep-0517.txt
pep-0518.txt
pep-0519.txt
pep-0520.txt
pep-0521.txt
pep-0522.txt
pep-0523.txt
pep-0524.txt
pep-0525-1.png
pep-0525.txt
pep-0526.txt
pep-0527.txt
pep-0528.txt
pep-0529.txt
pep-0530.txt
pep-0531.txt
pep-0532.txt
pep-0533.txt
pep-0534.txt
pep-0535.txt
pep-0536.txt
pep-0537.txt
pep-0538.txt
pep-0539.txt
pep-0540.txt
pep-0541.txt
pep-0542.txt
pep-0543.rst
pep-0544.txt
pep-0545.txt
pep-0628.txt
pep-0666.txt
pep-0754.txt
pep-3000.txt
pep-3001.txt
pep-3002.txt
pep-3003.txt
pep-3099.txt
pep-3100.txt
pep-3101.txt
pep-3102.txt
pep-3103.txt
pep-3104.txt
pep-3105.txt
pep-3106.txt
pep-3107.txt
pep-3108.txt
pep-3109.txt
pep-3110.txt
pep-3111.txt
pep-3112.txt
pep-3113.txt
pep-3114.txt
pep-3115.txt
pep-3116.txt
pep-3117.txt
pep-3118.txt
pep-3119.txt
pep-3120.txt
pep-3121.txt
pep-3122.txt
pep-3123.txt
pep-3124.txt
pep-3125.txt
pep-3126.txt
pep-3127.txt
pep-3128.txt
pep-3129.txt
pep-3130.txt
pep-3131.txt
pep-3132.txt
pep-3133.txt
pep-3134.txt
pep-3135.txt
pep-3136.txt
pep-3137.txt
pep-3138.txt
pep-3139.txt
pep-3140.txt
pep-3141.txt
pep-3142.txt
pep-3143.txt
pep-3144.txt
pep-3145.txt
pep-3146.txt
pep-3147-1.dia
pep-3147-1.png
pep-3147.txt
pep-3148.txt
pep-3149.txt
pep-3150.txt
pep-3151.txt
pep-3152.txt
pep-3153.txt
pep-3154.txt
pep-3155.txt
pep-3156.txt
pep-3333.txt
pep-html-template
pep.css
pep2html.py
pep2pyramid.py
pep2rss.py
pyramid-pep-template
roman.py
scan-ops.py
style.css

README.rst

Python Enhancement Proposals
============================

.. image:: https://travis-ci.org/python/peps.svg?branch=master
    :target: https://travis-ci.org/python/peps

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
(``pep-0001.txt`` in this repo).  Note that PEP 0, the index PEP, is
now automatically generated, and not committed to the repo.


reStructuredText for PEPs
=========================

Original PEP source should be written in reStructuredText format,
which is a constrained version of plaintext, and is described in 
PEP 12.  Older PEPs were often written in a more mildly restricted
plaintext format, as described in PEP 9.  The ``pep2html.py`` 
processing and installation script knows how to produce the HTML 
for either PEP format.

For processing reStructuredText format PEPs, you need the docutils
package, which is available from `PyPI <http://pypi.python.org>`_.
If you have pip, ``pip install docutils`` should install it.


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,
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.