Esempio 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
Esempio n. 2
0
 def __init__(self, traces):
     Sequence.__init__(self)
     self._traces = traces
Esempio n. 3
0
 def __init__(self, frames):
     Sequence.__init__(self)
     self._frames = frames
Esempio n. 4
0
 def __init__(self, traces):
     Sequence.__init__(self)
     # traces is a tuple of trace tuples: see Trace constructor
     self._traces = traces
Esempio 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
Esempio n. 6
0
 def __init__(self, attribs=None):
     Sequence.__init__(self)
     self.descriptors = list(attribs or [])
Esempio n. 7
0
 def __init__(self, traces):
     Sequence.__init__(self)
     self._traces = traces
Esempio n. 8
0
 def __init__(self, frames):
     Sequence.__init__(self)
     self._frames = frames