summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-06-28 22:08:40 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-06-28 22:08:40 (GMT)
commit732166df68b6936e0a3cb98899a78178735fb878 (patch)
tree82d360713c3c3478d5126670657553ae2e739952 /Objects
parent3fc65526e66ef2c369077cb6457a99b0d7f97e6e (diff)
downloadcpython-732166df68b6936e0a3cb98899a78178735fb878.zip
cpython-732166df68b6936e0a3cb98899a78178735fb878.tar.gz
cpython-732166df68b6936e0a3cb98899a78178735fb878.tar.bz2
Fix description of range_length_obj
Diffstat (limited to 'Objects')
-rw-r--r--Objects/rangeobject.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index 77e1954..6d3e8b0 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 PyLong
- * objects. 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.
+/* Return number of items in range (lo, hi, step) as a PyLong object,
+ * when arguments are PyLong objects. Arguments MUST return 1 with
+ * PyLong_Check(). Return NULL when there is an error.
*/
static PyObject*
range_length_obj(rangeobject *r)