[Python-checkins] r73656 - python/branches/py3k/Objects/rangeobject.c

mark.dickinson python-checkins at python.org
Mon Jun 29 00:08:40 CEST 2009


Author: mark.dickinson
Date: Mon Jun 29 00:08:40 2009
New Revision: 73656

Log:
Fix description of range_length_obj

Modified:
   python/branches/py3k/Objects/rangeobject.c

Modified: python/branches/py3k/Objects/rangeobject.c
==============================================================================
--- python/branches/py3k/Objects/rangeobject.c	(original)
+++ python/branches/py3k/Objects/rangeobject.c	Mon Jun 29 00:08:40 2009
@@ -126,10 +126,9 @@
     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)


More information about the Python-checkins mailing list