[Python-Dev] For Python 3k, drop default/implicit hash, and comparison
Technical Support of Intercable Co
support at intercable.ru
Tue Nov 8 08:59:42 CET 2005
Why 'identity' objects can't define:
return Key(self, id(self))
Then they would act as usually, while value object can define
return Key(self, self.i, self.j, self.a)
(Key is an abstraction to handle subclassing)
Of course, there should be a way to handle comparison off the class
ierarhy (i think)
Today one can write:
>>> class Boo(object):
It is confused and hardly usefull, but possible.
Excuse my english.
More information about the Python-Dev