Python 'for' loop is memory inefficient

Paul Rubin http
Mon Aug 17 03:44:33 CEST 2009


exarkun at twistedmatrix.com writes:
> Although I think PyPy also recognizes this case and makes it as
> efficient as using xrange, and does so without breaking any rules.

How can pypy possibly know that the user hasn't assigned some other
value to "range"?



More information about the Python-list mailing list