converting string to dictionary

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ketulp_baroda@yahoo.com

    converting string to dictionary

    Hi,
    suppose i have dictinary as below :

    a={'jack':'moni ca','mark':'ali ce','jeff':'jen i'}

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

    now i want to convert this string into dictionary.

    how can i do this ?

    is there any way to do this ?

    thanks,
  • News M Claveau /Hamster-P

    #2
    Re: converting string to dictionary

    one (good or bad ? ) idea : use pickle...


    Comment

    Working...