Commit Graph

1220 Commits

Author SHA1 Message Date
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
Thomas Heller 10d37607c9 Rename the 'safe buffer interface' to 'fixed buffer interface',
and give Scott Gilert credit for it.

Change the author line to the new style.
Small other changes.

Barry, can you run pep2html on it, and change the PEP index to the new
name?
2002-07-30 16:41:04 +00:00
Barry Warsaw b6612d3812 Oops, get rid of debugging prints. 2002-07-30 16:25:17 +00:00
Barry Warsaw 4a805d3603 Based on feedback inspired by Francois Pinard, we're changing the
format of the Author: header to be "Random J. User <address@dom.ain>"

Update PEP 1 style guidelines.

Updated PEP 9 template.

Updated PEP 0 as an example.
2002-07-30 16:23:15 +00:00
Barry Warsaw 946f4253b2 Note! Python 2.2 is now required (you need the email package).
fixfile(): Modify the Author: and Discussions-To: header handling for
the new required format.  Since this uses Python 2.2's email package,
it should normalize either old style or new style addresses to the new
style for the web page.
2002-07-30 16:17:11 +00:00
Barry Warsaw 888748d8c8 Some clarifications about what should go in a successful PEP, as well
as cause for rejection of pre-PEPs.
2002-07-29 18:34:59 +00:00
Barry Warsaw aed55275c0 Added PEPs 297 and 298. 2002-07-29 18:23:02 +00:00
Barry Warsaw 1def1df43e Spell checked and minor formatting nits. 2002-07-29 18:22:36 +00:00
Barry Warsaw 135eff8437 PEP 298, The Safe Buffer Interface, Heller 2002-07-29 18:22:09 +00:00
Barry Warsaw 1f177c83ae PEP 295 is rejected by BDFL decree. 2002-07-29 16:50:15 +00:00
Walter Dörwald b151a83ed7 Add another compatiblity issue: illegal "errors" values
will raise a different exception.
2002-07-25 13:30:28 +00:00
Walter Dörwald 078b0a43a4 Update the PEP to the current state of the patch. 2002-07-25 13:23:29 +00:00
Neal Norwitz 2150f9b63f Fix reference for urllib proxies. Hasn't this been implemented? 2002-07-23 19:41:36 +00:00
Neal Norwitz a11b31d82a strptime is now implemented 2002-07-23 19:39:54 +00:00
Marc-André Lemburg 9eb77a56dc First version of the PEP. 2002-07-23 15:14:06 +00:00
Barry Warsaw 575b7cd011 PEP 296, The Buffer Problem, Gilbert 2002-07-22 21:04:00 +00:00
Barry Warsaw f55ac177c4 Added PEP 295, Interpretation of multiline string constants, Koltsov 2002-07-22 20:45:24 +00:00
Barry Warsaw 52eae5725e PEP 295, Interpretation of multiline string constants, Koltsov 2002-07-22 20:45:07 +00:00