fix bug with __neg__

This commit is contained in:
David Rose 2004-12-29 22:11:40 +00:00
parent 2b81326132
commit 9c079fa100

View File

@ -30,6 +30,9 @@
def __cmp__(self, other):
return self.getValue().__cmp__(other)
def __neg__(self):
return -self.getValue()
def __coerce__(self, other):
return (self.getValue(), other)