mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Rename test_xrange.py to test_range.py and fix the
type name in various spots.
This commit is contained in:
parent
03b43d8a77
commit
4ad94210d1
3 changed files with 4 additions and 7 deletions
|
@ -214,7 +214,7 @@ range_item(rangeobject *r, Py_ssize_t i)
|
|||
if (i < 0 || i >= len) {
|
||||
if (!PyErr_Occurred())
|
||||
PyErr_SetString(PyExc_IndexError,
|
||||
"xrange object index out of range");
|
||||
"range object index out of range");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -313,7 +313,7 @@ PyTypeObject PyRange_Type = {
|
|||
range_new, /* tp_new */
|
||||
};
|
||||
|
||||
/*********************** Xrange Iterator **************************/
|
||||
/*********************** range Iterator **************************/
|
||||
|
||||
/* There are 2 types of iterators, one for C longs, the other for
|
||||
Python longs (ie, PyObjects). This should make iteration fast
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue