Skip to content

Tag Archives: pretty print

Python pretty print in hex

12-Mar-10

I recently needed to pretty print something from Python, but I needed the integers printed in hex rather than decimal. I overloaded the [cci lang="python"]PrettyPrinter[/cci] class to do it.