Fix description of range_length_obj

This commit is contained in:
Mark Dickinson 2009-06-28 22:08:40 +00:00
parent 3fc65526e6
commit 732166df68
1 changed files with 3 additions and 4 deletions

View File

@ -126,10 +126,9 @@ range_dealloc(rangeobject *r)
PyObject_Del(r); PyObject_Del(r);
} }
/* Return number of items in range (lo, hi, step), when arguments are PyLong /* Return number of items in range (lo, hi, step) as a PyLong object,
* objects. Return a value < 0 if & only if the true value is too large to * when arguments are PyLong objects. Arguments MUST return 1 with
* fit in a signed long. Arguments MUST return 1 with PyLong_Check(). Return * PyLong_Check(). Return NULL when there is an error.
* -1 when there is an error.
*/ */
static PyObject* static PyObject*
range_length_obj(rangeobject *r) range_length_obj(rangeobject *r)