[Python-checkins] r54822 - sandbox/trunk/pep0/pep0.py
brett.cannon
python-checkins at python.org
Sat Apr 14 02:49:05 CEST 2007
Author: brett.cannon
Date: Sat Apr 14 02:48:59 2007
New Revision: 54822
Modified:
sandbox/trunk/pep0/pep0.py
Log:
Output key information.
Modified: sandbox/trunk/pep0/pep0.py
==============================================================================
--- sandbox/trunk/pep0/pep0.py (original)
+++ sandbox/trunk/pep0/pep0.py Sat Apr 14 02:48:59 2007
@@ -4,6 +4,9 @@
import os
import re
+type_values = ("Standards Track", "Informational", "Process")
+status_values = ("Accepted", "Rejected", "Withdrawn", "Deferred", "Final")
+
def consume_headers(directory='.'):
"""Pull out metadata for every PEP in the specified directory and return
them in a list sorted by PEP name."""
@@ -178,7 +181,28 @@
else:
peps = [consume_pep(path)]
+
+ #XXX meta, info, accepted, open_, done, empty, dead = sort_peps(peps)
+
for pep in peps:
write_pep(pep, stdout)
- #meta, info, accepted, open_, done, empty, dead = sort_peps(peps)
+ print
+ print
+ print "Key"
+ print
+ for type_ in type_values:
+ print " %s - %s PEP" % (type_[0], type_)
+ print
+ for status in status_values:
+ print " %s - %s proposal" % (status[0], status)
+
+ print
+ print
+ print "Owners"
+ print
+ # XXX list by last name, sort (take into account van/von and Jr.), list
+ # nickname, and
+ # output with email. Need to know longest one for both fields to make sure
+ # list header is long enough and proper padding between name and email is
+ # done.
More information about the Python-checkins
mailing list