how to append to a list twice?

Fredrik Lundh fredrik at pythonware.com
Sat Apr 22 07:04:12 EDT 2006


Alex Martelli wrote:

> > But Now You've Violated The DRY Principle!!!
>
> Just as with any other unrolled loop, yes -- loop unrolling is an
> optimization which is based exactly on exchanging some textual
> repetition for a tiny bit more speed.

I had hoped that the Unusual Capitalization would have been enough
to make up for the missing smiley...

(but note that the OP explicitly didn't want to copy and paste; given
that he wrote a newsgroup posting instead seems to indicate that his
programming editor isn't quite as good as the editor in his newsreader)

</F>






More information about the Python-list mailing list