[issue8021] sys.exit() doesn't execute inside a signal handler while blocked inside an try/except

2010-02-25 Thread David Schere
David Schere added the comment: sys.exit() does not behave the way a C programming thinks. It raises an exception. I'm probably not the first person to get this 'gotcha' -- status: open -> closed ___ Python tracker <h

[issue8021] sys.exit() doesn't execute inside a signal handler while blocked inside an try/except

2010-02-25 Thread David Schere
New submission from David Schere : When doing an exit() within a signal handler for an alarm I am seeing something strange: This code works, it exits within signal handler as expected. You never see the print statement executed. import signal import time import sys import traceback def