One solution is https://gist.github.com/1027445. Note that you have a stray , in your last POINT.
I recommend however using some kind of parser framework (PLY?). -- http://mail.python.org/mailman/listinfo/python-list
One solution is https://gist.github.com/1027445. Note that you have a stray , in your last POINT.
I recommend however using some kind of parser framework (PLY?). -- http://mail.python.org/mailman/listinfo/python-list