[Python-checkins] python/nondist/peps pep-0000.txt, 1.318, 1.319 pep-0276.txt, 1.4, 1.5

rhettinger@users.sourceforge.net rhettinger at users.sourceforge.net
Fri Jun 17 09:09:22 CEST 2005


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2456

Modified Files:
	pep-0000.txt pep-0276.txt 
Log Message:
Record the rejection of PEP 276.

Index: pep-0000.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0000.txt,v
retrieving revision 1.318
retrieving revision 1.319
diff -u -d -r1.318 -r1.319
--- pep-0000.txt	17 Jun 2005 04:57:07 -0000	1.318
+++ pep-0000.txt	17 Jun 2005 07:09:04 -0000	1.319
@@ -84,7 +84,6 @@
  S   267  Optimized Access to Module Namespaces        Hylton
  S   268  Extended HTTP functionality and WebDAV       Stein
  S   275  Switching on Multiple Values                 Lemburg
- S   276  Simple Iterator for ints                     Althoff
  S   280  Optimizing access to globals                 GvR
  S   284  Integer for-loops                            Eppstein, Ewing
  S   286  Enhanced Argument Tuples                     von Loewis
@@ -204,6 +203,7 @@
  SR  270  uniq method for list objects                 Petrone
  SR  271  Prefixing sys.path by command line option    Giacometti
  SR  274  Dict Comprehensions                          Warsaw
+ SR  276  Simple Iterator for ints                     Althoff
  SR  288  Generators Attributes and Exceptions         Hettinger
  SR  295  Interpretation of multiline string constants Koltsov
  SR  296  Adding a bytes Object Type                   Gilbert
@@ -318,7 +318,7 @@
  SF  273  Import Modules from Zip Archives             Ahlstrom
  SR  274  Dict Comprehensions                          Warsaw
  S   275  Switching on Multiple Values                 Lemburg
- S   276  Simple Iterator for ints                     Althoff
+ SR  276  Simple Iterator for ints                     Althoff
  SF  277  Unicode file name support for Windows NT     Hodgson
  SF  278  Universal Newline Support                    Jansen
  SF  279  The enumerate() built-in function            Hettinger

Index: pep-0276.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0276.txt,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- pep-0276.txt	5 Apr 2002 19:42:56 -0000	1.4
+++ pep-0276.txt	17 Jun 2005 07:09:04 -0000	1.5
@@ -22,6 +22,24 @@
     builtin type int (types.IntType).  Such an iterator would simplify
     the coding of certain for-loops in Python.
 
+BDFL Pronouncement
+
+    This PEP was rejected on 17 June 2005 with a note to python-dev.
+
+    Much of the original need was met by the enumerate() function which
+    was accepted for Python 2.3.
+
+    Also, the proposal both allowed and encouraged misuses such as:
+
+        >>> for i in 3: print i
+        0
+        1
+        2
+
+    Likewise, it was not helpful that the proposal would disable the
+    syntax error in statements like:
+
+        x, = 1
 
 Specification
 



More information about the Python-checkins mailing list