[New-bugs-announce] [issue9951] introduce bytes.hex method
report at bugs.python.org
Sun Sep 26 01:38:48 CEST 2010
New submission from Arnon Yaari <wiggin15 at gmail.com>:
Following up on these discussions:
I'm submitting a patch to add bytes.hex method in accordance to PEP 358.
The code was taken from binascii so it should be "tested".
Also added bytearray.hex and fixed the documentation and testing.
There are additional things to discuss, for example:
* multiple and different implementations of tohex\fromhex - in binascii, sha1module, bytes, bytearray...
* binascii's functions which perform the same thing, but those functions and the rest of binascii's functions receive and return wrong types. I would fix this but it breaks compatibility.
components: Interpreter Core
title: introduce bytes.hex method
type: feature request
versions: Python 3.2
Added file: http://bugs.python.org/file19018/bytes.hex.diff
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce