Best practices with import?
Gordon McMillan
gmcm at hypernet.com
Wed Aug 1 18:40:03 EDT 2001
phawkins at connact.com wrote:
[lots of good stuff deleted]
> import spammityspam
> spammityspam.open('fxxx')
>
> works fine too, if you're not concerned by the size of the
> spammityspam module.
Sorry, the size of spammityspam has nothing to
do with it. There's one new name created by
this import (spammityspam), and "open" is
fetched dynamically from it's namespace.
Unless you meant the size of the name...
- Gordon
More information about the Python-list
mailing list