Is there a simple way to parse this string ?
Paul McGuire
ptmcg at austin.rr.com
Wed Dec 19 21:29:29 EST 2007
On Dec 19, 4:23 pm, John Machin <sjmac... at lexicon.net> wrote:
> On Dec 20, 9:10 am, Larry Bates <larry.ba... at websafe.com> wrote:
>
> In particular Paul Maguire recently pointed to a safe evaluator that
> was restricted (IIRC) to something like lists/dicts/etc of ints/floats/
> string/etc constants -- looks like just what you need.
>
The pyparsing parser can be viewed at
http://pyparsing.wikispaces.com/space/showimage/parsePythonValue.py.
-- Paul
More information about the Python-list
mailing list