[Tutor] concerning help() function
Alan Gauld
alan.gauld at btinternet.com
Wed Jul 29 21:49:13 CEST 2009
"David" <ldl08 at gmx.net> wrote
> whenever I make use of the help() function, I have a good chance of
> getting an error. I have not yet understood this tool very well.
You need to import the module to maker the name visible
> help(random)
> help('operator')
>
> I figured this by trial and error,
error mainly.
What you are seeing is the help for the string 'operator' - which
is the same as the help for any other string - the builtin string
methods. Comparte it with
>>> help('')
HTH,
--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/
More information about the Tutor
mailing list