Need to store dictionary in file

S.Selvam Siva s.selvamsiva at
Mon Feb 23 15:38:56 EST 2009

Hi all,

I have a dictionary in which each key is associated with a list as value.

eg: *dic={'a':['aa','ant','all']}*

The dictionary contains *1.5 lakh keys*.
Now i want to store it to a file,and need to be loaded to python program
during execution.
I expect your ideas/suggestions.

Note:I think cPickle,bsddb can be used for this purpose,but i want to know
the best solution which runs *faster*.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list