interactive help on string functions - howto
Jeremy Jones
zanesdad at bellsouth.net
Wed Sep 29 13:40:11 EDT 2004
Helmut Jarausch wrote:
> Hi,
>
> entering
> help('rstrip')
> or
> help('ljust')
>
> into IDLE's shell window I only get
> no Python documentation found ...
>
> Am I missing something?
>
> Thanks for a hint,
> Helmut.
>
Make sure you've imported string. Then you can do:
>>> help(string.rstrip)
Help on function rstrip in module string:
rstrip(s, chars=None)
rstrip(s [,chars]) -> string
Return a copy of the string s with trailing whitespace removed.
If chars is given and not None, remove characters in chars instead.
Jeremy Jones
More information about the Python-list
mailing list