Re: Problems with hex-conversion functions

2009-09-05 Thread Steven D'Aprano
On Fri, 04 Sep 2009 15:28:10 -0700, Arnon Yaari wrote: > Hello everyone. > Perhaps I'm missing something, but I see several problems with the two > hex-conversion function pairs that Python offers: 1. binascii.hexlify > and binascii.unhexlify 2. bytes.fromhex and bytes.hex > > Problem #1: > bytes

Problems with hex-conversion functions

2009-09-04 Thread Arnon Yaari
Hello everyone. Perhaps I'm missing something, but I see several problems with the two hex-conversion function pairs that Python offers: 1. binascii.hexlify and binascii.unhexlify 2. bytes.fromhex and bytes.hex Problem #1: bytes.hex is not implemented, although it was specified in PEP 358. This me