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"