[issue17868] pprint long non-printable bytes as hexdump
Ezio Melotti
report at bugs.python.org
Mon Apr 29 20:34:55 CEST 2013
Ezio Melotti added the comment:
A couple of comments:
1) A separate function might be better. I think this kind of output would be more useful while inspecting individual byte objects, rather than having it for arbitrary byte objects (that might be inside other containers).
2) I don't know if the output of pprint is supposed to be eval()uable, but I don't like too much the base64.b16decode(...).replace(' ', '') in the output (especially if the byte objects are short). If a separate function is used as suggested in 1) this won't be a problem. Using the hex_codec might be another option.
----------
nosy: +ezio.melotti
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17868>
_______________________________________
More information about the Python-bugs-list
mailing list