Re: disk based dictionaries

2004-12-03 Thread Shivram U
strings > > > > Also how do i use disk based hashes for multidimensional hashes such as > > below > > > > #!/usr/bin/python > > > > dict={} > > dict['key1'] = {} > > dict[('key1')][('key2')] = 'value' >

Re: disk based dictionaries

2004-12-03 Thread Chris Cioffi
ntation about it. Is the module used widely ? > > > > Below is how i am using the module > > > > bdict = BeeDict('/tmp/beedict') > > > > bdict[1] = 1 > > print bdict.keys() > > > > bdict.commit() > > bdict.close() > > > > bdi

Re: disk based dictionaries

2004-12-02 Thread Larry Bates
ntation about it. Is the module used widely ? Below is how i am using the module bdict = BeeDict('/tmp/beedict') bdict[1] = 1 print bdict.keys() bdict.commit() bdict.close() bdict1 = BeeDict('/tmp/beedict') print bdict1.keys() print bdict1.values() Would it be that using disk

Re: disk based dictionaries

2004-12-02 Thread Steve
n/python > > dict={} > dict['key1'] = {} > dict[('key1')][('key2')] = 'value' > > key1=dict['key1'] > print key1['key2'] > > I have read of mxBeeDict but was unable to get it work properly. I am > not sure if it supp

disk based dictionaries

2004-12-02 Thread Shivram U
x27;/tmp/beedict') bdict[1] = 1 print bdict.keys() bdict.commit() bdict.close() bdict1 = BeeDict('/tmp/beedict') print bdict1.keys() print bdict1.values() Would it be that using disk based dictionaries once opened are as fast as in memory dictionaries ? Thanks in advance, Best R