Skip to content

Instantly share code, notes, and snippets.

@quietin
Created October 14, 2015 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quietin/6ce45f460c31f6212f8d to your computer and use it in GitHub Desktop.
Save quietin/6ce45f460c31f6212f8d to your computer and use it in GitHub Desktop.
None is None
# True
a = 1; b = 1
a is b
# True
a = "myX"; b = "myX";
a is b
# True
a = 1.8; b = 1.8
a is b
# False
a = 3L; b = 3L
a is b
# False
a = 1+2j; b = 1+2j
a is b
# False
a = (1, 2); b = (1, 2)
a is b
# False
a = [1, 2]; b = [1, 2]
a is b
# False
a = {"male":1}; b = {"male": 1}
a is b
# False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment