Finding my way around help
Rustom Mody
rustompmody at gmail.com
Sun Oct 26 11:14:03 EDT 2014
Context:
I will be showing the way around to some experienced programmers
new to python.
Do
>>> help()
Among other things I get:
| Enter the name of any module, keyword, or topic to get help on writing
| Python programs and using Python modules. To quit this help utility and
| return to the interpreter, just type "quit".
However I find it returns to the normal REPL with just a return;
no quit. I would have expected a special help REPL to keep running
till I give quit. What gives?
Also I tried
>>> help(help)
This shows the docstring for class _Helper(builtins.object)
However if I do this
>>> from pydoc import help
>>> help(help)
I get more useful help.
Seems the wrong way round...
Above is true for 2.7 and 3.4.
More information about the Python-list
mailing list