What other languages use the same data model as Python?

John Nagle nagle at animats.com
Thu May 5 11:41:27 EDT 2011


On 5/5/2011 3:06 AM, Gregory Ewing wrote:
> John Nagle wrote:
>
>> A reasonable compromise would be that "is" is treated as "==" on
>> immutable objects.
>
> That wouldn't work for tuples, which can contain references
> to other objects that are not immutable.

     Such tuples are still identical, even if they
contain identical references to immutable objects.

				John Nagle





More information about the Python-list mailing list