__format__ ((format_spec) -> string) |
Return a formatted version of S as described by format_spec. |
__getnewargs__ |
|
__new__ ((S, ...) |
|
__reduce__ |
helper for pickle |
__reduce_ex__ |
helper for pickle |
__sizeof__ (() -> size of S in memory, in bytes) |
|
__subclasshook__ |
Abstract classes can override this to customize issubclass(). |
_formatter_field_name_split |
|
_formatter_parser |
|
capitalize (() -> string) |
Return a copy of the string S with only its first character capitalized. |
center ((width[, fillchar]) -> string) |
Return S centered in a string of length width. |
count ((sub[, start[, end]]) -> int) |
Return the number of non-overlapping occurrences of substring sub in string S[start:end]. |
decode (([encoding[,errors]]) -> object) |
Decodes S using the codec registered for encoding. |
encode (([encoding[,errors]]) -> object) |
Encodes S using the codec registered for encoding. |
endswith ((suffix[, start[, end]]) -> bool) |
Return True if S ends with the specified suffix, False otherwise. |
expandtabs (([tabsize]) -> string) |
Return a copy of S where all tab characters are expanded using spaces. |
find ((sub [,start [,end]]) -> int) |
Return the lowest index in S where substring sub is found, such that sub is contained within S[start:end]. |
format ((*args, **kwargs) -> string) |
Return a formatted version of S, using substitutions from args and kwargs. |
index ((sub [,start [,end]]) -> int) |
Like S.find() but raise ValueError when the substring is not found. |
isalnum (() -> bool) |
Return True if all characters in S are alphanumeric and there is at least one character in S, False otherwise. |
isalpha (() -> bool) |
Return True if all characters in S are alphabetic and there is at least one character in S, False otherwise. |
isdigit (() -> bool) |
Return True if all characters in S are digits and there is at least one character in S, False otherwise. |
islower (() -> bool) |
Return True if all cased characters in S are lowercase and there is at least one cased character in S, False otherwise. |
isspace (() -> bool) |
Return True if all characters in S are whitespace and there is at least one character in S, False otherwise. |
istitle (() -> bool) |
Return True if S is a titlecased string and there is at least one character in S, i.e. |
isupper (() -> bool) |
Return True if all cased characters in S are uppercase and there is at least one cased character in S, False otherwise. |
join ((iterable) -> string) |
Return a string which is the concatenation of the strings in the iterable. |
ljust ((width[, fillchar]) -> string) |
Return S left-justified in a string of length width. |
lower (() -> string) |
Return a copy of the string S converted to lowercase. |
lstrip (([chars]) -> string or unicode) |
Return a copy of the string S with leading whitespace removed. |
partition (sep) -> (head, sep, tail) |
Search for the separator sep in S, and return the part before it, the separator itself, and the part after it. |
replace ((old, new[, count]) -> string) |
Return a copy of string S with all occurrences of substring old replaced by new. |
rfind ((sub [,start [,end]]) -> int) |
Return the highest index in S where substring sub is found, such that sub is contained within S[start:end]. |
rindex ((sub [,start [,end]]) -> int) |
Like S.rfind() but raise ValueError when the substring is not found. |
rjust ((width[, fillchar]) -> string) |
Return S right-justified in a string of length width. |
rpartition (sep) -> (head, sep, tail) |
Search for the separator sep in S, starting at the end of S, and return the part before it, the separator itself, and the part after it. |
rsplit (([sep [,maxsplit]]) -> list of strings) |
Return a list of the words in the string S, using sep as the delimiter string, starting at the end of the string and working to the front. |
rstrip (([chars]) -> string or unicode) |
Return a copy of the string S with trailing whitespace removed. |
split (([sep [,maxsplit]]) -> list of strings) |
Return a list of the words in the string S, using sep as the delimiter string. |
splitlines ((keepends=False) -> list of strings) |
Return a list of the lines in S, breaking at line boundaries. |
startswith ((prefix[, start[, end]]) -> bool) |
Return True if S starts with the specified prefix, False otherwise. |
strip (([chars]) -> string or unicode) |
Return a copy of the string S with leading and trailing whitespace removed. |
swapcase (() -> string) |
Return a copy of the string S with uppercase characters converted to lowercase and vice versa. |
title (() -> string) |
Return a titlecased version of S, i.e. |
translate ((table [,deletechars]) -> string) |
Return a copy of the string S, where all characters occurring in the optional argument deletechars are removed, and the remaining characters have been mapped through the given translation table, which must be a string of length 256 or None. |
upper (() -> string) |
Return a copy of the string S converted to uppercase. |
zfill ((width) -> string) |
Pad a numeric string S with zeros on the left, to fill a field of the specified width. |