fix bug with __neg__
This commit is contained in:
parent
2b81326132
commit
9c079fa100
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue