Commit a47af9cf authored by Benjamin Peterson's avatar Benjamin Peterson

fix comment

parent ad195567
...@@ -126,10 +126,9 @@ range_dealloc(rangeobject *r) ...@@ -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 /* Return number of items in range (lo, hi, step), when arguments are PyLong
* PyInt or PyLong objects. step > 0 required. Return a value < 0 if * objects. step > 0 required. Return a value < 0 if & only if the true
* & only if the true value is too large to fit in a signed long. * value is too large to fit in a signed long. Arguments MUST return 1 with
* Arguments MUST return 1 with either PyLong_Check() or
* PyLong_Check(). Return -1 when there is an error. * PyLong_Check(). Return -1 when there is an error.
*/ */
static PyObject* static PyObject*
...@@ -137,7 +136,7 @@ range_length_obj(rangeobject *r) ...@@ -137,7 +136,7 @@ range_length_obj(rangeobject *r)
{ {
/* ------------------------------------------------------------- /* -------------------------------------------------------------
Algorithm is equal to that of get_len_of_range(), but it operates 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; int cmp_result;
PyObject *lo, *hi; PyObject *lo, *hi;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment