Dark Fighter free for a limited time
 

Dark Fighter

Now FREE on the App Store!

 
Gravit universal binary released for Mac OS X
 

Gravit released for OS X

A free Gravity Simulator

 
TowerDefend is now $0.99!
 

Tower Defend - ON SALE

Price reduced to 0.99 USD!

 

BetterPrint

I find readability very important when reading data. It saves time and energy. To me, Python’s pprint module is not easy to read in a lot of cases so I made my own. This is how pprint looks like at the moment:

BetterPrint is based on a lot of the source code, which looks about 10 years old. It makes more sense to me to have braces aligned by column rather than jammed together inline. BetterPrint also introduces colour to increase readability even more. As you can see from the following screen shot:

BetterPrint is compatible with Python’s pprint module, so you can simply “import betterprint” aliased as pprint like so:

try:
    import betterprint as pprint
except ImportError:
    import pprint

If you have setuptools installed simply run “easy_install betterprint”, or visit the web page for more details and installation instructions.

One Comment

  1. Anteater says:

    This is brilliant, thank you very much.

Leave a Comment