mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
#6814: remove traces of xrange().
This commit is contained in:
parent
a4c05a26a7
commit
c9a5a0e165
5 changed files with 8 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue