New submission from Anatoly Belikov: bytearray.fromhex(hex(434)[2:])
throws ValueError: non-hexadecimal number found in fromhex() arg at position 2 Strangely it works with leading zero: bytearray.fromhex('0' + hex(438)[2:]) ---------- components: Library (Lib) messages: 208273 nosy: Anatoly Belikov priority: normal severity: normal status: open title: bytearray.fromhex does not work with some hexes generated by hex type: behavior versions: Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20279> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com