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