This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients ezio.melotti, pitrou, serhiy.storchaka, techtonik
Date 2013-05-04.12:46:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367671603.66.0.859403380611.issue17868@psf.upfronthosting.co.za>
In-reply-to
Content
The idea is that the output of pprint should be something like (once #17530 is applied):
>>> pprint.pprint(b'\x7fELF\x01\x01\x01\x00\x00\n\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00\x01')
(b'\x7fELF\x01\x01\x01\x00\x00\n\x00\x00'
 b'\x00\x00\x00\x00\x02\x00\x03\x00\x01')

whereas the output of hexdump can be something like:
pprint.hexdump(b'\x7fELF\x01\x01\x01\x00\x00\n\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00\x01')
7F 45 4C 46 01 01 01 00 00 0A 00 00 00 00 00 00 | .ELF............
02 00 03 00 01                                  | .....

hexdump() could accept some additional args too if required, but otherwise I don't think the details are so important as long as it produces something readable for a human.
History
Date User Action Args
2013-05-04 12:46:43ezio.melottisetrecipients: + ezio.melotti, pitrou, techtonik, serhiy.storchaka
2013-05-04 12:46:43ezio.melottisetmessageid: <1367671603.66.0.859403380611.issue17868@psf.upfronthosting.co.za>
2013-05-04 12:46:43ezio.melottilinkissue17868 messages
2013-05-04 12:46:43ezio.melotticreate