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