Author: tross
Date: Mon Nov 24 06:36:52 2008
New Revision: 720204
URL: http://svn.apache.org/viewvc?rev=720204&view=rev
Log:
Added __hash__ and __eq__ methods to ObjectId.
Modified:
incubator/qpid/trunk/qpid/python/qmf/console.py
Modified: incubator/qpid/trunk/qpid/python/qmf/console.py
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/python/qmf/console.py?rev=720204&r1=720203&r2=720204&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/python/qmf/console.py (original)
+++ incubator/qpid/trunk/qpid/python/qmf/console.py Mon Nov 24 06:36:52 2008
@@ -940,6 +940,12 @@
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):