Reference current module?

Tobiah toby at tobiah.org
Tue Jun 19 15:22:05 EDT 2007


Can I do:

getattr(current_module, 'foo')

where 'current_module' is a handle the the one
that the code is in?  Just like

getattr(self, 'foo')

in a class, but for the current module instead?

Thanks,

Toby

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list