I know what you wanted to say, but you didn't give the best example. "1 + 1 == 2" will be always true in any Python code since all those symbols are either operators or literals. I believe you cannot change dynamically how the interpreter interprets operators (that is, "+" always calls __add__ and __radd__) or literals.
Comments
I know what you wanted to say, but you didn't give the best example. "1 + 1 == 2" will be always true in any Python code since all those symbols are either operators or literals. I believe you cannot change dynamically how the interpreter interprets operators (that is, "+" always calls __add__ and __radd__) or literals.