[Python-checkins] r73551 - python/branches/py3k/Objects/rangeobject.c
Mark Dickinson
dickinsm at gmail.com
Wed Jun 24 23:42:57 CEST 2009
On Wed, Jun 24, 2009 at 10:20 PM,
benjamin.peterson<python-checkins at python.org> wrote:
> Author: benjamin.peterson
> Date: Wed Jun 24 23:14:38 2009
> New Revision: 73551
>
> Log:
> fix comment
>
> 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 Wed Jun 24 23:14:38 2009
> @@ -126,10 +126,9 @@
> PyObject_Del(r);
> }
>
> -/* Return number of items in range (lo, hi, step), when arguments are
> - * PyInt or PyLong objects. step > 0 required. Return a value < 0 if
> - * & only if the true value is too large to fit in a signed long.
> - * Arguments MUST return 1 with either PyLong_Check() or
> +/* Return number of items in range (lo, hi, step), when arguments are PyLong
> + * objects. step > 0 required. 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.
> */
> static PyObject*
Thanks. I think the bit about 'step > 0 required' is wrong, too.
Mark
More information about the Python-checkins
mailing list