Created
October 23, 2018 04:32
-
-
Save bdbaddog/829c2ac09a0ad86433a167caba66a207 to your computer and use it in GitHub Desktop.
id(i1) == id(i2), but i1 is i2 = False
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
(Pdb) p id(e1) | |
53016704 | |
(Pdb) p id(e2) | |
53016704 | |
(Pdb) p id(str(e1)) | |
53001080 | |
(Pdb) p id(str(e2)) | |
53001080 | |
(Pdb) str(e1) == str(e2) | |
True | |
(Pdb) str(e1) is str(e2) | |
False | |
(Pdb) type(str(e1)) | |
<type 'str'> | |
(Pdb) type(str(e2)) | |
<type 'str'> | |
(Pdb) id(str(e1)) == id(str(e2)) | |
True | |
(Pdb) str(e1) | |
'C:\\users\\bill\\appdata\\local\\temp\\testcmd.13212.uc7mvh\\some\\file' | |
(Pdb) str(e2) | |
'C:\\users\\bill\\appdata\\local\\temp\\testcmd.13212.uc7mvh\\some\\file' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment