Tim Daneliuk tundra at tundraware.com
Mon Jul 19 05:40:07 CEST 2004

Chris S. wrote:

> Perhaps this is obvious to some, but why are dictionary keys constrained 
> to hashable objects? why not use the object's id for the hash value. 
> Wouldn't this allow typically non-hashable objects to be used as keys? 
> I've done this in several instances and I've never encountered a problem.

I am interested in the answer to this as well, but it seems to me that
the objid _is_ itself a hashable item, hence it works... right?

Tim Daneliuk     tundra at tundraware.com
PGP Key:         http://www.tundraware.com/PGP/

More information about the Python-list mailing list