Converting a string to a tuple

Bruce Huzyk bhuzyk at kodak.com
Mon Apr 12 17:05:11 EDT 1999


Here is a basic problem that is causing me much stress:

I have a string a = '(1, "abc\\def", 2)' that I would like to convert to a
tuple. 

I have tried eval(), but it interprets the backslashes.




More information about the Python-list mailing list