Recent articles



Yes/No prompt for Python CLI

18 September 2014

Using this one weird trick from distutils it's trivial to handle yes/no prompts for command-line Python programs.


Clipboard paste Python script to IPython shell

18 September 2014

Using IPython magic functions %paste and %cpaste you can paste code from your system clipboard without worrying about whitespace hiccups. Also works for Django's manage.py shell.