Python Documentation (should be better?)

Skip Montanaro skip at pobox.com
Wed May 11 21:43:34 EDT 2005


    Ivan> I can never remember ...where to find string methods

    >>>> dir('')
    Bruno> ['__add__', '__class__', ...

Also:

    >>> help(str)
    Help on class str in module __builtin__:

    class str(basestring)
     |  str(object) -> string
     |  
     |  Return a nice string representation of the object.
     |  If the argument is a string, the return value is the same object.
     |  
     |  Method resolution order:
     |      str
     |      basestring
     |      object
     |  
     |  Methods defined here:
    ...

Skip



More information about the Python-list mailing list