range or xrange disallowed for big numbers

Joerg Woelke dvass at felis.uni-freiburg.de
Tue Oct 8 05:21:18 EDT 2002


Hello!

Chad Netzer wrote:
> 
> Is there a reason (technical or philosophical) to disallow:
> 
>     range( 10000000000L, 10000000000L + 1L )
> 
> or
> 
>     xrange( 10000000000L )
> 
> etc...?

Both work here on a tru64 OS.

>>> range(10000000000L, 10000000000L + 1L)
[10000000000]
>>> xrange(10000000000L)
xrange(10000000000)

> Clearly, these case are not limited by memory consumption, and

... but by the width of int.

[ snip ]

Greets, J"o!
 
> Chad Netzer
> cnetzer at mail.arc.nasa.gov

--



More information about the Python-list mailing list