Re: Does the "is" operator only matter for mutable object?
Fred Drake <[email protected]> Sun, 6 Mar 2011 23:09:33 -0500
| Newsgroups | gmane.comp.python.documentation |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Mar 5, 2011 at 7:45 PM, Laura Creighton <[email protected]> wrote: > So maybe what we need to do is to explictly state that some implementations > have chosen to represent objects which are equivalent as the exact same > object, but that you should not rely on this behaviour because it is > an implementation detail? That still seems too complicated. Pointing out that equality does not imply identity, regardless of type, should be sufficient for the purpose of describing "is". -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> "A storm broke loose in my mind." --Albert Einstein _______________________________________________ Doc-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/doc-sig