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()
def __init__(self, start=0): ''' start is the initial indent (in spaces). ''' super(BlockMonitor, self).__init__() self.__stack = [start] self.__state = State.singleton()
def __init__(self, matcher): super(_RMemo, self).__init__() self._arg(matcher=matcher) self.__table = {} self.__state = State.singleton()
def __init__(self, matcher): super(_LMemo, self).__init__() self._arg(matcher=matcher) self.__caches = {} self.__state = State.singleton()
def __init__(self, matcher): super(_RMemo, self).__init__() self._arg(matcher=matcher) self.__table = {} # s_key(stream) -> [lock, table, generator] self.__state = State.singleton()