showing help(M) when running module M standalone

Dan Sommers me at privacy.net
Sat Jul 30 20:17:06 EDT 2005


On Sat, 30 Jul 2005 22:02:49 +0200,
Chris <c at cdot.de> wrote:

> I tried that, problem is that __all__ containts strings...

Okay, that's twice I've lept before I looked.  How about this:

    for a in __all__:
        print globals()[a].__doc__

HTH,
Dan

-- 
Dan Sommers
<http://www.tombstonezero.net/dan/>



More information about the Python-list mailing list