Python Documentation (should be better?)

Bruno Desthuilliers bdesth.quelquechose at free.quelquepart.fr
Wed May 11 17:40:02 EDT 2005


Ivan Van Laningham a écrit :
> Hi All--
> The Python docs are not ideal.  I can never remember, for instance,
> where to find string methods (not methods in the string module, but
> methods with ''),

 >>> dir('')
['__add__', '__class__', '__contains__', '__delattr__', '__doc__', 
'__eq__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', 
'__getslice__', '__gt__', '__hash__', '__init__', '__le__', '__len__', 
'__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', 
'__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', 
'__str__', 'capitalize', 'center', 'count', 'decode', 'encode', 
'endswith', 'expandtabs', 'find', 'index', 'isalnum', 'isalpha', 
'isdigit', 'islower', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 
'lower', 'lstrip', 'replace', 'rfind', 'rindex', 'rjust', 'rstrip', 
'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 
'translate', 'upper', 'zfill']

HTH



More information about the Python-list mailing list