[Python-Dev] Catch SIGINT at Python startup (original) (raw)

Guido van Rossum guido at python.org
Mon Mar 8 19:34:12 CET 2010


On Mon, Mar 8, 2010 at 10:21 AM, Maciej Fijalkowski <fijall at gmail.com> wrote:

On Mon, Mar 8, 2010 at 10:47 AM, Guido van Rossum <guido at python.org> wrote:

Actually it sounds like there's some overly general except clause somewhere that should be adjusted to catch just "Exception" instead of "*".

There is at least one that prints "import 'site' failed" and continues to run your program.

Yeah, it shouldn't do that. The ^C should fall through.

-- --Guido van Rossum (python.org/~guido)



More information about the Python-Dev mailing list