Long integers, xrange and number theory
Martin v. Löwis
martin at v.loewis.de
Sat Dec 7 15:42:45 EST 2002
More information about the Python-list mailing list
Sat Dec 7 15:42:45 EST 2002
- Previous message (by thread): [PYTHON URLLIB2] HELP ME HELP ME HELP ME (Italian boy)
- Next message (by thread): Long integers, xrange and number theory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Erik Max Francis <max at alcyone.com> writes: > 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. That would depend on the arguments, right? Changing range does not require changes to the return type of the result; changing xrange does. > 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. Regards, Martin
- Previous message (by thread): [PYTHON URLLIB2] HELP ME HELP ME HELP ME (Italian boy)
- Next message (by thread): Long integers, xrange and number theory
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list