[IPython-dev] Ctrl-C quitting ipython

Gael Varoquaux gael.varoquaux at normalesup.org
Wed Nov 3 12:26:11 EDT 2010


On Wed, Nov 03, 2010 at 05:08:03PM +0100, Hans Meine wrote:
> Unfortunately, it's probably not possible to detect this within ipython, 
> right?  After all, the SIGINT handler might also have played nice.  It would 
> be interesting to know 

> - whether we can detect and report signal handlers being installed
> - whether that would be annoying (don't know how noisy the result would be)
> - whether we can catch exit() being called and at least report "IPython 
> noticed some extension/C-code called exit()", which would have at least 
> reduced the debugging time for us

Yes, absolutely. There is also a logic with installing signal handlers,
and they may really bring in value. How to do this well is beyond my
expertise, I must admit, so I cannot comment at all.

Gael



More information about the IPython-dev mailing list