converting string to dictionary

ketulp_baroda at yahoo.com ketulp_baroda at yahoo.com
Fri Mar 19 21:15:11 CET 2004


Hi,
 suppose i have dictinary as below :

  a={'jack':'monica','mark':'alice','jeff':'jeni'}

  i am storing this dictionary into the database where it is converted
to string of the form :
    '{'jack':'monica','mark':'alice','jeff':'jeni'}'

now i want to convert this string into dictionary.  

how can i do this ?

is there any way to do this ?

thanks,



More information about the Python-list mailing list