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:41:47 EDT 2006


On 6/23/06, Jorge Vargas <jorge.vargas at gmail.com> wrote:
>
> 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))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060623/e66f15e1/attachment.html>


More information about the Python-list mailing list