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


--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to