[EMAIL PROTECTED] wrote:

>   I have a string '((1,2), (3,4))' and I want to convert this into a
> python tuple of numbers. But I do not want to use eval() because I do
> not want to execute any code in that string and limit it to list of
> numbers.

here's yet another approach:

http://online.effbot.org/2005_11_01_archive.htm#simple-parser-1

also see:

http://online.effbot.org/2005_11_01_archive.htm#simple-parser-3

</F>

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

Reply via email to