4 ms·
You know what... let me take your red herring away from you. Forget the Time.now function. Here's a !=a as a "pure" function. In [1]: class A: ...: d
by ukj 5y ago
You know what... let me take your red herring away from you. Forget the Time.now function. Here's a !=a as a "pure" function.
In [1]: class A:
...: def __eq__(self, other):
...: return False
...:
In [2]: a = A()
In [3]: assert a != a
In [4]: assert a == a
AssertionError
Will you now permit me to speak freely about A != A without you moralising about my reasoning?
Will you now recognise my right to free speech and free thought, or must I fall in line?