import parent

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Tue Feb 27 16:24:56 EST 2007


Greg Hoover wrote:

> How does one get access to the class that imported a module.  For
> example: foo imports bar -- how does bar access foo?

Directly? Not at all in sane programs, IMHO. That's the job of clear
interfaces.

Regards,


Björn

-- 
BOFH excuse #407:

Route flapping at the NAP.




More information about the Python-list mailing list