]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix description of range_length_obj
authorMark Dickinson <dickinsm@gmail.com>
Sun, 28 Jun 2009 22:08:40 +0000 (22:08 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 28 Jun 2009 22:08:40 +0000 (22:08 +0000)
Objects/rangeobject.c

index 77e1954639e8d41f9af59fc3f5ca71dbb1925cbf..6d3e8b0c930a217403980ea9021fc449527b4f1b 100644 (file)
@@ -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)