For basic builtin objects, repr(ob) generally produces a string that when 
eval()ed will recreate the object.  IE
eval(repr(ob) == ob # sometimes
For writing and reading class instances, pickle is the way to go.

Terry J. Reedy



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to