[Python-Dev] On the possibility of "optimizing" range() calls in for-loops

Guido van Rossum guido@python.org
Mon, 16 Jun 2003 08:12:57 -0400


> The SF patch manager has a workable implementation of your idea:
> 
>     www.python.org/sf/738094  for i in range(N) optimization 
> 
> The jury is still out on whether it is an elegant, brilliant patch or
> a horrendous hack.

And why couldn't it be both? :-)

--Guido van Rossum (home page: http://www.python.org/~guido/)