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