Thoughts on PEP284
Tim Hochberg
tim.hochberg at ieee.org
Tue Sep 23 11:44:13 EDT 2003
M-a-S wrote:
>>>Some more looping thoughts - this time on integer for loops...
>
>
> I guess this should be a matter of optimization. Why don't the Python
> compiler recognize 'for <var> in [x]range(<from>,<till>):'? It should be
> pretty easy. Microsoft does marvels optimizing loops in C. Why an open
> source project like Python can't do it?
FWIW, Psyco recognizes this structure and removes the overhead
associated with it.
-tim
More information about the Python-list
mailing list