We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using simple_eval method expression like True\nFalse is evaluated to True, False\nTrue to False.
simple_eval
True\nFalse
False\nTrue
It looks like only the first statement is taken from AST for evaluation.
simpleeval/simpleeval.py
Line 328 in b47858d
I suggest that an exception must be raised in case where there are multiple statements to be sure that passed expression is evaluated correctly.
The text was updated successfully, but these errors were encountered:
That's a good idea!
Sorry, something went wrong.
danthedeckie
Successfully merging a pull request may close this issue.
Using
simple_eval
method expression likeTrue\nFalse
is evaluated to True,False\nTrue
to False.It looks like only the first statement is taken from AST for evaluation.
simpleeval/simpleeval.py
Line 328 in b47858d
I suggest that an exception must be raised in case where there are multiple statements to be sure that passed expression is evaluated correctly.
The text was updated successfully, but these errors were encountered: