From e126ba6056a1ff4446a12329cd2b3d81720370ed Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Mon, 24 Nov 2008 14:36:52 +0000 Subject: 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 --- python/qmf/console.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/qmf') 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): -- cgit v1.2.1