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
When a modulo operator is combined with a multiplication redbaron does not interpret the code in the same way as python.
E.g:
a % 2 * 4
In python this is equivalent to:
(a % 2) * 4
however redbaron reads it as:
a % (2 * 4)
as shown here:
> red = RedBaron("a % 2 * 4") > red.help(deep=True) 0 ----------------------------------------------------- BinaryOperatorNode() # identifiers: binary_operator, binary_operator_, binaryoperator, binaryoperatornode value='%' first -> NameNode() # identifiers: name, name_, namenode value='a' second -> BinaryOperatorNode() # identifiers: binary_operator, binary_operator_, binaryoperator, binaryoperatornode value='*' first -> IntNode() # identifiers: int, int_, intnode value='2' second -> IntNode() # identifiers: int, int_, intnode value='4'
The text was updated successfully, but these errors were encountered:
This is due to an error in baron: PyCQA/baron#162
Sorry, something went wrong.
No branches or pull requests
When a modulo operator is combined with a multiplication redbaron does not interpret the code in the same way as python.
E.g:
In python this is equivalent to:
however redbaron reads it as:
as shown here:
The text was updated successfully, but these errors were encountered: