From a8ec30196f46dba6f13e82e35b2843853fcfd6f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Allard?= Date: Mon, 4 Jun 2012 16:52:06 +0200 Subject: [PATCH] Add the equals method on python.lang.Object --- python/lang.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/lang.py b/python/lang.py index aea2f98..a5df099 100644 --- a/python/lang.py +++ b/python/lang.py @@ -1,5 +1,6 @@ class Object(object): - pass + def equals(self, obj): + return self is obj class IndexOutOfBoundsException(Exception): pass