This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fleiter
Recipients
Date 2003-09-04.23:52:49
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.
History
Date User Action Args
2007-08-23 14:16:39adminlinkissue800796 messages
2007-08-23 14:16:39admincreate