diff options
author | Georg Brandl <georg@python.org> | 2009-09-01 07:34:27 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-09-01 07:34:27 (GMT) |
commit | c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c (patch) | |
tree | 3114451bc01e7afc34d3d84369a0b77ba5d332ae /Objects | |
parent | a4c05a26a72d3613d9ffbdcc0985a9ec49060b73 (diff) | |
download | cpython-c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c.zip cpython-c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c.tar.gz cpython-c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c.tar.bz2 |
#6814: remove traces of xrange().
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/listsort.txt | 2 | ||||
-rw-r--r-- | Objects/rangeobject.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Objects/listsort.txt b/Objects/listsort.txt index 31a5445..47fec1d 100644 --- a/Objects/listsort.txt +++ b/Objects/listsort.txt @@ -606,7 +606,7 @@ from time import clock as now def fill(n): from random import random - return [random() for i in xrange(n)] + return [random() for i in range(n)] def mycmp(x, y): global ncmp diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 6d3e8b0..88ca698 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -431,7 +431,7 @@ PyTypeObject PyRangeIter_Type = { rangeiter_new, /* tp_new */ }; -/* Return number of items in range/xrange (lo, hi, step). step > 0 +/* Return number of items in range (lo, hi, step). step > 0 * required. Return a value < 0 if & only if the true value is too * large to fit in a signed long. */ |