471,337 Members | 1,166 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

where is help file?

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
Sep 14 '07 #1
5 1402
On Fri, 2007-09-14 at 10:00 -0400, PaulS wrote:
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:
>>def f(x):
.... "Calculate the square of x."
.... return x**x
....
>>help(f)
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),

--
Carsten Haese
http://informixdb.sourceforge.net
Sep 14 '07 #2
"Carsten Haese" schrieb
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:
>def f(x):
... "Calculate the square of x."
... return x**x
...
>help(f)
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

Sep 14 '07 #3
On Fri, 2007-09-14 at 18:20 +0200, Martin Blume wrote:
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().

--
Carsten Haese
http://informixdb.sourceforge.net
Sep 14 '07 #4
On 2007-09-14, Carsten Haese <ca*****@uniqsys.comwrote:
On Fri, 2007-09-14 at 18:20 +0200, Martin Blume wrote:
>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().
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.

--
Neil Cerutti
Sep 14 '07 #5
Thanks everyone.
Paul
"Neil Cerutti" <ho*****@yahoo.comwrote in message
news:sl*******************@FIAD06.norwich.edu...
On 2007-09-14, Carsten Haese <ca*****@uniqsys.comwrote:
>On Fri, 2007-09-14 at 18:20 +0200, Martin Blume wrote:
>>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().

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.

--
Neil Cerutti

Sep 14 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by jabailo | last post: by
10 posts views Thread by vwd2005eeb | last post: by
1 post views Thread by rdemyan via AccessMonster.com | last post: by
13 posts views Thread by 010 010 | last post: by
3 posts views Thread by v.davis2 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.