New issue
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
S(0)==False->True (should be False) #26519
Comments
If I am interpreting correctly, the code you cite should return False, so this must not be the code that is generating the True. |
|
This probably could be changed. I don't know if it would break anything. The reason it's like that is because the Python bool False really is equal to 0. |
I understand what you mean but my point is there seem to be a conflict in the code itself. Because if you call isintance(False, Number) will return False. |
I see. The problem is that Integer also defines |
sympy/sympy/core/numbers.py
Line 1591 in af0c855
The text was updated successfully, but these errors were encountered: