Re: import and global namespace

2006-07-12 Thread Bruno Desthuilliers
Dennis Lee Bieber wrote:
> On Wed, 12 Jul 2006 02:48:44 +0200, Bruno Desthuilliers
> <[EMAIL PROTECTED]> declaimed the following in
> comp.lang.python:
> 
> 
>>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?
> 
>
> 
>>NB : FWIW, the clean solution probably involve a class...
> 
> 
>   Or a common module that both (all) import...

I'm afraid this would be as messy. Having one module depending on
implicits external names is a good way to spaghetti code.

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: import and global namespace

2006-07-11 Thread Bruno Desthuilliers
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...
-- 
http://mail.python.org/mailman/listinfo/python-list


import and global namespace

2006-07-11 Thread nate
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?

thanks,
nate

-- 
http://mail.python.org/mailman/listinfo/python-list