Outputs:
Seems quite peculiar, the representations of the objects are the same, but they if statement says they're not equal.Let's check if the objects are equal.
Outputs:
That's strange, the if condition checks if they're aren't equal, but they are?
Let's try one more thing.
Outputs:
That statement should logically always be False (A and (not A)), but apparently it is True???
What happens is that the eq method of Binary is not called, thus the comparison evaluates to wrong values.
Seems quite peculiar, the representations of the objects are the same, but they if statement says they're not equal.Let's check if the objects are equal.
Outputs:
That's strange, the if condition checks if they're aren't equal, but they are?
Let's try one more thing.
Outputs:
That statement should logically always be False (A and (not A)), but apparently it is True???
What happens is that the eq method of Binary is not called, thus the comparison evaluates to wrong values.
Please fix this bug.