[New-bugs-announce] [issue9951] introduce bytes.hex method
Arnon Yaari
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:
http://psf.upfronthosting.co.za/roundup/tracker/issue3532
http://www.gossamer-threads.com/lists/python/dev/863892
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
files: bytes.hex.diff
keywords: patch
messages: 117397
nosy: wiggin15
priority: normal
severity: normal
status: open
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>
<http://bugs.python.org/issue9951>
_______________________________________
More information about the New-bugs-announce
mailing list