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
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.
I think that the problem is not that your Windows OS doesn't have more
but that Windows 7 UAC (User Access Control) runs your command line window in user mode
instead of admin mode.
To solve the problem, run cmd
as an administrator and then run python from that window. That should take care of it. I am assuming that you have already located the more
program in C:\Windows\System32\more.com