[egenix-users] BeeDict setting keys/comparison to shelve

John.N.1 at bwc.state.oh.us John.N.1 at bwc.state.oh.us
Mon Apr 15 13:19:20 CEST 2002


Does anyone have comments on using Bdict instead of a standard shelf or
bsddb ver3?

Also, on Win2k, for me to change a dictionary element w/Bdict, I need to
first delete the key and then set it's value.
Should that be the case?

When I run:

    d = mx.BeeBase.BeeDict.BeeDict('c:/tmp/test-BeeDict2')
    print 'original',d['Marc9']
    d['Marc9']='betty1'
    d.commit()
    print 'dict change\t',d.changed(),d['Marc9']

    del(d['Marc9'])
    d.commit()
    d['Marc9']='betty2'
    print 'del dict change\t',d.changed(),d['Marc9']
    d.close()


produces:

original Sveta
dict change     0 Sveta
del dict change 1 betty2


Thanks for any help,

john




More information about the egenix-users mailing list