Skip to content

Instantly share code, notes, and snippets.

@Tordek
Created January 3, 2015 21:55
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 Tordek/e6ed1fd3d8c42edcc082 to your computer and use it in GitHub Desktop.
Save Tordek/e6ed1fd3d8c42edcc082 to your computer and use it in GitHub Desktop.
$ 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