Skip to content

Instantly share code, notes, and snippets.

@prologic
Created June 9, 2015 09:43
Show Gist options
  • Save prologic/63b034263ebe60c3370d to your computer and use it in GitHub Desktop.
Save prologic/63b034263ebe60c3370d to your computer and use it in GitHub Desktop.
$ python3.4 -i foo.py
>>> a = PieceType.queen
>>> b = PieceType.queen
>>> a == b
True
>>> a is b
True
>>> x = PieceType(2)
>>> x
<PieceType.queen: 2>
>>> x == a
True
>>> x is b
True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment