A question about help() and docstrings

Greg Ewing (using news.cis.dfn.de) ckea25d02 at sneakemail.com
Wed Apr 2 20:02:32 EST 2003


Richard Kuhns wrote:
>>>>from dummy import *
>>>>help('dummy_function')
> 
> no Python documentation found for 'dummy_function'

Try this instead:

   help(dummy_function)

i.e. pass it the function *object* itself, rather than
the *name* of the function.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg





More information about the Python-list mailing list