summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-01 07:34:27 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-01 07:34:27 (GMT)
commitc9a5a0e1650b264bdf75e63ecdb577a46adbfd4c (patch)
tree3114451bc01e7afc34d3d84369a0b77ba5d332ae /Objects
parenta4c05a26a72d3613d9ffbdcc0985a9ec49060b73 (diff)
downloadcpython-c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c.zip
cpython-c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c.tar.gz
cpython-c9a5a0e1650b264bdf75e63ecdb577a46adbfd4c.tar.bz2
#6814: remove traces of xrange().
Diffstat (limited to 'Objects')
-rw-r--r--Objects/listsort.txt2
-rw-r--r--Objects/rangeobject.c2
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.
*/