[issue20279] bytearray.fromhex does not work with some hexes generated by hex
Anatoly Belikov added the comment: ok i gave it half byte -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i
[issue20279] bytearray.fromhex does not work with some hexes generated by hex
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 nos