Created
December 24, 2017 02:34
-
-
Save cdfox/163161ba0b6cf134ce00ebcef34d4a16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class foo: | |
def __eq__(self, o): | |
return False | |
t = (foo(),) | |
t2 = (t[0],) | |
t == t2 # True | |
t[0] == t2[0] # False | |
t[0] is t2[0] # True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment