Fredrik Håård is a partner and specialist at Softhouse Consulting as well as co-founder and head developer at Visual Units, a Swedish company creating support tools for logistics. Fredrik is a DZone MVB and is not an employee of DZone and has posted 20 posts at DZone. You can read more from them at their website. View Full User Profile

The Very Best of PyCon 2012 Is...

06.08.2012
| 1695 views |
  • submit to reddit

A couple of months after PyCon, I can say with confidence what has been the best discovery of PyCon 2012 for me. It was not that PyCon is an awesome conference - I already knew that - or any of the advanced Python topics I attended - although those were great - and not even the exceptional High-Performance Computing tutorial by Ian Ozsvald.

The best thing I learnt at PyCon, measured by actual hours used and minutes saved, was that bpython by Bob Farrell existed. Just to be clear, it was not for lack of competition, bpython is just that awesome in it's simplicity.

Sure, IPython is an enhanced REPL, but unless you really need the notebook, visualization, parallelization, and all that jazz, or if you want to replace your regular shell, IPython is just too much. It also comes at a cost - you break cut'n paste to testable code example from the standard REPL, something that has been disturbing me more and more since I've started to believe that doctest is, despite all, generally better testing and documentation than unittests ever can be.

bpython does not break anything, as far as I have found out. It's a REPL, it has autocomplete, persistent history, on-the-fly documentation, session saving, and other nifty features like the ability to send output to a pager or to send a session directly to pastebin.

If you have not already done so, pip install bpython. If you're on Windows, install a vm just so you can run it. Works splendidly for Python 2 and 3, and will make your life just a little bit better.

This has been a public service announcement.

Published at DZone with permission of Fredrik Håård, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)