Long integers, xrange and number theory
Erik Max Francis
max at alcyone.com
Sat Dec 7 13:18:36 EST 2002
"Martin v. Löwis" wrote:
> The range function ought to be fixed; contributions are welcome.
>
> For xrange, generalizing the function defeats its purpose, so it will
> continue to give OverflowErrors.
Don't you have these reversed? If you've got long arguments, chances
are building the actual list will be _huge_, so using range would be
impractical. xrange would be the different story, since it involves a
proxy object that supports a sequence protocol.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ Nothing spoils a confession like repentence.
\__/ Anatole France
Physics reference / http://www.alcyone.com/max/reference/physics/
A physics reference.
More information about the Python-list
mailing list