New submission from Antoine Pitrou <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue4564> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com