Supply condition in function call

Ian Kelly ian.g.kelly at gmail.com
Wed Mar 25 14:22:23 EDT 2015


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"



More information about the Python-list mailing list