Message18063
Logged In: YES
user_id=502578
Terry J. Reedy commented in comp.lang.python:
-------------------------------------------------------------------------
Ref Manual 5.3.3 Slicings says nothing about hashability.
If not
hashable, in spite of being mutable, "Slices are not
hashable" could
be added at end.
Ref Manual 3.3.1 Basic customization, __hash__( self) entry says
"Called for the key object for dictionary operations, and by the
built-in function hash() "
This implies to me that if there is a __hash__() method,
then hash()
will call it. If not true, then a 'maybe' could be added.
Lif Maual 2.1 Built-in Functions, hash( object) says only
"Return the hash value of the object (if it has one)."
If having __hash__() does not mean 'has one', then what does.
|
|
Date |
User |
Action |
Args |
2007-08-23 14:16:39 | admin | link | issue800796 messages |
2007-08-23 14:16:39 | admin | create | |
|