mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-23 22:03:18 +00:00
Reintroduce __ne__
This commit is contained in:
parent
9e5ec95e02
commit
5e1fe818e3
1 changed files with 4 additions and 0 deletions
|
|
@ -80,6 +80,10 @@ class Timestamp(object):
|
|||
)
|
||||
return False
|
||||
|
||||
def __ne__(self, other):
|
||||
"""not-equals method (see :func:`__eq__()`)"""
|
||||
return not self.__eq__(other)
|
||||
|
||||
def __hash__(self):
|
||||
return hash((self.seconds, self.nanoseconds))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue