On 12/3/2010 7:46 PM, James Y Knight wrote:
Sure they are. This is what Java provides you, for example. If you have fixed, but potentially non-unique ids (in Java you get this using "identityHashCode()"), you can still make an identity
I do not see the point of calling a (non-unique) hash value the identity
hashtable. You simply need to *also* check using "is" that the two
In Python, that unique isness is the identify. (a is b) == (id(a) == id(b)) by definition.
objects really are the same one after finding the hash bin using id.
by using the hash value, which is how Python dict operate. -- Terry Jan Reedy _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com