Commit 2fa7756d authored by Tim Peters's avatar Tim Peters

Repaired some ReST markup.

parent ff5ff8fc
......@@ -43,21 +43,21 @@ BTrees
FileStorage
-----------
- Add a record iteration protocol to FileStorage. You can use the
- Addded a record iteration protocol to FileStorage. You can use the
record iterator to iterate over all current revisions of data
pickles in the storage.
In order to support calling via ZEO, we don't implement this as an
1actual iterator. An example of using the record iterator protocol
is as follows:
storage = FileStorage('anexisting.fs')
next_oid = None
while 1:
oid, tid, data, next_oid = storage.record_iternext(next_oid)
# do something with oid, tid and data
if next_oid is None:
break
actual iterator. An example of using the record iterator protocol
is as follows::
storage = FileStorage('anexisting.fs')
next_oid = None
while True:
oid, tid, data, next_oid = storage.record_iternext(next_oid)
# do something with oid, tid and data
if next_oid is None:
break
The behavior of the iteration protocol is now to iterate over all
current records in the database in ascending oid order, although
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment