<div class="gmail_quote">On 14 March 2011 10:59, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com">takowl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

In fact, having thought about how I would do it, I'll code it up in a bit, and we can discuss a real system, rather than a hypothetical one.</blockquote></div><br>Right, that kept me occupied over lunch. Take a look at the code:<br>

<a href="https://github.com/takluyver/ipython/commit/498d9f5596113a9817b9a2fa4a14314c14bb7439">https://github.com/takluyver/ipython/commit/498d9f5596113a9817b9a2fa4a14314c14bb7439</a><br><br>Informal tests suggest that it's behaving as expected, but by all means pull the code and hunt for corner cases. If we're happy with this approach, I'll add some simple unit testing.<br>

<br>Thanks,<br>Thomas<br>