gotcha/ipdb — pull request #22 by Psycojoker (2012-05-04 00:27:16+00:00)
Title: new context manager to launch ipdb on exception using the with statement

Hello,

As the title tell it this allow you to do:

with launch_ipdb_on_exception():
# do stuff

I've found this approach very easy and pleasant to use so instead of hiding it in a utils.py file on my project I though this would profit more people if this was included in ipdb. I've also added doc on it in the README with an example https://github.com/Psycojoker/ipdb/commit/7aa3fddde610e8173771b59ece12f9c707bfb0fb

Thanks for ipdb (this has really help me) and thanks in advance,

PS: please tell me if you release a new version of ipdb with this, like that I can clean my utils.py