Explicit or general importing of namespaces?
Diez B. Roggisch
deetsNOSPAM at web.de
Mon Feb 28 06:36:26 EST 2005
> Actually, if you are using a name in another module repeatedly
> in an inner loop, it can make a big difference if you have to lookup
> the name in the module repeatedly. In that case, just explicitly
> import the name you want to use repeatedly:
Ok - but if that really hits the wall for some part of the code,
then you'd most probably even go for a local variable binding to avoid the
lookups in the different scopes - thus the issue of import format gets
unimportant again :)
--
Regards,
Diez B. Roggisch
More information about the Python-list
mailing list