ZODB icon indicating copy to clipboard operation
ZODB copied to clipboard

Avoid shadowing builtin in `record_iternext` example

Open davisagli opened this issue 6 years ago • 0 comments

The docstring for IStorageCurrentRecordIteration.record_iternext gives this example of usage:

        >>> next = None
        >>> while 1:
        ...     oid, tid, data, next = storage.record_iternext(next)
        ...     # do things with oid, tid, and data
        ...     if next is None:
        ...         break

This should probably use a different variable name since next is a builtin.

davisagli avatar Nov 05 '18 14:11 davisagli