Use this to modify a type as it comes in or goes out. More...
Methods defined here: | |
def | __init__ |
def | foo |
def | foo |
Data descriptors defined here: | |
def | __dict__ |
dictionary for instance variables (if defined) |
Methods inherited from __builtin__.str: | |
def | __add__ |
Equivalent to x+y. | |
def | __contains__ |
Equivalent to y in x. | |
def | __eq__ |
Equivalent to x==y. | |
def | __format__ |
def | __ge__ |
Equivalent to x>=y. | |
def | __getattribute__ |
Equivalent to x.name. | |
def | __getitem__ |
Equivalent to x[y]. | |
def | __getnewargs__ |
def | __getslice__ |
Equivalent to x[i:j]. | |
def | __gt__ |
Equivalent to x>y. | |
def | __hash__ |
Equivalent to hash(x) | |
def | __le__ |
Equivalent to x<=y. | |
def | __len__ |
Equivalent to len(x) | |
def | __lt__ |
Equivalent to x<y. | |
def | __mod__ |
Equivalent to xy. | |
def | __mul__ |
Equivalent to x*n. | |
def | __ne__ |
Equivalent to x!=y. | |
def | __repr__ |
Equivalent to repr(x) | |
def | __rmod__ |
Equivalent to yx. | |
def | __rmul__ |
Equivalent to n*x. | |
def | __sizeof__ |
def | __str__ |
Equivalent to str(x) | |
def | capitalize |
def | center |
def | count |
def | decode |
def | encode |
def | endswith |
def | expandtabs |
def | find |
def | format |
def | index |
def | isalnum |
def | isalpha |
def | isdigit |
def | islower |
def | isspace |
def | istitle |
def | isupper |
def | join |
def | ljust |
def | lower |
def | lstrip |
def | partition |
def | replace |
def | rfind |
def | rindex |
def | rjust |
def | rpartition |
def | rsplit |
def | rstrip |
def | split |
def | splitlines |
def | startswith |
def | strip |
def | swapcase |
def | title |
def | translate |
def | upper |
def | zfill |
Data and other attributes inherited from __builtin__.str: | |
def | __new__ |
Use this to modify a type as it comes in or goes out.
This is the final type handling done, prefer this to "register_handlers"
TypeHandler
builtin.str
builtin.basestring
builtin.object
def dialog.controller.TypeHandler.__init__ | ( | args | ) |
__init__(args)
def dialog.controller.TypeHandler.__add__ | ( | y | ) |
Equivalent to x+y.
def dialog.controller.TypeHandler.__contains__ | ( | y | ) |
Equivalent to y in x.
def dialog.controller.TypeHandler.__dict__ | ( | args | ) |
dictionary for instance variables (if defined)
def dialog.controller.TypeHandler.__eq__ | ( | y | ) |
Equivalent to x==y.
def dialog.controller.TypeHandler.__format__ | ( | format_spec | ) |
Return a formatted version of S as described by format_spec.
def dialog.controller.TypeHandler.__ge__ | ( | y | ) |
Equivalent to x>=y.
def dialog.controller.TypeHandler.__getattribute__ | ( | name | ) |
Equivalent to x.name.
def dialog.controller.TypeHandler.__getitem__ | ( | y | ) |
Equivalent to x[y].
def dialog.controller.TypeHandler.__getnewargs__ | ( | args | ) |
__getnewargs__(args)
def dialog.controller.TypeHandler.__getslice__ | ( | i, | |
j | |||
) |
Equivalent to x[i:j].
Use of negative indices is not supported.
def dialog.controller.TypeHandler.__gt__ | ( | y | ) |
Equivalent to x>y.
def dialog.controller.TypeHandler.__hash__ | ( | args | ) |
Equivalent to hash(x)
def dialog.controller.TypeHandler.__le__ | ( | y | ) |
Equivalent to x<=y.
def dialog.controller.TypeHandler.__len__ | ( | args | ) |
Equivalent to len(x)
def dialog.controller.TypeHandler.__lt__ | ( | y | ) |
Equivalent to x<y.
def dialog.controller.TypeHandler.__mod__ | ( | y | ) |
Equivalent to xy.
def dialog.controller.TypeHandler.__mul__ | ( | n | ) |
Equivalent to x*n.
def dialog.controller.TypeHandler.__ne__ | ( | y | ) |
Equivalent to x!=y.
def dialog.controller.TypeHandler.__new__ | ( | args | ) |
T.__new__(S, ...) -> a new object with type S, a subtype of T
__new__ = <built-in method __new__ of type object>
def dialog.controller.TypeHandler.__repr__ | ( | args | ) |
Equivalent to repr(x)
def dialog.controller.TypeHandler.__rmod__ | ( | y | ) |
Equivalent to yx.
def dialog.controller.TypeHandler.__rmul__ | ( | n | ) |
Equivalent to n*x.
def dialog.controller.TypeHandler.__sizeof__ | ( | args | ) |
def dialog.controller.TypeHandler.__str__ | ( | args | ) |
Equivalent to str(x)
def dialog.controller.TypeHandler.capitalize | ( | args | ) |
Return a copy of the string S with only its first character capitalized.
def dialog.controller.TypeHandler.center | ( | width, | |
fillchar | |||
) |
Return S centered in a string of length width. Padding is done using the specified fill character (default is a space)
def dialog.controller.TypeHandler.count | ( | sub, | |
start, | |||
end | |||
) |
Return the number of non-overlapping occurrences of substring sub in string S[start:end]. Optional arguments start and end are interpreted as in slice notation.
def dialog.controller.TypeHandler.decode | ( | encoding, | |
errors | |||
) |
Decodes S using the codec registered for encoding. encoding defaults to the default encoding. errors may be given to set a different error handling scheme. Default is 'strict' meaning that encoding errors raise a UnicodeDecodeError. Other possible values are 'ignore' and 'replace' as well as any other name registered with codecs.register_error that is able to handle UnicodeDecodeErrors.
def dialog.controller.TypeHandler.encode | ( | encoding, | |
errors | |||
) |
Encodes S using the codec registered for encoding. encoding defaults to the default encoding. errors may be given to set a different error handling scheme. Default is 'strict' meaning that encoding errors raise a UnicodeEncodeError. Other possible values are 'ignore', 'replace' and 'xmlcharrefreplace' as well as any other name registered with codecs.register_error that is able to handle UnicodeEncodeErrors.
def dialog.controller.TypeHandler.endswith | ( | suffix, | |
start, | |||
end | |||
) |
Return True if S ends with the specified suffix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. suffix can also be a tuple of strings to try.
def dialog.controller.TypeHandler.expandtabs | ( | tabsize | ) |
Return a copy of S where all tab characters are expanded using spaces. If tabsize is not given, a tab size of 8 characters is assumed.
def dialog.controller.TypeHandler.find | ( | sub, | |
start, | |||
end | |||
) |
Return the lowest index in S where substring sub is found, such that sub is contained within s[start:end]. Optional arguments start and end are interpreted as in slice notation. Return -1 on failure.
def dialog.controller.TypeHandler.foo | ( | args | ) |
from_screen = foo(args)
def dialog.controller.TypeHandler.foo | ( | args | ) |
to_screen = foo(args)
def dialog.controller.TypeHandler.format | ( | args, | |
kwargs | |||
) |
Return a formatted version of S, using substitutions from args and kwargs. The substitutions are identified by braces ('{' and '}').
def dialog.controller.TypeHandler.index | ( | sub, | |
start, | |||
end | |||
) |
Like S.find() but raise ValueError when the substring is not found.
def dialog.controller.TypeHandler.isalnum | ( | args | ) |
Return True if all characters in S are alphanumeric and there is at least one character in S, False otherwise.
def dialog.controller.TypeHandler.isalpha | ( | args | ) |
Return True if all characters in S are alphabetic and there is at least one character in S, False otherwise.
def dialog.controller.TypeHandler.isdigit | ( | args | ) |
Return True if all characters in S are digits and there is at least one character in S, False otherwise.
def dialog.controller.TypeHandler.islower | ( | args | ) |
Return True if all cased characters in S are lowercase and there is at least one cased character in S, False otherwise.
def dialog.controller.TypeHandler.isspace | ( | args | ) |
Return True if all characters in S are whitespace and there is at least one character in S, False otherwise.
def dialog.controller.TypeHandler.istitle | ( | args | ) |
Return True if S is a titlecased string and there is at least one character in S, i.e. uppercase characters may only follow uncased characters and lowercase characters only cased ones. Return False otherwise.
def dialog.controller.TypeHandler.isupper | ( | args | ) |
Return True if all cased characters in S are uppercase and there is at least one cased character in S, False otherwise.
def dialog.controller.TypeHandler.join | ( | iterable | ) |
Return a string which is the concatenation of the strings in the iterable. The separator between elements is S.
def dialog.controller.TypeHandler.ljust | ( | width, | |
fillchar | |||
) |
Return S left-justified in a string of length width. Padding is done using the specified fill character (default is a space).
def dialog.controller.TypeHandler.lower | ( | args | ) |
Return a copy of the string S converted to lowercase.
def dialog.controller.TypeHandler.lstrip | ( | chars | ) |
Return a copy of the string S with leading whitespace removed. If chars is given and not None, remove characters in chars instead. If chars is unicode, S will be converted to unicode before stripping
def dialog.controller.TypeHandler.partition | ( | sep | ) |
Search for the separator sep in S, and return the part before it, the separator itself, and the part after it. If the separator is not found, return S and two empty strings.
def dialog.controller.TypeHandler.replace | ( | old, | |
new, | |||
count | |||
) |
Return a copy of string S with all occurrences of substring old replaced by new. If the optional argument count is given, only the first count occurrences are replaced.
def dialog.controller.TypeHandler.rfind | ( | sub, | |
start, | |||
end | |||
) |
Return the highest index in S where substring sub is found, such that sub is contained within s[start:end]. Optional arguments start and end are interpreted as in slice notation. Return -1 on failure.
def dialog.controller.TypeHandler.rindex | ( | sub, | |
start, | |||
end | |||
) |
Like S.rfind() but raise ValueError when the substring is not found.
def dialog.controller.TypeHandler.rjust | ( | width, | |
fillchar | |||
) |
Return S right-justified in a string of length width. Padding is done using the specified fill character (default is a space)
def dialog.controller.TypeHandler.rpartition | ( | 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. If the separator is not found, return two empty strings and S.
def dialog.controller.TypeHandler.rsplit | ( | 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. If maxsplit is given, at most maxsplit splits are done. If sep is not specified or is None, any whitespace string is a separator.
def dialog.controller.TypeHandler.rstrip | ( | chars | ) |
Return a copy of the string S with trailing whitespace removed. If chars is given and not None, remove characters in chars instead. If chars is unicode, S will be converted to unicode before stripping
def dialog.controller.TypeHandler.split | ( | sep, | |
maxsplit | |||
) |
Return a list of the words in the string S, using sep as the delimiter string. If maxsplit is given, at most maxsplit splits are done. If sep is not specified or is None, any whitespace string is a separator and empty strings are removed from the result.
def dialog.controller.TypeHandler.splitlines | ( | keepends | ) |
Return a list of the lines in S, breaking at line boundaries. Line breaks are not included in the resulting list unless keepends is given and true.
def dialog.controller.TypeHandler.startswith | ( | prefix, | |
start, | |||
end | |||
) |
Return True if S starts with the specified prefix, False otherwise. With optional start, test S beginning at that position. With optional end, stop comparing S at that position. prefix can also be a tuple of strings to try.
def dialog.controller.TypeHandler.strip | ( | chars | ) |
Return a copy of the string S with leading and trailing whitespace removed. If chars is given and not None, remove characters in chars instead. If chars is unicode, S will be converted to unicode before stripping
def dialog.controller.TypeHandler.swapcase | ( | args | ) |
Return a copy of the string S with uppercase characters converted to lowercase and vice versa.
def dialog.controller.TypeHandler.title | ( | args | ) |
Return a titlecased version of S, i.e. words start with uppercase characters, all remaining cased characters have lowercase.
def dialog.controller.TypeHandler.translate | ( | 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.
def dialog.controller.TypeHandler.upper | ( | args | ) |
Return a copy of the string S converted to uppercase.
def dialog.controller.TypeHandler.zfill | ( | width | ) |
Pad a numeric string S with zeros on the left, to fill a field of the specified width. The string S is never truncated.