Control-C on Unix misbehaviour?

Tim Peters tim_one at email.msn.com
Mon Oct 18 03:26:32 EDT 1999


[Michael Hudson]
> Something I noticed but never got around to moaning about around the
> time of the transition from 1.5.1 to 1.5.2 was that now hitting Ctrl-C
> at the interpreter prompt tends to dump me out to the shell.

"Tends"?  I hope you can make a bolder claim than that <wink>.

If Ctrl-C does kill the interpreter, it's a platform-specific bug.  Start
your exciting search by trying:

>>> import signal
>>> signal.default_int_handler()

Hoping for something like:

Traceback (innermost last):
  File "<stdin>", line 1, in ?
KeyboardInterrupt
>>>

and still in the interpreter shell.

always-knew-the-bytecodehacks-would-kill-you<wink>-ly y'rs  - tim






More information about the Python-list mailing list