Re: Importing and namespace visibility

2005-05-17 Thread bruno modulix
jean-marc wrote: > 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

Re: Importing and namespace visibility

2005-05-16 Thread jean-marc
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 mak

Re: Importing and namespace visibility

2005-05-16 Thread bruno modulix
jean-marc wrote: > As an application programmer, I'm not well versed in the material > aspects of computing (memory, cpu, bus and all). My understanding of > imports in Python is such: the __main__ program is the center piece > which holds the programs reference: globals, functions, classes, > modu

Re: Importing and namespace visibility

2005-05-15 Thread Fredrik Lundh
"jean-marc" wrote: > BUT, of all this I thought that if you import module1, then module2 > (into __main__), objects from module1 would be available to objects of > module2 which came (into memory space) after module1 was loaded. This > does not seem to be the case, and module2 requires an 'import