FoxDot.lib.Patterns.PlayString

exception FoxDot.lib.Patterns.PlayString.ParseError[source]

Bases: Exception

class FoxDot.lib.Patterns.PlayString.PlayString(string)[source]

Bases: object

Container for character objects

contains_nest = False
index(sub, start=0)[source]

Returns the index of the closing bracket

next_char_index(char, start=0)[source]
FoxDot.lib.Patterns.PlayString.re_nests = '\\((.*?)\\)'

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to ‘utf-8’. errors defaults to ‘strict’.

FoxDot.lib.Patterns.PlayString.re_square = '\\[.*?\\]'

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to ‘utf-8’. errors defaults to ‘strict’.

FoxDot.lib.Patterns.PlayString.re_curly = '\\{.*?\\}'

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to ‘utf-8’. errors defaults to ‘strict’.

FoxDot.lib.Patterns.PlayString.re_chars = '[^[\\](){}]'

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to ‘utf-8’. errors defaults to ‘strict’.

FoxDot.lib.Patterns.PlayString.br_pairs = {'(': ')', ')': '(', '[': ']', ']': '[', '{': '}', '}': '{'}

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s

(key, value) pairs

dict(iterable) -> new dictionary initialized as if via:

d = {} for k, v in iterable:

d[k] = v

dict(**kwargs) -> new dictionary initialized with the name=value pairs

in the keyword argument list. For example: dict(one=1, two=2)