On May 8, 2011 2:00pm, Dan Stromberg <drsalists@gmail.com> wrote:<br />> <br />> On Sun, May 8, 2011 at 8:20 AM, Greg Lindstrom gslindstrom@gmail.com> wrote:<br />> <br />> Is it possible to create a dictionary from a string value?  Something along these lines (but that works):<br />> <br />> >>> mystring = "{'name':'greg','hatsize':'7 5/8'}"<br />> >>> mystring<br />> <br />> <br />> "{'name':'greg','hatsize':'7 5/8'}"<br />> >>> dict(mystring)<br />> Traceback (most recent call last):<br />>   File "", line 1, in <br />> ValueError: dictionary update sequence element #0 has length 1; 2 is required<br />> <br /><br />Yes.  It works like a champ.  Thanks!<br />--greg