Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #79718

Finding my way around help

Newsgroups comp.lang.python
Date 2014-10-26 08:14 -0700
Message-ID <fcfb3e30-4647-4b98-8e23-a3f16cf2a2c2@googlegroups.com> (permalink)
Subject Finding my way around help
From Rustom Mody <rustompmody@gmail.com>

Show all headers | View raw


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.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Finding my way around help Rustom Mody <rustompmody@gmail.com> - 2014-10-26 08:14 -0700

csiph-web