diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-10-27 20:30:20 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-10-27 20:30:20 +0000 |
commit | d8b1cdc7a8cb616fc4986798c26c81bf192671be (patch) | |
tree | 3b0b503dc950e61854fd4ecabe9483735c63b419 /py/python/Ice.py | |
parent | adding hash support for Slice structs (diff) | |
download | ice-d8b1cdc7a8cb616fc4986798c26c81bf192671be.tar.bz2 ice-d8b1cdc7a8cb616fc4986798c26c81bf192671be.tar.xz ice-d8b1cdc7a8cb616fc4986798c26c81bf192671be.zip |
generating hash support for Slice structs
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r-- | py/python/Ice.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py index 88837d8c0bc..fd1d0f7fc5c 100644 --- a/py/python/Ice.py +++ b/py/python/Ice.py @@ -603,14 +603,6 @@ def Identity__str__(self): 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__ - def Identity__lt__(self, other): if self.category < other.category: return True @@ -625,11 +617,6 @@ def Identity__le__(self, other): Identity.__le__ = Identity__le__ del Identity__le__ -def Identity__eq__(self, other): - return self.category == other.category and self.name == other.name -Identity.__eq__ = Identity__eq__ -del Identity__eq__ - def Identity__ne__(self, other): return not self.__eq__(other) Identity.__ne__ = Identity__ne__ |