summaryrefslogtreecommitdiff
path: root/py/python/Ice.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2004-09-14 16:55:27 +0000
committerMark Spruiell <mes@zeroc.com>2004-09-14 16:55:27 +0000
commit883f4e63bc640725ff1bf5f43dc6d0f0f8a610c2 (patch)
treed1ac51bc9da16f559908eb4ed0879f6da6398710 /py/python/Ice.py
parentnew scheme for type definitions (diff)
downloadice-883f4e63bc640725ff1bf5f43dc6d0f0f8a610c2.tar.bz2
ice-883f4e63bc640725ff1bf5f43dc6d0f0f8a610c2.tar.xz
ice-883f4e63bc640725ff1bf5f43dc6d0f0f8a610c2.zip
adding Slice checksums
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__