Help on help()

D

dbr517

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
 
M

Martin v. Löwis

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top