K
Kamilche
Are inclusion guards necessary to prevent multiple modules from
importing the same shared module multiple times?
--Kamilche
importing the same shared module multiple times?
--Kamilche
No, multiple imports of a python module just do a lookup and return theKamilche said:Are inclusion guards necessary to prevent multiple modules from
importing the same shared module multiple times?
Mike C. Fletcher said:No, multiple imports of a python module just do a lookup and return the
same module object as was returned by the previous import.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.