Why are tuples immutable?

Jarek Zgoda jzgoda at gazeta.usun.pl
Thu Dec 16 15:46:41 EST 2004


Fredrik Lundh 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.

Don't be sorry, reading your posts was a real pleasure.

No, really.

-- 
Jarek Zgoda
http://jpa.berlios.de/ | http://www.zgodowie.org/



More information about the Python-list mailing list