module docstring, documentation, anything? please note is the module type/object NOT some module

Jorge Vargas jorge.vargas at gmail.com
Fri Jun 23 22:17:46 EDT 2006


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>"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060623/a309656c/attachment.html>


More information about the Python-list mailing list