Hi everyone I have wasted 2 hours trying to figure out how to get a reference to the module object. that is the one returned by
__import__ or when you call a module for name like
>>> import sys
>>> sys
<module 'sys' (built-in)>
the reason I want this is that I want to introspec my module
so I need some way to indentify what elements are inside the module, to execute something like:
""for all the classes defined in this module do <something>"
I found an ugly hack to the docs help(type(sys))
-- http://mail.python.org/mailman/listinfo/python-list