summaryrefslogtreecommitdiff
path: root/py/python/Ice.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r--py/python/Ice.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py
index 65430131bbb..33f6e94688b 100644
--- a/py/python/Ice.py
+++ b/py/python/Ice.py
@@ -98,6 +98,11 @@ IcePy._t_Object = IcePy.declareClass('::Ice::Object')
IcePy._t_ObjectPrx = IcePy.declareProxy('::Ice::Object')
#
+# Slice checksum dictionary.
+#
+sliceChecksums = {}
+
+#
# Import Ice types.
#
import BuiltinSequences_ice
@@ -134,6 +139,9 @@ Identity.__str__ = Identity__str__
del Identity__str__
def Identity__hash__(self):
+ #
+ # Return 32-bit integer.
+ #
return (5 * hash(self.category) + hash(self.name)) % 0x7fffffff
Identity.__hash__ = Identity__hash__
del Identity__hash__