[New-bugs-announce] [issue4564] bytearray.fromhex doesn't respect bytearray subclass
Antoine Pitrou
report at bugs.python.org
Sat Dec 6 15:56:43 CET 2008
New submission from Antoine Pitrou <pitrou at free.fr>:
The following code says it all:
>>> class B(bytearray): pass
...
>>> b = B.fromhex("0c0a")
>>> b
bytearray(b'\x0c\n')
>>> isinstance(b, B)
False
----------
messages: 77130
nosy: pitrou
priority: normal
severity: normal
status: open
title: bytearray.fromhex doesn't respect bytearray subclass
type: behavior
versions: Python 3.0
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4564>
_______________________________________
More information about the New-bugs-announce
mailing list