Exemplo n.º 1
0
 def __init__(self, matcher, curtail):
     super(_LMemo, self).__init__()
     self._arg(matcher=matcher)
     self._karg(curtail=curtail)
     self.__depth = {}  # s_key(stream) -> [depth]
     self.__table = {}  # (s_key(stream), depth) -> [table, generator]
     self.__state = State.singleton()
Exemplo n.º 2
0
 def __init__(self, matcher, curtail):
     super(_LMemo, self).__init__()
     self._arg(matcher=matcher)
     self._karg(curtail=curtail)
     self.__depth = {} # s_key(stream) -> [depth] 
     self.__table = {} # (s_key(stream), depth) -> [table, generator] 
     self.__state = State.singleton()
Exemplo n.º 3
0
 def __init__(self, start=0):
     '''
     start is the initial indent (in spaces).
     '''
     super(BlockMonitor, self).__init__()
     self.__stack = [start]
     self.__state = State.singleton()
Exemplo n.º 4
0
 def __init__(self, start=0):
     '''
     start is the initial indent (in spaces).
     '''
     super(BlockMonitor, self).__init__()
     self.__stack = [start]
     self.__state = State.singleton()
Exemplo n.º 5
0
 def __init__(self, matcher):
     super(_RMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__table = {}
     self.__state = State.singleton()
Exemplo n.º 6
0
 def __init__(self, matcher):
     super(_LMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__caches = {}
     self.__state = State.singleton()
Exemplo n.º 7
0
 def __init__(self, matcher):
     super(_RMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__table = {} # s_key(stream) -> [lock, table, generator] 
     self.__state = State.singleton()
Exemplo n.º 8
0
 def __init__(self, matcher):
     super(_RMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__table = {}  # s_key(stream) -> [lock, table, generator]
     self.__state = State.singleton()
Exemplo n.º 9
0
 def __init__(self, matcher):
     super(_RMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__table = {}
     self.__state = State.singleton()
Exemplo n.º 10
0
 def __init__(self, matcher):
     super(_LMemo, self).__init__()
     self._arg(matcher=matcher)
     self.__caches = {}
     self.__state = State.singleton()