Supply condition in function call

Joel Goldstick joel.goldstick at gmail.com
Wed Mar 25 14:42:24 EDT 2015


On Wed, Mar 25, 2015 at 2:22 PM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> On Wed, Mar 25, 2015 at 12:17 PM, Joel Goldstick
> <joel.goldstick at gmail.com> wrote:
>> Oh, now I see.  Do you know about this:
>> https://docs.python.org/2/library/ast.html#ast.literal_eval
>
> As the name suggests, that only evals literals. It won't work for
> complex expressions like "i + j > 4"
> --
Thanks Ian, sorry for the misdirection ...
> https://mail.python.org/mailman/listinfo/python-list



-- 
Joel Goldstick
http://joelgoldstick.com



More information about the Python-list mailing list