Python 'for' loop is memory inefficient

Benjamin Kaplan benjamin.kaplan at
Mon Aug 17 03:23:20 CEST 2009

On Sun, Aug 16, 2009 at 6:35 PM, sturlamolden <sturlamolden at> wrote:
> A compiler could easily recognise a statement like
>   for i in range(n):
> as a simple integer loop. In fact, Cython is able to do this.

but special cases aren't special enough to break the rules.

More information about the Python-list mailing list