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

Raymond Hettinger report at bugs.python.org
Thu Mar 3 19:50:16 CET 2011


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

The patch looks fine.  Please apply and backport.

Also, please search all other pop() methods in the standard library to see if this bug occurred anywhere else.  Popping from an empty container should be a LookupError, either IndexError for sequences or KeyError for mappings.

----------
assignee: rhettinger -> eli.bendersky
nosy: +nnorwitz
resolution:  -> accepted
versions: +Python 3.2

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


More information about the Python-bugs-list mailing list