Vedran Čačić added the comment:

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. :-)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23591>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to