Message230408
| Author |
ethan.furman |
| Recipients |
ethan.furman, rhettinger |
| Date |
2014年10月31日.22:43:33 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1414795414.01.0.24902324376.issue22778@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
My understanding was that if a different patch will be needed, it is not the same issue. Is that not correct?
Here's the test:
def test_iadd(self):
...
self.assertRaises(TypeError, u.__iadd__, None)
It would still pass, as returning NotImplemented will still result in a TypeError, just with a friendlier message.
If any code is depending on this, it is depending on the error message text, which is explicitly not guaranteed |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年10月31日 22:43:34 | ethan.furman | set | recipients:
+ ethan.furman, rhettinger |
| 2014年10月31日 22:43:34 | ethan.furman | set | messageid: <1414795414.01.0.24902324376.issue22778@psf.upfronthosting.co.za> |
| 2014年10月31日 22:43:33 | ethan.furman | link | issue22778 messages |
| 2014年10月31日 22:43:33 | ethan.furman | create |
|