Help cleaning up some code

Aahz aahz at pythoncraft.com
Thu Mar 19 00:42:23 CET 2009


In article <814f91a3-faa4-4473-b28f-8e0e217fbd8d at f33g2000vbf.googlegroups.com>,
odeits  <odeits at gmail.com> wrote:
>
>for row in rows:
>    ad = dict()

Micro-optimization:
    ad = {}
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Programming language design is not a rational science. Most reasoning
about it is at best rationalization of gut feelings, and at worst plain
wrong."  --GvR, python-ideas, 2009-3-1



More information about the Python-list mailing list