[issue11386] Fix exception thrown by bytearray.pop() for empty bytearrays

Eli Bendersky report at bugs.python.org
Thu Mar 3 19:32:27 CET 2011


Eli Bendersky <eliben at gmail.com> added the comment:

The attached patch changes the exception thrown to IndexError, as well as aligning the error message to the one thrown by list.

----------
keywords: +patch
Added file: http://bugs.python.org/file20986/issue11386.1.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11386>
_______________________________________


More information about the Python-bugs-list mailing list