
Mike Meyer wrote:
On Sun, 13 Sep 2009 21:35:56 +0000 (UTC) Benjamin Peterson <benjamin@python.org> wrote:
Bernie Innocenti <bernie@...> writes:
If we could break the syntax of "print" statements, I'm sure we can also find a satisfactory compromise for CTRL-C handling that won't affect more than 0.1% of existing Python programs. It would actually be a huge compatibility break because finally statments would no longer be garunteed to execute.
They aren't now. os._exit() skips unwinding the try/except chain before exiting.
An application calling an underscore prefixed function (in the os module no less) is significantly different to a user pressing Ctrl-C while the application is running normally. If a user wants to kill it ungracefully, that's what Ctrl-Break is for. Cheers, Nick. -- Nick Coghlan | ncoghlan@gmail.com | Brisbane, Australia ---------------------------------------------------------------