Skip to content

Commit

Permalink
Add the equals method on python.lang.Object
Browse files Browse the repository at this point in the history
  • Loading branch information
benallard committed Jun 4, 2012
1 parent 2eb6165 commit a8ec301
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/lang.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class Object(object):
pass
def equals(self, obj):
return self is obj

class IndexOutOfBoundsException(Exception):
pass
Expand Down

0 comments on commit a8ec301

Please sign in to comment.