Message4501
It seems that 'except KeyboardInterrupt' or even plain 'except' is not
enough to catch ctrl-c with Jython. This is unfortunate because it makes
it prevents stopping applications started from the command line gracefully.
This problem can be tested with the attached script. When I execute it
with Jython (tested both with 2.2 and 2.5b3) on my OS X and press ctrl-c
it simply quits without even a traceback. With CPython it prints both
'KeyboardInterrupt' and 'Bye!' before exiting cleanly.
Issue 1746106 is probably related to this problem:
http://bugs.jython.org/issue1746106 |
|
Date |
User |
Action |
Args |
2009-04-11 19:11:38 | pekka.klarck | set | recipients:
+ pekka.klarck |
2009-04-11 19:11:38 | pekka.klarck | set | messageid: <1239477098.64.0.370936696393.issue1313@psf.upfronthosting.co.za> |
2009-04-11 19:11:38 | pekka.klarck | link | issue1313 messages |
2009-04-11 19:11:37 | pekka.klarck | create | |
|