Message132175
| Author |
Elvis.Pranskevichus |
| Recipients |
Elvis.Pranskevichus, amaury.forgeotdarc, rhettinger, stutzbach |
| Date |
2011年03月25日.22:45:10 |
| SpamBayes Score |
1.1660634e-07 |
| Marked as misclassified |
No |
| Message-id |
<1301093111.02.0.113351611034.issue11674@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I think that explicitly raising TypeError in __len__() is wrong in any case. I would argue something like NotImplementedError is a better choice to signal the absence of length. Which also makes me think that Python's exceptions are, maybe, too coarse sometimes. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年03月25日 22:45:11 | Elvis.Pranskevichus | set | recipients:
+ Elvis.Pranskevichus, rhettinger, amaury.forgeotdarc, stutzbach |
| 2011年03月25日 22:45:11 | Elvis.Pranskevichus | set | messageid: <1301093111.02.0.113351611034.issue11674@psf.upfronthosting.co.za> |
| 2011年03月25日 22:45:10 | Elvis.Pranskevichus | link | issue11674 messages |
| 2011年03月25日 22:45:10 | Elvis.Pranskevichus | create |
|