summaryrefslogtreecommitdiffstats
path: root/Objects/rangeobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-06-24 21:14:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-06-24 21:14:38 (GMT)
commita47af9cf1823e5faa47dfe418247dff1e46a1d9d (patch)
treeb780297e39c239410041349521b518695cab53d2 /Objects/rangeobject.c
parentad1955671606601f621d9732b62bc366b0e53d1e (diff)
downloadcpython-a47af9cf1823e5faa47dfe418247dff1e46a1d9d.zip
cpython-a47af9cf1823e5faa47dfe418247dff1e46a1d9d.tar.gz
cpython-a47af9cf1823e5faa47dfe418247dff1e46a1d9d.tar.bz2
fix comment
Diffstat (limited to 'Objects/rangeobject.c')
-rw-r--r--Objects/rangeobject.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index 11fd32e..17cd66f 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -126,10 +126,9 @@ range_dealloc(rangeobject *r)
PyObject_Del(r);
}
-/* Return number of items in range (lo, hi, step), when arguments are
- * PyInt or PyLong objects. step > 0 required. Return a value < 0 if
- * & only if the true value is too large to fit in a signed long.
- * Arguments MUST return 1 with either PyLong_Check() or
+/* Return number of items in range (lo, hi, step), when arguments are PyLong
+ * objects. step > 0 required. Return a value < 0 if & only if the true
+ * value is too large to fit in a signed long. Arguments MUST return 1 with
* PyLong_Check(). Return -1 when there is an error.
*/
static PyObject*
@@ -137,7 +136,7 @@ range_length_obj(rangeobject *r)
{
/* -------------------------------------------------------------
Algorithm is equal to that of get_len_of_range(), but it operates
- on PyObjects (which are assumed to be PyLong or PyInt objects).
+ on PyObjects (which are assumed to be PyLong objects).
---------------------------------------------------------------*/
int cmp_result;
PyObject *lo, *hi;