You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to create and expression using operators like and and or, no errors are reported but the resultant operations do not operate as expected. It appears the first expression is evaluated and others are ignored.
To Reproduce
This minimal code will reproduce the behavior:
Expected behavior
If these types of operations are not supported, an error should be generated. Even better would be to fully support these operations since it will mean a great deal for adoption across the python community.
The text was updated successfully, but these errors were encountered:
using `or`: Expr(a = Int64(1))using `and`: Expr(a = Int64(3))using `|`: Expr(a = Int64(1) OR a = Int64(3))using `&`: Expr(a = Int64(1) AND a = Int64(3))
Thank you! I tested and your answer works as expected. I'll put up a PR this morning to expand the documentation so others don't come with the same question. I appreciate the rapid response.
Describe the bug
When attempting to create and expression using operators like
and
andor
, no errors are reported but the resultant operations do not operate as expected. It appears the first expression is evaluated and others are ignored.To Reproduce
This minimal code will reproduce the behavior:
This generates the following results:
Expected behavior
If these types of operations are not supported, an error should be generated. Even better would be to fully support these operations since it will mean a great deal for adoption across the python community.
The text was updated successfully, but these errors were encountered: