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

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Committed to release27-maint, revision 88741 -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Indeed it does - good catch :-) I'll backport to 2.7 soon -- ___ Python tracker ___ ___ Python-bugs-

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

2011-03-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Does Python 2.7 have an issue? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Can't find other instances of this bug, so I'm closing the issue. -- status: open -> closed ___ Python tracker ___ _

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

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Committed into release32-maint, revision 88739 -- ___ Python tracker ___ ___ Python-bugs-list mailin

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

2011-03-03 Thread Eli Bendersky
Eli Bendersky added the comment: Committed into py3k, revision 88735 -- assignee: eli.bendersky -> rhettinger resolution: accepted -> versions: -Python 3.2 ___ Python tracker

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

2011-03-03 Thread Raymond Hettinger
Raymond Hettinger 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 Ke

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

2011-03-03 Thread Eli Bendersky
Eli Bendersky 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 ___

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

2011-03-03 Thread Eli Bendersky
New submission from Eli Bendersky : bytearray.pop() currently throws OverflowError when popping an empty bytearray, instead of IndexError. See Issue #10516 for reference discussion. -- assignee: rhettinger components: Interpreter Core keywords: easy, needs review messages: 129989 nosy: