Commit Graph

1037 Commits

Author SHA1 Message Date
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
Guido van Rossum 834d2fae0d Move PEP 269 back into the realm of possibilities. 2002-08-20 13:56:21 +00:00
Guido van Rossum c71ecd4127 Move PEP 218 to the Completed features list. 2002-08-19 17:44:50 +00:00
Guido van Rossum 5864ffa4e7 Test for assignment to None are easily done in the compiler. 2002-08-16 02:31:08 +00:00
Guido van Rossum b061a91037 Another status update. Added new sections "Completed" and "Unlikely". 2002-08-15 16:50:55 +00:00
Barry Warsaw c055edb47d Added a recommendation to use s2 in s1 for Python 2.3 and later. 2002-08-12 14:22:33 +00:00
Martin v. Löwis 0e10364dc7 Add reference to SF patch. 2002-08-12 11:43:56 +00:00
Michael W. Hudson 37c17a6f32 Woo, these changes have been sitting around for a while.
Just a couple of things learnt from 221.
2002-08-12 11:42:43 +00:00
Guido van Rossum 315e7ee922 Add a note explaining that changing sign is a special case of losing
bits for the << operator.
2002-08-12 00:55:43 +00:00
Guido van Rossum 5962f34a59 Remove author's email addresses.
Mention %X (same treatment as %x).

Insert new stage B0, which gives warnings about e.g. 0xffffffff
without semantic changes.  Move the proposed deployment of subsequent
stages up by one minor revision.
2002-08-11 04:05:13 +00:00
Guido van Rossum 84b2de1d45 Status update. 2002-08-10 05:14:13 +00:00
Barry Warsaw 2d7097526b PEP 263 is finished. 2002-08-05 17:34:06 +00:00
Barry Warsaw 2d94bfa41e PEP 263 is final. 2002-08-05 15:39:49 +00:00
Martin v. Löwis 4114030692 Implemented in CVS. 2002-08-05 15:14:31 +00:00
Barry Warsaw 605f313487 PEP 296 gets renamed after a suggestion by Guido and approval by Scott
Gilbert.
2002-08-02 18:05:59 +00:00
Barry Warsaw 4254201e07 Some PEP classification updates suggested by David Goodger. 2002-08-02 13:46:12 +00:00
Barry Warsaw 0c228b0b73 Updates to PEPs 256, 257, 258, 287 by David Goodger. Some of the
titles have changed so this includes an update to PEP 0.
2002-08-01 22:32:33 +00:00
Barry Warsaw 4f0ce75e88 Renamed PEP 298... each time the title gets longer by 1 character. 2002-08-01 18:53:52 +00:00
Thomas Heller 7fadff7e8a Renamed everything from 'fixed buffer' to 'locked buffer'.
Recommandations on how to implement the interface.
2002-08-01 18:24:06 +00:00
Thomas Heller 419b7d99fb The model exposed by the fixed buffer interface was changed:
Retrieving a buffer from an object puts this in a locked state, and a
releasebuffer function must be called to unlock the object again.

Added releasefixedbuffer function slot, and renamed the
get...fixedbuffer functions to acquire...fixedbuffer functions.

Renamed the flag from Py_TPFLAG_HAVE_GETFIXEDBUFFER to
Py_TPFLAG_HAVE_FIXEDBUFFER. (Is the 'fixed buffer' name still useful,
or should we use 'static buffer' instead?)

Added posting date (was posted to c.l.p and python-dev).
2002-07-31 18:48:36 +00:00
Barry Warsaw ed22d15d72 Changed the name of PEP 298. 2002-07-30 17:04:39 +00:00
Thomas Heller a9f5ad2c5b Oops, forgotten words. 2002-07-30 16:52:53 +00:00