retype.extras.str_subclasses.AnyStr
- class retype.extras.str_subclasses.AnyStr(*possibilities)[source]
A string that is equal to all `possibilities’. Each possibility should be equal in length.
Methods
__init__(*possibilities)capitalize()casefold()center(width, *args)count(value)encode([encoding, errors])endswith(suffix[, start, end])expandtabs([tabsize])find(sub[, start, end])format(*args, **kwds)format_map(mapping)index(value, [start, [stop]])Raises ValueError if the value is not present.
isalnum()isalpha()isascii()isdecimal()isdigit()isidentifier()islower()isnumeric()isprintable()isspace()istitle()isupper()join(iterable)Not like the str method because we don’t put anything in between
ljust(width, *args)lower()lstrip([chars])maketrans([y, z])Return a translation table usable for str.translate().
partition(sep)replace(old, new[, maxsplit])rfind(sub[, start, end])rindex(sub[, start, end])rjust(width, *args)rpartition(sep)rsplit([sep, maxsplit])rstrip([chars])split([sep, maxsplit])splitlines([keepends])startswith(prefix[, start, end])strip([chars, directions])swapcase()title()translate(*args)upper()zfill(width)