[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Help on help

dbr517

2/21/2008 6:07:00 PM

Is there any technique for preventing help from recursing into the
module tree??

If I do:

import my_module
help(my_module)

I'd like to see ONLY help on my_module, NOT help on all the functions
inherited from the various parent classes . . .

A quick search of the documentation didn't turn up anything . . . .

TIA .. .

Dan
1 Answer

Martin v. Loewis

2/21/2008 8:32:00 PM

0

> If I do:
>
> import my_module
> help(my_module)
>
> I'd like to see ONLY help on my_module, NOT help on all the functions
> inherited from the various parent classes . . .

I would do

print my_module.__doc__

HTH,
Martin