[Tutor] Persistent Dictionary Variable

Jacob Abraham jakieabraham@yahoo.com
Fri Jun 27 02:25:03 2003


Dear Tutors,

   I was wondering if it were possible to create a
dictionary variable look alike string into dictionary
variable using Python. 
   I've used Zope's Object Database to do this, but is
it possible to have a persistent dictionary variable
in a text file or an SQL Database.

>>>a={'key1':[1,2,3],'key2':'value'}
>>>b=str(a)
>>>b
"{'key1':[1,2,3],'key2':'value'}"
>>># b is right now a string how do I convert it back
...into a dictionary variable

(p.s if this is a basic question please forgive my
ignorance)
Thanx,
Jacob Abraham

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com