import and global namespace

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Tue Jul 11 20:48:44 EDT 2006


nate a écrit :
> I'd like a module than I'm importing to be able to use objects in the
> global namespace into which it's been imported.  is there a way to do
> that?

It's a very bad idea. Instead of asking how to implement a bad solution, 
tell us about the real problem.

NB : FWIW, the clean solution probably involve a class...



More information about the Python-list mailing list