Python 'for' loop is memory inefficient

Benjamin Kaplan benjamin.kaplan at case.edu
Sun Aug 16 21:23:20 EDT 2009


On Sun, Aug 16, 2009 at 6:35 PM, sturlamolden <sturlamolden at yahoo.no> 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