Question about import and namespace

jdemoor at gmail.com jdemoor at gmail.com
Fri Sep 1 09:01:59 EDT 2006


Thanks for the replies.

> You can do both
>
> from module import *
> import module
>
> as these kinds of import are not mutually exclusive.

Would this run the code in 'module' twice, or just make the objects in
it accessible by several names ?




More information about the Python-list mailing list