[Python-ideas] An identity dict

Benjamin Peterson benjamin at python.org
Sun May 30 16:18:00 CEST 2010


Nick Coghlan <ncoghlan at ...> writes:
> How would dict equality be defined? In terms of values, or in terms of 
> value identity?

Completely identity. __eq__ and __hash__ should never be called.







More information about the Python-ideas mailing list