Message 133999 - Python tracker
Message133999
| Author | javawizard |
|---|---|
| Recipients | eric.araujo, francescor, javawizard, lregebro, python-dev, rhettinger |
| Date | 2011-04-18.23:07:29 |
| SpamBayes Score | 2.0947168e-06 |
| Marked as misclassified | No |
| Message-id | <1303168050.97.0.280457047547.issue10042@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
This is not fixed. The accepted fix doesn't take NotImplemented into account, with the result that comparing two mutually-incomparable objects whose ordering operations were generated with total_ordering causes a stack overflow instead of the expected "TypeError: unorderable types: Foo() op Bar()". I've attached a fix for this. It properly takes NotImplemented into account. It also generates __eq__ from __ne__ and vice versa if only one of them exists. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2011-04-18 23:07:31 | javawizard | set | recipients: + javawizard, rhettinger, eric.araujo, lregebro, francescor, python-dev |
| 2011-04-18 23:07:30 | javawizard | set | messageid: <1303168050.97.0.280457047547.issue10042@psf.upfronthosting.co.za> |
| 2011-04-18 23:07:30 | javawizard | link | issue10042 messages |
| 2011-04-18 23:07:30 | javawizard | create | |