On Thu, Apr 24, 2008 at 10:58 AM, "Martin v. Löwis" <[EMAIL PROTECTED]>
wrote:

> >>>> r = range(10000000000000000000)
> >>>> r[0]
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >     OverflowError: Python int too large to convert to C ssize_t
> >
> > This is a bug, right?
>
> I'd call it an implementation limitation.
>

It is a bit surprising, especially given
that the following works:

>>> r = range(10**19-100, 10**19)
>>> r[0]
9999999999999999900

Mark
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to