Tor Erik Sønvisen schrieb: > Hi, > > I've tried locating some code that can recreate an object from it's > string representation... > The object in question is really a dictionary containing other > dictionaries, lists, unicode strings, floats, ints, None, and > booleans. > > I don't want to use eval, since I can't trust the source sending the > object.... I'm sure someone must have had the same need and created > code for it... Maybe Pypy has what I need??? Haven't looked though...
Try using simplejson. Diez -- http://mail.python.org/mailman/listinfo/python-list