Message274107
Sure, errors should never pass silently. This function shouldn't be called with nonpositive arguments. And there is no highbit of 0 (and there are infinitely many of negative numbers;).
ValueError is probably best - though IndexError can also be argued for, since this is quite analogous to pop from empty list. :-) |
|
Date |
User |
Action |
Args |
2016-09-01 09:09:16 | veky | set | recipients:
+ veky, barry, rhettinger, vstinner, ezio.melotti, r.david.murray, eli.bendersky, ethan.furman, python-dev, martin.panter, serhiy.storchaka |
2016-09-01 09:09:16 | veky | set | messageid: <1472720956.56.0.000460674885263.issue23591@psf.upfronthosting.co.za> |
2016-09-01 09:09:16 | veky | link | issue23591 messages |
2016-09-01 09:09:16 | veky | create | |
|