Long integers, xrange and number theory
Paul Rubin
phr-n2002b at NOSPAMnightsong.com
Sat Dec 7 18:29:07 EST 2002
martin at v.loewis.de (Martin v. Löwis) writes:
> > xrange would be the different story, since it involves a proxy
> > object that supports a sequence protocol.
>
> Indeed. That proxy object would need to change, making it inefficient
> even for small integers.
No, with small integer arguments the xrange function could just
construct the same proxy object it does now. It would only make a new
kind of object if long ints were involved.
More information about the Python-list
mailing list