Normal dict behavior?

Chris Angelico rosuav at gmail.com
Wed May 7 11:38:29 EDT 2014


On Thu, May 8, 2014 at 1:34 AM, Christian Heimes <christian at python.org> wrote:
> hash(0) == hash(0.0) and 0 == 0.0

In theory, the former should be implied by the latter. Any deviation
from that is a bug in __hash__ for the two objects.

ChrisA



More information about the Python-list mailing list