Message281616
| Author |
max |
| Recipients |
docs@python, max |
| Date |
2016年11月24日.08:14:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1479975264.5.0.247033798803.issue28785@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Currently, there's no clear statement as to what exactly the fallback is in case `__eq__` returns `NotImplemented`. It would be good to clarify the behavior of `NotImplemented`; at least for `__eq__`, but perhaps also other rich comparison methods. For example: "When `NotImplemented` is returned from a rich comparison method, the interpreter behaves as if the rich comparison method was not defined in the first place." See http://stackoverflow.com/questions/40780004/returning-notimplemented-from-eq for more discussion. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年11月24日 08:14:24 | max | set | recipients:
+ max, docs@python |
| 2016年11月24日 08:14:24 | max | set | messageid: <1479975264.5.0.247033798803.issue28785@psf.upfronthosting.co.za> |
| 2016年11月24日 08:14:24 | max | link | issue28785 messages |
| 2016年11月24日 08:14:24 | max | create |
|