
tjreedy at udel
Aug 27, 2008, 4:53 PM
Post #5 of 16
(76 views)
Permalink
|
ssecorp wrote: > if i want to make a string downcase, is upper().swapcase() the onyl > choice? there is no downer() ? If you are not being a troll, there are two easy ways to answer such a question. >>> dir('') [.'__add__', '__class__', '__contains__', '__delattr__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__', '__hash__', '__init__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__rmod__', '__rmul__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '_formatter_field_name_split', '_formatter_parser', 'capitalize', 'center', 'count', 'encode', 'endswith', 'expandtabs', 'find', 'format', 'index', 'isalnum', 'isalpha', 'isdecimal', 'isdigit', 'isidentifier', 'islower', 'isnumeric', 'isprintable', 'isspace', 'istitle', 'isupper', 'join', 'ljust', 'lower', 'lstrip', 'maketrans', 'partition', 'replace', 'rfind', 'rindex', 'rjust', 'rpartition', 'rsplit', 'rstrip', 'split', 'splitlines', 'startswith', 'strip', 'swapcase', 'title', 'translate', 'upper', 'zfill'] followed by >>> help(''.lower) Help on built-in function lower: lower(...) S.lower() -> str Return a copy of the string S converted to lowercase. OR >>> help(str) which gives screenfuls of info including the above. tjr -- http://mail.python.org/mailman/listinfo/python-list
|