Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python documentation
#8
(Jul-05-2018, 09:37 AM)j4py Wrote: Say type string, and all i want is methods i can apply to strings, but i get all kinds of results that i have to go through which is why i said it is a disaster.
really?
>>> dir(str)
['__add__', '__class__', '__contains__', '__delattr__', '__doc__', '__eq__', '__
format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__get
slice__', '__gt__', '__hash__', '__init__', '__le__', '__len__', '__lt__', '__mo
d__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__',
 '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook
__', '_formatter_field_name_split', '_formatter_parser', 'capitalize', 'center',
 'count', 'decode', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'index
', 'isalnum', 'isalpha', 'isdigit', 'islower', 'isspace', 'istitle', 'isupper',
'join', 'ljust', 'lower', 'lstrip', 'partition', 'replace', 'rfind', 'rindex', '
rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', '
strip', 'swapcase', 'title', 'translate', 'upper', 'zfill']
>>>
then use help, if you not able to navigate in the online docs
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
python documentation - by j4py - Jun-11-2018, 11:55 AM
RE: python documentation - by metulburr - Jun-11-2018, 12:04 PM
RE: python documentation - by Larz60+ - Jun-11-2018, 02:26 PM
RE: python documentation - by Nwb - Jun-12-2018, 05:07 PM
RE: python documentation - by killerrex - Jun-12-2018, 05:34 PM
RE: python documentation - by Skaperen - Jun-13-2018, 03:25 AM
RE: python documentation - by j4py - Jul-05-2018, 09:37 AM
RE: python documentation - by buran - Jul-05-2018, 10:01 AM
RE: python documentation - by gruntfutuk - Jul-05-2018, 10:26 AM
RE: python documentation - by snippsat - Jul-05-2018, 12:18 PM
RE: python documentation - by ichabod801 - Jul-05-2018, 06:01 PM
RE: python documentation - by Skaperen - Jul-06-2018, 02:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Documentation Question Python 3.8 OldSubSailor 0 1,295 May-10-2020, 01:45 PM
Last Post: OldSubSailor

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020