[issue9951] introduce bytes.hex method
Georg Brandl
report at bugs.python.org
Sun Oct 13 09:45:40 CEST 2013
Georg Brandl added the comment:
Blasphemous question: why not give bytes a __hex__ method? Then you could use hex() to convert them :)
The patch is outdated; it should not use PyUnicode_AS_UNICODE, but PyUnicode_New(..., 127) and then PyUnicode_1BYTE_DATA to get the char array.
----------
nosy: +georg.brandl
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9951>
_______________________________________
More information about the Python-bugs-list
mailing list