Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Importing and namespace visibility
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="jean-marc, post: 1820014"] Merci Bruno, ( and also to Fredrik ) So I think I understand correctly, if I say that: each modulkes requires its own set of reference to whatever objects it needs to speak. The interpreter wil see not to create extra copies of the compiled code if many modules import the same modules but will make them all point to the one already existing (in this program's execution). Practically, it means every module import whatever it needs - be careful with recursive imports - keep things tidy by using the 'import suchModule' (and use dotted name chains to reach whatever is needed). Again thank you, JM PS Nice weather in Bordeaux ? I've been there once... (when I was young (sigh)) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Importing and namespace visibility
Top