summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2002-05-02 21:28:26 (GMT)
committerFred Drake <fdrake@acm.org>2002-05-02 21:28:26 (GMT)
commitd0ba63654189c37a902147f0a6b95979eab7f33f (patch)
tree49e8eac45a0eea61159a016c9c3d96931a29fb4a /Misc/NEWS
parent7d28b73ec13b3d142b8cffd4739a1486cac4723a (diff)
downloadcpython-d0ba63654189c37a902147f0a6b95979eab7f33f.zip
cpython-d0ba63654189c37a902147f0a6b95979eab7f33f.tar.gz
cpython-d0ba63654189c37a902147f0a6b95979eab7f33f.tar.bz2
Added notes related to the removal of deprecated features of the xrange type.
Diffstat (limited to 'Misc/NEWS')
-rw-r--r--Misc/NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 50708d2..2fb6a83 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -6,6 +6,11 @@ Type/class unification and new-style classes
Core and builtins
+- Deprecated features of xrange objects have been removed as
+ promised. The start, stop, and step attributes and the tolist()
+ method no longer exist. xrange repetition and slicing have been
+ removed.
+
- New builtin function enumerate(x), from PEP 279. Example:
enumerate("abc") is an iterator returning (0,"a"), (1,"b"), (2,"c").
The argument can be an arbitrary iterable object.
@@ -182,6 +187,10 @@ Build
C API
+- PyRange_New() now raises ValueError if the fourth argument is not 1.
+ This is part of the removal of deprecated features of the xrange
+ object.
+
- PyNumber_Coerce() and PyNumber_CoerceEx() now also invoke the type's
coercion if both arguments have the same type but this type has the
CHECKTYPES flag set. This is to better support proxies.