interactive help on string functions - howto

Skip Montanaro skip at pobox.com
Wed Sep 29 22:44:20 CEST 2004


    Helmut> Still I wonder why I have to prefix it with 'str.'  I don't need
    Helmut> to import str and I don't need to prefix rstrip with 'str.' to
    Helmut> USE it - why do I have to do so with HELP then?

You need to prefix rstrip with a string instance or type (class).  "str" is
to readily available type (class).  You could also execute

    help("".rstrip)

Skip



More information about the Python-list mailing list