A question about help() and docstrings
Richard Kuhns
rjkuhns at geetel.net
Wed Apr 2 21:20:43 EST 2003
On Thu, 03 Apr 2003 13:02:32 +1200
"Greg Ewing (using news.cis.dfn.de)" <ckea25d02 at sneakemail.com> wrote:
> 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.
Thanks for the suggestion. I started out with
"""help('dummy.dummy_function')""", which has worked fine when doing
something like """import dummy""", and so was rather bamfoozled when the
second form didn't work.
--
Richard Kuhns rjkuhns at geetel.net
More information about the Python-list
mailing list