python online help?
skip at mojam.com
Fri Feb 18 22:54:59 CET 2000
Benyang> Is there a online help in python? Say something like
Benyang> help print
Benyang> would give document of the print command.
Not quite. Many objects have documentation strings you can display during
an interactive session:
>>> import string
>>> print string.__doc__
A collection of string operations (most are no longer used in Python 1.6).
>>> print string.join.__doc__
join(list [,sep]) -> string
Return a string composed of the words in list, with
intervening occurences of sep. The default separator is a
(joinfields and join are synonymous)
Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
"Languages that change by catering to the tastes of non-users tend not to do
so well." - Doug Landauer
More information about the Python-list