And now for something completely different...
The dbm problem I wrote about was related to my inclusion of the dbhash
module which conflicts with the native dbm. Having solved that puzzle I
am now scratching my head over the following:
Why doesn't the values or items methods work on dbm map objects???
import dbm
#
def main():
file = 'Notebase'
notebase = dbm.open(file,'r',0664)
keylist = notebase.keys()
vallist = notebase.values()
print keylist
print 'VALUES='
print vallist
main()
Traceback (innermost last):
File "db.py", line 15
main()
File "db.py", line 10
vallist = notebase.values()
AttributeError: values