Commit Graph

1058 Commits

Author SHA1 Message Date
David Goodger c44a73d95a vertical whitespace improvements 2002-10-18 05:19:39 +00:00
David Goodger 623c977f6e updated for Docutils API changes 2002-10-18 05:19:08 +00:00
Barry Warsaw 8e4c8019b1 Added a note on compound statements after remarks from David Goodger.
Make the code samples agree with this recommendation. ;)
2002-10-17 15:32:18 +00:00
Andrew M. Kuchling 5f41fd9b90 BDFL ruling: Add section on open issues and leave it at that 2002-10-15 00:24:12 +00:00
Andrew M. Kuchling ca7b344a47 Update description of sets to match the 2.3 sets.py 2002-10-13 21:02:35 +00:00
Andrew M. Kuchling fc4b0a2582 Forgot the numeric list -- mark PEP 262 as deferred 2002-10-13 20:22:45 +00:00
Andrew M. Kuchling 4a9868c159 Mark PEP 262 as deferred 2002-10-13 20:21:17 +00:00
Andrew M. Kuchling 729bd94f81 Add two methods to interface (old change) 2002-10-13 20:20:23 +00:00
Martin v. Löwis b1c21a1b80 The UTF-7 codec is implemented. 2002-10-13 14:17:00 +00:00
Martin v. Löwis e3164d0fcb Update status for PEP 277. 2002-10-07 18:38:47 +00:00
Martin v. Löwis 4b6a9cf9e2 The PEP is now implemented. 2002-10-07 18:34:33 +00:00
Guido van Rossum 36a82afee6 Add ruling about source code encodings. 2002-10-07 13:40:41 +00:00
Andrew M. Kuchling 1af0493a5d Fix typo 2002-09-30 01:56:17 +00:00
Andrew M. Kuchling dbadbf0092 Fix grammar error 2002-09-30 01:55:41 +00:00
Fred Drake 29581733e4 Identify modules by name, not source file.
Capitalize "MimeWriter" correctly.
2002-09-25 22:09:30 +00:00
Barry Warsaw 7ef01089e5 Christopher Craig takes over primary ownership of PEPs 239 and 240,
with Moshe as secondary, with Moshe's blessing.
2002-09-20 14:10:52 +00:00
Martin v. Löwis 49eaad86b4 Patch #531491: Deprecate modules superceded by email package. 2002-09-20 12:54:36 +00:00
David Goodger 38805e00d4 updated to warn if the installed Docutils is not up to date 2002-09-12 02:31:38 +00:00
David Goodger 8f37ebc5a5 accommodate a new feature enabling the stylesheet to be embedded in the output HTML (off by default) 2002-09-12 02:30:51 +00:00
Andrew M. Kuchling c9ac030060 Clarify key-length terminology to match my intention 2002-09-05 13:06:26 +00:00
Greg Stein b30961a2fe Per PEP 12, the body of paragraphs should not be indented. This commit
reflows all of the text, but makes no content changes.

The numbered list was indented appropriately for recognition, but
(again) no content changes occurred.
2002-09-05 06:50:07 +00:00
Greg Stein 8bff1bdaa0 Initial changes for reStructuredText. Mostly, this is about turning
some of the text into ``literals``
2002-09-05 06:44:46 +00:00
Barry Warsaw 3d754f3e07 PEP 293 is complete and checked in, so mark it as Final. 2002-09-03 15:58:43 +00:00
Martin v. Löwis f12cda0bc3 Require that the encoding declaration is on a line of its own, to simplify
parsing.
2002-09-03 11:56:15 +00:00
Guido van Rossum ceb037990d PEP 293 checked in. 2002-09-02 14:14:49 +00:00
Marc-André Lemburg 864e3428de Fixed a typo in the flag name. Found by Joakim Hove. 2002-09-02 08:30:27 +00:00
David Goodger bd6020c372 removed tab 2002-08-30 04:30:40 +00:00
David Goodger f1223d04f4 Posting it now. 2002-08-30 04:11:20 +00:00
David Goodger 1655ef5d34 Added an exception handler for a bad PEP number. Updated docstrings. 2002-08-30 03:22:58 +00:00
David Goodger 22562b2c81 Removed unused a.footnote-references style, added styles for line blocks and tt inside titles. 2002-08-30 03:18:22 +00:00
David Goodger 8d2831d855 Tracked Barry's changes to PEP 9. 2002-08-30 03:15:51 +00:00
David Goodger 4b0602458a Fixed some typos and simplified. 2002-08-30 03:13:40 +00:00
David Goodger eb9661b0f1 Better link. 2002-08-30 03:12:36 +00:00
David Goodger 631ff7f4a7 Converted to reStructuredText & edited for readability. 2002-08-30 03:11:40 +00:00
David Goodger dde379d684 Converted to reStructuredText & updated. 2002-08-30 03:10:51 +00:00
Barry Warsaw 2bba139678 Added PEP 299, Special __main__() function in modules, Jeff Epler 2002-08-26 18:12:03 +00:00
Barry Warsaw 84957e2c25 PEP 299, Special __main__() function in modules, Jeff Epler 2002-08-26 18:11:49 +00:00
Barry Warsaw 0e918468e6 push_pep(): Be sure the reST pep.css file gets pushed out too. 2002-08-26 17:02:09 +00:00
Barry Warsaw fbceb154cc Ignore docutils artifacts 2002-08-26 16:58:31 +00:00
Barry Warsaw c1a78f5127 Update the emacs turd 2002-08-26 16:55:56 +00:00
Barry Warsaw 9b5c941892 PEP 9 has been renamed, and PEP 12 was added. 2002-08-26 16:55:22 +00:00
Barry Warsaw f4f726904e David Goodger writes:
* Refactored the file I/O model throughout, to support multiple
  processing paths.  PEP source text is now read into a list of lines.

