Is there a simple way to parse this string ?

josepharmbruster at gmail.com josepharmbruster at gmail.com
Thu Dec 20 23:27:23 EST 2007


Stef,

For clarification, there is nothing hazardous about using eval on the
string that you presented.

t = eval('(0, 0, 0, 255), (192, 192, 192, 255), True, 8')

Whether or not this is the "simplest" solution, remains a question.



More information about the Python-list mailing list