diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-21 18:01:17 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-21 18:01:17 (GMT) |
commit | 4ad94210d1b8477b0cb7a4bca2f39dc385ab21a2 (patch) | |
tree | 6b7e2ff6bde963728e900c62a411c7a06a7e3a01 /Objects/rangeobject.c | |
parent | 03b43d8a77f188f836262c201160a7ba9f2174bc (diff) | |
download | cpython-4ad94210d1b8477b0cb7a4bca2f39dc385ab21a2.zip cpython-4ad94210d1b8477b0cb7a4bca2f39dc385ab21a2.tar.gz cpython-4ad94210d1b8477b0cb7a4bca2f39dc385ab21a2.tar.bz2 |
Rename test_xrange.py to test_range.py and fix the
type name in various spots.
Diffstat (limited to 'Objects/rangeobject.c')
-rw-r--r-- | Objects/rangeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 4a45212..8cefe67 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -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 |