Sunday, July 24, 2005

IPython: the enhanced python shell

IPython is an Enhanced Interactive Python shell. It has additional 'magic' commands to allow access to things like shell history and the underlying system shell. It caches command outputs, and you can view these using the history mechanism as well.

While installing it on windows, I was pleasantly surprised when the post-install screen pointed me to here - a python readline module for windows. I did not realise one existed! It depends on ctypes and PyWin32, which need to be installed as well.

Three things I immediately liked about IPython:
  • history - makes the interpreter-to-editor-to-interpreter loop so much easier to manage
  • system shell access and output capture - its feels like you're using a real shell
  • colouring (comes with readline) - it looks nice!
This article by Jeremy Jones takes the reader through a nice tour of its main features.

Saturday, July 23, 2005

Great Python unit/acceptance testing links

I've recently noticed a series of posts that discuss the various unit testing options available in Python.
Well done Grig for this excellent summary. Its good to see all this information in one place. I've used unittest in the past - when I next get an opportunity, I'm keen to check out pytest.

Grig has also posted a series of articles about how to use the FitNesse acceptance testing framework using Python.