Re: Python Documentation (should be better?)



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
.



Relevant Pages

  • Re: Python Documentation (should be better?)
    ... > where to find string methods (not methods in the string module, ... The answer to 80% of "where is it" questions re the Python docs is ... "Section 2 of the Library Reference". ... Language Reference), miscellaneous functions that aren't in the module ...
    (comp.lang.python)
  • Re: Python Documentation (should be better?)
    ... The Python docs are not ideal. ... where to find string methods (not methods in the string module, ... Ivan Van Laningham ...
    (comp.lang.python)
  • Re: Python Documentation (should be better?)
    ... > Could you tell me how to reproduce your results (of getting Python 2.1.3)? ... Type string methods into the box; ... If I click on "Documentation" on the main page, ... Ivan Van Laningham ...
    (comp.lang.python)
  • Re: Python Documentation (should be better?)
    ... Ivan Van Laningham wrote: ... about 9,800 from www.python.org for string methods. ... I imagine it wouldn't be that hard to add the equivalent of Google's "I'm ... I tried just "string" and couldn't find anything but the current docs in the first 10 pages (and was too lazy to check anything else). ...
    (comp.lang.python)