mike watkins dot ca : December 10 2008 Archives

December 10 2008

Colorized Interpreter

Antonio Cuni yesterday posted a useful hack that brings colour and improved completions to the Python interpreter.

http://64.21.147.48/tv-20081210-122107.gif

Attached is a minor patch which updates rlcompleter_ng.py to run on both Python 2 and 3 platforms.

On FreeBSD (and virtually every other system with a stock libreadline v 5.2) you'll need to patch libreadline - apply this patch to the source in /usr/src/contrib/libreadline. Don't forget to remake Python after making and installing the patched libreadline.

Looks lovely, thanks Antonio!