[New-bugs-announce] [issue6846] bytearray.pop() returns negative ints

Hagen Fürstenau report at bugs.python.org
Sat Sep 5 20:51:56 CEST 2009


New submission from Hagen Fürstenau <hfuerstenau at gmx.net>:

This looks pretty bad:

>>> b = bytearray(b"\xff")
>>> b[0]
255
>>> b.pop()
-1

Fortunately it's easy too fix (attached).

----------
components: Interpreter Core
messages: 92292
nosy: hagen
severity: normal
status: open
title: bytearray.pop() returns negative ints
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

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


More information about the New-bugs-announce mailing list