Re: disk based dictionaries

2004-12-03 Thread Shivram U
Hi Steve, Larry, Thanks for the Help! I am using the pickle module now as i just need to store and retrieve dictionaries. Best Regards, Shivram U On Thu, 2004-12-02 at 23:59, Steve wrote: > Hi Shivam, > > If storing and retrieving is all that you are interested in, you > should consider 'pi

Re: disk based dictionaries

2004-12-03 Thread Chris Cioffi
I'd like to second this suggestion. While there are a few things you need to be aware of when writing your code (mostly taken care of in the latest release) it's a mostly trivial code change. (For me it was replacing a few dictionaries with PersistentMap objects and changing the base class of a f

Re: disk based dictionaries

2004-12-02 Thread Larry Bates
You may also want to take a look at ZODB (Zope database). It handles the pickling, storage and retrieval of all Python objects (including dictionaries) very well. And yes you can use ZODB without using Zope proper. http://www.zope.org/Products/StandaloneZODB http://zope.org/Members/adytumsolutions

Re: disk based dictionaries

2004-12-02 Thread Steve
Hi Shivam, If storing and retrieving is all that you are interested in, you should consider 'pickling' your dicts, using python's pickle module. It's part of the standard library. Learn more about it here: http://docs.python.org/lib/module-pickle.html Here's an example usage: [EMAIL PROTECTE