Created
January 3, 2015 21:55
-
-
Save Tordek/e6ed1fd3d8c42edcc082 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
$ node | |
> a = [] | |
[] | |
> b = [] | |
[] | |
> a == b | |
false | |
> a === b | |
false | |
> a == a | |
true | |
> a === a | |
true | |
> % | |
$ python | |
Python 2.7.8 (default, Oct 18 2014, 12:50:18) | |
[GCC 4.9.1] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> a = [] | |
>>> b = [] | |
>>> a == b | |
True | |
>>> a is b | |
False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment