Why are tuples immutable?

Fredrik Lundh fredrik at pythonware.com
Thu Dec 16 06:45:00 EST 2004


Antoon Pardon wrote:

>> how does the dictionary know if you want key value equality or key
>> identity equality?
>
> By the __hash__ and __eq__ methods you provide on your object.

so what you're saying is that Python dictionaries should work just like
Python dictionaries work today.

sorry for wasting my time.

</F> 






More information about the Python-list mailing list