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.
|
||||
This list is not complete! It is only meant as a general guide.
|
||||
|
||||
Note the features to avoid were implemented in the following
|
||||
version. For example, features listed next to 1.5.2 were
|
||||
implemented in 2.0.
|
||||
Note that the features below were implemented in the version
|
||||
following the one listed. For example, features listed next to
|
||||
1.5.2 were implemented in 2.0.
|
||||
|
||||
Version Features
|
||||
------- --------
|
||||
Version Features to Avoid
|
||||
------- -----------------
|
||||
1.5.2 string methods, Unicode, list comprehensions,
|
||||
augmented assignment (eg, +=), zip(), import x as y,
|
||||
dict.setdefault(), print >> f, calling f(*args, **kw),
|
||||
plus 2.0 features
|
||||
plus all features below
|
||||
|
||||
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,
|
||||
using generators, nested scopes, or //
|
||||
without from __future__ import ... statement,
|
||||
plus 2.2 features
|
||||
plus all features below
|
||||
|
||||
2.2 bool, True, False, basestring, enumerate(), {}.pop(),
|
||||
PendingDeprecationWarning, Universal Newlines,
|
||||
plus 2.3 features
|
||||
PendingDeprecationWarning, Universal Newlines
|
||||
|
||||
|
||||
Backward Compatible Packages, Modules, and Tools
|
||||
|
|
Loading…
Reference in New Issue