Message132175
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. |
|
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 | |
|