Convert String to Dictionary question

MDK mdk at mdk.com
Thu Feb 14 16:32:04 EST 2002


"John J. Lee" <jjl at pobox.com> wrote in message
news:Pine.SOL.4.30.0202142127220.24038-100000 at mimosa.csv.warwick.ac.uk...
> 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
>

Pickling seems too slow.





More information about the Python-list mailing list