diff options
author | Ted Ross <tross@apache.org> | 2008-11-24 14:36:52 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2008-11-24 14:36:52 +0000 |
commit | e126ba6056a1ff4446a12329cd2b3d81720370ed (patch) | |
tree | bdb4f45182a6b7fbb47ee1a617863208de2c66e2 /python/qmf/console.py | |
parent | d0a73775a14466283f37b0dce90a178d86b88ad8 (diff) | |
download | qpid-python-e126ba6056a1ff4446a12329cd2b3d81720370ed.tar.gz |
Added __hash__ and __eq__ methods to ObjectId.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@720204 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qmf/console.py')
-rw-r--r-- | python/qmf/console.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/python/qmf/console.py b/python/qmf/console.py index cdc3ae3406..17d179b4d6 100644 --- a/python/qmf/console.py +++ b/python/qmf/console.py @@ -940,6 +940,12 @@ class ObjectId: codec.write_uint64(self.first) codec.write_uint64(self.second) + def __hash__(self): + return (self.first, self.second).__hash__() + + def __eq__(self, other): + return (self.first, self.second).__eq__(other) + class Object(object): """ """ def __init__(self, session, broker, schema, codec, prop, stat): |