* In ``fixfile()``:

  - Updated its parameters for the new I/O model.
  - Changed ``fo`` to ``outfile``, ``fi`` to ``inpath`` and
    ``input_lines``.
  - Input is read in by iterating over the list of input lines, rather
    than using "readlines()".
  - Opening and closing of files is done by the caller, "make_html()".
  - Added PEP number processing in Requires header.
  - Linked "Content-Type: text/plain" to PEP 9.

* Added ``fix_rst_pep()``, which imports and calls Docutils code.

* Added ``get_pep_type()``, which checks for a Content-Type header and
  returns the value, defaulting to "text/plain".  If no PEP header is
  found, ``None`` is returned: input is not a PEP.

* Added ``get_input_lines()`` to read input file into a list.

* Expanded ``make_html()`` to catch errors and process the different
  PEP formats via the new ``PEP_TYPE_DISPATCH`` dict.

* Added ``check_requirements()`` to check both Python and Docutils
  requirements.  ``pep_type_error()`` is called if the required
  software is not available.

* In ``main()``:

  - Added an ``argv`` parameter, so that pep2html.py can be imported
    and command-line options passed in.  Yes, I use this functionality
    in the Docutils "buildhtml.py" front end.
  - Files skipped (due to an error) are not pushed onto the server.
2002-08-26 16:54:54 +00:00
Barry Warsaw 734a35b448 Helper files for David Goodger's reStructuredText PEP support. 2002-08-26 16:50:00 +00:00
Barry Warsaw 9ca8e6bba0 David Goodger writes:
New Meta-PEP, "Sample reStructuredText PEP Template"
====================================================

* I've presumed to use "PEP 12", as the next available Meta-PEP
  number; I'll change it if I'm mistaken.  (Barry: PEP 12 was agreed
  on as fine).

* Its status is "Draft".  If acceptable as-is, please change the
  Status header to "Active".  (Barry: Done)

* I've listed Barry as co-author.  Since much of the text was copied
  from PEP 9, I figure it's only fair.  (Barry: thanks!)

* This PEP is marked up using reStructuredText, naturally.

* The "Abstract", "Rationale", and "How to Use This Template" sections
  are based on PEP 9.  "Abstract" has a reference back to PEP 9.
  "Rationale" contains a one-paragraph rationale for reStructuredText
  PEPs.  "How to Use This Template" has been marked up a bit.

* The "ReStructuredText PEP Formatting Requirements" section is the
  big difference.  Subsection "General" contains the same text-level
  instructions as in PEP 9: two spaces at sentence end; 70 columns; no
  tabs; Emacs stanza.  The rest of the section describes the
  reStructuredText syntax and PEP-specific conventions.
2002-08-26 16:31:58 +00:00
Barry Warsaw bd59637706 David Goodger writes:
* Changed name from "Sample PEP Template" to "Sample Plaintext PEP
  Template", and edited throughout to differentiate the choices:

  - Added "plaintext" where appropriate to make the context clear.
  - "Style" -> "format".
  - Referred to PEP 1 as "content guidelines", not "style" guidelines.

* Added a "Content-Type: text/plain" header to be explicit.

* Added a reference to the alternative format available in
  reStructuredText PEPs.

* Combined "How to Use This Template for Standard Track PEPs" and "How
  to Use This Template for Informational PEPs" into one "How to Use
  This Template" section.  In addition to the duplication, there were
  several errors and inconsistencies between the two source sections.
  Conditionals have been added as appropriate.

* Clarified the discussion of the Replaces header as per discussions.

* Added "Plaintext PEP Formatting Requirements", moved from PEP 1's
  "PEP Formatting Requirements".

  - Removed the paragraph beginning "A PEP must contain a Copyright
    section" as redundant; already covered in "How to Use This
    Template".
  - Minor edits.

* Minor edits, including:

  - Fixed typos.
  - Removed colons from header field names (e.g., "the Author
    header").

(Some additional minor edits by Barry).
2002-08-26 16:29:31 +00:00
Barry Warsaw 0e36409f13 David Goodger writes:
* Changed the "PEP Template" section to "PEP Formats and Templates",
  in which plaintext and reStructuredText PEPs are described.

* Added "PEP Header Preamble" heading, for the RFC 2822 header
  description.

  - Rearranged some descriptions to match the header order.
  - Removed the colons from header field names (e.g., "the Author
    header").
  - Added a description of the Content-Type header.

* Moved the plaintext-PEP-specific "PEP Formatting Requirements"
  section to PEP 9.  PEP 1 now deals only with content, not format.

* Minor edits, including:

  - Capitalized "Standards Track" and "Informational" throughout.
  - In "it's not like such decisions can be reversed", "can" should be
    "can't"; fixed.
2002-08-26 16:19:25 +00:00
Barry Warsaw 2a22565cd8 Docutils configuration file for reStructuredText PEPs. By David Goodger. 2002-08-26 15:43:47 +00:00
Barry Warsaw 495bc096ba A README describing why you need Docutils and how to get and install
it.
2002-08-26 15:36:55 +00:00
Guido van Rossum 128474065a Add open issues suggested by effbot. 2002-08-20 20:27:14 +00:00
Guido van Rossum 93ba951aab Add note about discrepancies between this PEP and the new sets module. 2002-08-20 14:00:44 +00:00