From 6a8153ae3b8209e96a80dc7fff87864d4d84a744 Mon Sep 17 00:00:00 2001 From: fijal Date: Thu, 25 Jan 2007 18:02:32 +0100 Subject: [PATCH] [svn r37346] Add __ne__ --HG-- branch : trunk --- py/code/code.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/py/code/code.py b/py/code/code.py index 37f0dbe14..a01984383 100644 --- a/py/code/code.py +++ b/py/code/code.py @@ -13,7 +13,10 @@ class Code(object): self.name = rawcode.co_name def __eq__(self, other): - return self.raw == other.raw + return self.raw == other.raw + + def __ne__(self): + return not self == other def new(self, rec=False, **kwargs): """ return new code object with modified attributes.