Why are tuples immutable?

Thomas Heller theller at python.net
Thu Dec 16 07:19:24 EST 2004


"Fredrik Lundh" <fredrik at pythonware.com> writes:

> Antoon Pardon wrote:
>
>> That depends on whether the programmes wants value equality
>> or identity equality.
>
> how does the dictionary know if you want key value equality or key
> identity equality?

Smalltalk has separate Dictionary and IdentityDictionary classes.

Thomas



More information about the Python-list mailing list