Convert String to Dictionary question

John J. Lee jjl at pobox.com
Thu Feb 14 16:27:48 EST 2002


On Thu, 14 Feb 2002, MDK wrote:

> I saved my dictionary {'hello1': [1, 0, 0]} to a file.
>
> When I do a readline the I get back a string.
>
> How do I convert this string to a dictionary?

You probably don't want to.  Read the documentation for the pickle module.


John




More information about the Python-list mailing list