How to get back a list object from its string representation?

Harish Vishwanath harish.shastry at gmail.com
Tue Dec 30 23:46:33 EST 2008


Hello,
Consider :

>>> li = [1,2,3]
>>> repr(li)
'[1, 2, 3]'

Is there a standard way to get back li, from repr(li) ?

Regards,
Harish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081231/ca9f8c7c/attachment-0001.html>


More information about the Python-list mailing list