Message11732
>>> 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. |
|
Date |
User |
Action |
Args |
2018-03-02 08:10:22 | jeff.allen | set | messageid: <1519978222.84.0.467229070634.issue2581@psf.upfronthosting.co.za> |
2018-03-02 08:10:22 | jeff.allen | set | recipients:
+ jeff.allen, jaraco, zyasoft |
2018-03-02 08:10:22 | jeff.allen | link | issue2581 messages |
2018-03-02 08:10:21 | jeff.allen | create | |
|