What is the cleanest way to for a module to access objects from the script that imports it?

2006-10-27 Thread noamsml
Hi, I am new to python and am currently writing my first application. One of the problems I quickly ran into, however, is that python's imports are very different from php/C++ includes in the sense that they completely wrap the imported script in a module object. One of the problems with this was

Re: What is the cleanest way to for a module to access objects from the script that imports it?

2006-10-27 Thread noamsml
Wouldn't importing and re-importing the same modules cause considerable resource bulk? Or does python cache that stuff? On Oct 27, 6:28 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Friday 27/10/2006 18:53, [EMAIL PROTECTED] wrote: > > >I am new to python and am currently writing my first