From 91a41916ba208c77f4ed48fb02f34b0efacd2878 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sun, 11 Dec 2005 23:33:53 +0000 Subject: [PATCH] Add mention of features added in 2.4 and thus to be avoided in 2.3 . Also make all lines 70 characters or less. --- pep-0291.txt | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pep-0291.txt b/pep-0291.txt index c11371936..152ce599c 100644 --- a/pep-0291.txt +++ b/pep-0291.txt @@ -58,19 +58,24 @@ 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 all features below + dict.setdefault(), print >> f, + calling f(*args, **kw), plus all features below - 2.0 nested scopes, rich comparisons, function attributes, - plus all features below + 2.0 nested scopes, rich comparisons, + function attributes, 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 all features below - 2.2 bool, True, False, basestring, enumerate(), {}.pop(), - PendingDeprecationWarning, Universal Newlines + 2.2 bool, True, False, basestring, enumerate(), + {}.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