Skip to content

Instantly share code, notes, and snippets.

@Tordek
Created January 3, 2015 21:55
Show Gist options
  • Select an option

  • Save Tordek/e6ed1fd3d8c42edcc082 to your computer and use it in GitHub Desktop.

Select an option

Save Tordek/e6ed1fd3d8c42edcc082 to your computer and use it in GitHub Desktop.

Revisions

  1. Tordek created this gist Jan 3, 2015.
    25 changes: 25 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    $ 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