Inclusion Guards Necessary?
Mike C. Fletcher
mcfletch at rogers.com
Wed May 26 16:01:36 EDT 2004
Kamilche wrote:
>Are inclusion guards necessary to prevent multiple modules from
>importing the same shared module multiple times?
>
>
No, multiple imports of a python module just do a lookup and return the
same module object as was returned by the previous import.
HTH,
Mike
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://members.rogers.com/mcfletch/
blog: http://zope.vex.net/~mcfletch/plumbing/
More information about the Python-list
mailing list