Message11732

Author jeff.allen
Recipients jaraco, jeff.allen, zyasoft
Date 2018-03-02.08:10:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519978222.84.0.467229070634.issue2581@psf.upfronthosting.co.za>
In-reply-to
Content
>>> OtherNamespace.Y == Y
True

Oops. The problem is PyClass.__cmp__.

We definitely want == (and !=) to be based on object identity, but it's not obvious what < should be. We can't have a<b and b<a both false and yet not have a==b which would be so if we still based it on name. If I've understood CPython correctly it compares by memory address.

Not sure this is a showstopper for 2.7.2 but leaving it so marked.
History
Date User Action Args
2018-03-02 08:10:22jeff.allensetmessageid: <1519978222.84.0.467229070634.issue2581@psf.upfronthosting.co.za>
2018-03-02 08:10:22jeff.allensetrecipients: + jeff.allen, jaraco, zyasoft
2018-03-02 08:10:22jeff.allenlinkissue2581 messages
2018-03-02 08:10:21jeff.allencreate