Clarified the "Features to Avoid" table & text.
This commit is contained in:
parent
9e353b2297
commit
0c6e68ed1a
19
pep-0291.txt
19
pep-0291.txt
|
@ -41,28 +41,27 @@ Features to Avoid
|
||||||
to maintain backward compatibility with each version of Python.
|
to maintain backward compatibility with each version of Python.
|
||||||
This list is not complete! It is only meant as a general guide.
|
This list is not complete! It is only meant as a general guide.
|
||||||
|
|
||||||
Note the features to avoid were implemented in the following
|
Note that the features below were implemented in the version
|
||||||
version. For example, features listed next to 1.5.2 were
|
following the one listed. For example, features listed next to
|
||||||
implemented in 2.0.
|
1.5.2 were implemented in 2.0.
|
||||||
|
|
||||||
Version Features
|
Version Features to Avoid
|
||||||
------- --------
|
------- -----------------
|
||||||
1.5.2 string methods, Unicode, list comprehensions,
|
1.5.2 string methods, Unicode, list comprehensions,
|
||||||
augmented assignment (eg, +=), zip(), import x as y,
|
augmented assignment (eg, +=), zip(), import x as y,
|
||||||
dict.setdefault(), print >> f, calling f(*args, **kw),
|
dict.setdefault(), print >> f, calling f(*args, **kw),
|
||||||
plus 2.0 features
|
plus all features below
|
||||||
|
|
||||||
2.0 nested scopes, rich comparisons, function attributes,
|
2.0 nested scopes, rich comparisons, function attributes,
|
||||||
plus 2.1 features
|
plus all features below
|
||||||
|
|
||||||
2.1 use of object or new-style classes, iterators,
|
2.1 use of object or new-style classes, iterators,
|
||||||
using generators, nested scopes, or //
|
using generators, nested scopes, or //
|
||||||
without from __future__ import ... statement,
|
without from __future__ import ... statement,
|
||||||
plus 2.2 features
|
plus all features below
|
||||||
|
|
||||||
2.2 bool, True, False, basestring, enumerate(), {}.pop(),
|
2.2 bool, True, False, basestring, enumerate(), {}.pop(),
|
||||||
PendingDeprecationWarning, Universal Newlines,
|
PendingDeprecationWarning, Universal Newlines
|
||||||
plus 2.3 features
|
|
||||||
|
|
||||||
|
|
||||||
Backward Compatible Packages, Modules, and Tools
|
Backward Compatible Packages, Modules, and Tools
|
||||||
|
|
Loading…
Reference in New Issue