On Mon, Feb 9, 2009 at 7:11 PM, Senthil Kumaran <orsent...@gmail.com> wrote:

> >
> > You see that is slow and the reason is  l.append being called again
> > and again. lets eliminate it.
>
> Sorry, it is slow because the append method "Look-up" on the list
> object is done again and again.
>

Both LC and For-loops generate the same bytecodes!

-V-
http://twitter.com/venkat83
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to