Dictionary to string and back to dictionary??

Christian Holmboe dva95che at cs.umu.se
Fri Aug 23 15:15:59 EDT 2002


Use the picke module:

http://www.python.org/doc/current/lib/module-pickle.html


On Fri, 2002-08-23 at 20:31, Derek Basch wrote:
> Hello all,
> I have a set of records stored as dictionary objects.
> The records must be converted to strings so they can
> be stored in a bsddb (ie...str(record1)). My problem
> is, how do I convert the strings back to a
> dictionaries after removing the record from the bsddb?
> Any suggestions?
> Thanks,
> Derek Basch
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Finance - Get real-time stock quotes
> http://finance.yahoo.com
> 
> -- 
> http://mail.python.org/mailman/listinfo/python-list







More information about the Python-list mailing list