Exemplo n.º 1
0
    def __init__(self, lstFn):
        """Construct a new CachedList.  The lstFn is a function that takes
           no parameters and returns a list.  It will be called lazily - the
           list is not constructed until the first access, which could be
           quite a while after this method is called."""
        Sequence.__init__(self)

        self._invalid = True
        self._lst = []
        self._lstFn = lstFn
Exemplo n.º 2
0
 def __init__(self, traces):
     Sequence.__init__(self)
     self._traces = traces
Exemplo n.º 3
0
 def __init__(self, frames):
     Sequence.__init__(self)
     self._frames = frames
Exemplo n.º 4
0
 def __init__(self, traces):
     Sequence.__init__(self)
     # traces is a tuple of trace tuples: see Trace constructor
     self._traces = traces
Exemplo n.º 5
0
 def __init__(self, frames):
     Sequence.__init__(self)
     # frames is a tuple of frame tuples: see Frame constructor for the
     # format of a frame tuple
     self._frames = frames
Exemplo n.º 6
0
 def __init__(self, attribs=None):
     Sequence.__init__(self)
     self.descriptors = list(attribs or [])
Exemplo n.º 7
0
 def __init__(self, traces):
     Sequence.__init__(self)
     self._traces = traces
Exemplo n.º 8
0
 def __init__(self, frames):
     Sequence.__init__(self)
     self._frames = frames