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

M.-A. Lemburg mal at lemburg.com
Mon Jun 24 18:10:56 CEST 2002


John.N.1 at bwc.state.oh.us wrote:
> 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

Have you tried this with the lastest beta of egenix-mx-base ?

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/
Meet us at EuroPython 2002:                 http://www.europython.org/




More information about the egenix-users mailing list