Introspection at the module level?

Aloysio Figueiredo xpythonist at yahoo.com.br
Sat Mar 6 12:12:56 EST 2004


> > Not to mention that I don't 
> > see how to get a handle to the module from inside the module, i.e. 
> > there's no "self".

from sys import modules

module_self = modules[__name__]

:)

Aloysio

______________________________________________________________________

Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html




More information about the Python-list mailing list