where is help file?

P

PaulS

new to Fedora7, typed python in interactive interpreter, then help(). Then
modules to get a list of modules. Then module name to get info on a module
but no help file. What is the help file name? Is there an environmental
variable I have to set? Thanks,
Paul
 
C

Carsten Haese

new to Fedora7, typed python in interactive interpreter, then help(). Then
modules to get a list of modules. Then module name to get info on a module
but no help file. What is the help file name? Is there an environmental
variable I have to set?

There is no help file, and no environment variable. The help text is
stored directly inside each module and function that supplies a help
text. Observe:
.... "Calculate the square of x."
.... return x**x
.... Help on function f in module __main__:

f(x)
Calculate the square of x.
(END)

Providing such a help text is optional, but all standard library modules
do provide help as far as I know. Consequently, the fact that you have a
module that doesn't provide a help text seems to indicate that it's not
a standard library module. What's the name of the module you're trying
to get help on?

Hope this helps (no pun intended),
 
M

Martin Blume

There is no help file, and no environment variable. The help text is
stored directly inside each module and function that supplies a help
text. Observe:

... "Calculate the square of x."
... return x**x
...
Help on function f in module __main__:

f(x)
Calculate the square of x.
(END)

Providing such a help text is optional, but all standard library modules
do provide help as far as I know. Consequently, the fact that you have a
module that doesn't provide a help text seems to indicate that it's not
a standard library module. What's the name of the module you're trying
to get help on?

Hope this helps (no pun intended),
AFAIK you have to import the module first, before you can get help
on that module.

HTH
Martin
 
C

Carsten Haese

AFAIK you have to import the module first, before you can get help
on that module.

While that is true of the help(module_name) form, this is not necessary
in the interactive helper you start by calling help().
 
N

Neil Cerutti

While that is true of the help(module_name) form, this is not
necessary in the interactive helper you start by calling
help().

The interactive help function is cool. You need to download and
install the HTML version of the standard docs to take the utmost
advantage of it.
 
P

PaulS

Thanks everyone.
Paul


Neil Cerutti said:
The interactive help function is cool. You need to download and
install the HTML version of the standard docs to take the utmost
advantage of it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,241
Latest member
Lisa1997

Latest Threads

Top