def myfunc():
""" My docstring """
print "hello"
help(myfunc)
I get
'more' is not recognized as an internal or external command,
operable program or batch file.
Windows 7 64bit, Python 2.6
Python's help() function tries to, in your case, execute the more command. It should look something like this, when more is installed:
>>> help(myfunc)
Help on function myfunc in module __main__:
myfunc()
My docstring
But you can also do
>>> print myfunc.__doc__
My docstring
to read the docstring.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With