diff options
author | Guido van Rossum <guido@python.org> | 1999-01-09 21:40:35 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-01-09 21:40:35 (GMT) |
commit | 5dadf7e976c55ac3960f79aaa5741ab37a10cdf4 (patch) | |
tree | d09d1cb80f90663f2f59d7911605c887f1038b96 | |
parent | 1a1c6bbf8c1bb81dfc6310523a1fc6d6f4847b01 (diff) | |
download | cpython-5dadf7e976c55ac3960f79aaa5741ab37a10cdf4.zip cpython-5dadf7e976c55ac3960f79aaa5741ab37a10cdf4.tar.gz cpython-5dadf7e976c55ac3960f79aaa5741ab37a10cdf4.tar.bz2 |
Use 'xrange', not 'range', in error messages. Reported by Nathan Sullivan.
-rw-r--r-- | Objects/rangeobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 0bf643f..c603ac9 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -71,7 +71,7 @@ range_item(r, i) { if (i < 0 || i >= r->len * r->reps) { PyErr_SetString(PyExc_IndexError, - "range object index out of range"); + "xrange object index out of range"); return NULL; } @@ -126,7 +126,7 @@ range_concat(r, obj) rangeobject *r; PyObject *obj; { - PyErr_SetString(PyExc_TypeError, "cannot concatenate range objects"); + PyErr_SetString(PyExc_TypeError, "cannot concatenate xrange objects"); return NULL; } @@ -175,7 +175,7 @@ range_slice(r, low, high) { if (r->reps != 1) { PyErr_SetString(PyExc_TypeError, - "cannot slice a replicated range"); + "cannot slice a replicated xrange"); return NULL; } if (low < 0) |