Help cleaning up some code

Aahz aahz at pythoncraft.com
Wed Mar 18 19:42:23 EDT 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