Record the rejection of PEP 276.
This commit is contained in:
parent
15af1ad96b
commit
27b331b421
|
@ -84,7 +84,6 @@ Index by Category
|
|||
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 @@ Index by Category
|
|||
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 @@ Numerical Index
|
|||
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
|
||||
|
|
18
pep-0276.txt
18
pep-0276.txt
|
@ -22,6 +22,24 @@ Abstract
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue