Did I find the right examples for you? yes no

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)
Append-only stack w/ garbage collection.

- Append items to most recent layer until full;  then add a new layer.

- Discard "oldest" layer starting a new one.

- Invariant:  the sequence of (generation, id) increases monotonically.

- Iteration occurs in reverse order of appends, and yields
  (generation, index, object) tuples.

src/z/o/ZODB-Documentation-HEAD/code/conflict/birdie/birdie/models.py   ZODB-Documentation(Download)
from persistent import Persistent
from persistent.mapping import PersistentMapping
from persistent.list import PersistentList
from appendonly import AppendStack
    def __init__(self):
        self._stack = AppendStack()
    def __iter__(self):
        for gen, index, mapping in self._stack:

src/a/p/appendonly-1.0.1/appendonly/tests.py   appendonly(Download)
    def _getTargetClass(self):
        from appendonly import AppendStack
        return AppendStack
    def _makeOne(self, *args, **kw):