<div class="gmail_quote">On 7 August 2011 09:04, Aaron Meurer <span dir="ltr"><<a href="mailto:asmeurer@gmail.com">asmeurer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is it possible to create custom magic expressions? I'd like to create<br>
a %pudb magic, which acts like %pdb except it calls PuDB on failure<br>
instead of pdb.</blockquote></div><br>It's certainly possible to create custom magic expressions. For handling exceptions, I think that interactiveshell.set_custom_exc should do what you want.<br><br>Thomas<br>