[ZODB-Dev] Storage iterator() method

Barry A. Warsaw barry@zope.com
Thu, 25 Jul 2002 12:10:21 -0400


>>>>> "TD" == Toby Dickenson <tdickenson@geminidataloggers.com> writes:

    >> Other potential gotchas are transaction destructive operations
    >> such as non-transactional undo

    TD> does anyone use that?

I don't think FileStorage does anymore, and Berkeley/Full never did,
so probably not any storage you care about <wink>.

    >> For
    >> Berkeley Full storage, if the transaction that the iterator
    >> currently pointed to got packed away, you'll probably get a
    >> KeyError which the internal iterator object transforms into an
    >> IndexError, so iteration would stop (early) at that point.

    TD> Eeek.

If it was important to support, we could probably do so with a simple
change from c.set() to c.set_range() in ._nexttxn().  Feel free to
experiment. :)

-Barry