[Python-ideas] hexdump

Antoine Pitrou solipsis at pitrou.net
Mon Apr 29 10:59:18 CEST 2013


Le Mon, 29 Apr 2013 00:48:43 +0300,
anatoly techtonik <techtonik at gmail.com> a
écrit :
> On Sat, May 12, 2012 at 12:15 PM, Oleg Broytman
> <phd at phdru.name> wrote:
> 
> > On Sat, May 12, 2012 at 11:59:03AM +0300, anatoly techtonik <
> > techtonik at gmail.com> wrote:
> > > Just an idea of usability fix for Python 3.
> > > hexdump module (function or bytes method is better) as simple,
> > > easy and intuitive way for dumping binary data when writing
> > > programs in Python.
> >
> >    Well, you know, the way to add such modules to Python is via
> > Cheeseshop.
> 
> Done. https://pypi.python.org/pypi/hexdump

Actually, I think a hexdump() function in pprint would be a nice
addition. I find myself wanting it when inspecting some binary protocols
(e.g. pickle :-)).

Regards

Antoine.





More information about the Python-ideas mailing list