Add mention of features added in 2.4 and thus to be avoided in 2.3 .
Also make all lines 70 characters or less.
This commit is contained in:
parent
b554d339a8
commit
91a41916ba
17
pep-0291.txt
17
pep-0291.txt
|
@ -58,19 +58,24 @@ 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,
|
||||||
plus all features below
|
calling f(*args, **kw), plus all features below
|
||||||
|
|
||||||
2.0 nested scopes, rich comparisons, function attributes,
|
2.0 nested scopes, rich comparisons,
|
||||||
plus all features below
|
function attributes, 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 all features below
|
plus all features below
|
||||||
|
|
||||||
2.2 bool, True, False, basestring, enumerate(), {}.pop(),
|
2.2 bool, True, False, basestring, enumerate(),
|
||||||
PendingDeprecationWarning, Universal Newlines
|
{}.pop(), PendingDeprecationWarning,
|
||||||
|
Universal Newlines, plus all features below
|
||||||
|
|
||||||
|
2.3 generator expressions, multi-line imports,
|
||||||
|
decorators, int/long unification, set/frozenset,
|
||||||
|
reversed(), sorted(), "".rsplit()
|
||||||
|
|
||||||
|
|
||||||
Backward Compatible Packages, Modules, and Tools
|
Backward Compatible Packages, Modules, and Tools
|
||||||
|
|
Loading…
Reference in New Issue