You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2008/11/24 15:36:54 UTC

svn commit: r720204 - /incubator/qpid/trunk/qpid/python/qmf/console.py

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):