The database objects returned by open() provide the methods common to all the DBM-style databases. The following methods are available in addition to the standard methods.
db, without
having to create a list in memory that contains them all:
k = db.first()
while k != None:
print k
k = db.next(k)