
Georg Brandl schrieb:
MRAB schrieb:
Benjamin Peterson 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.
Perhaps CTRL-C could be left as-is but also have a 'stronger' version like SHIFT-CTRL-C.
Isn't it as easy as
signal.signal(signal.SIGINT, signal.SIG_DFL)
if you don't like the current handler?
I'm sorry, this was actually in the OP. Hopefully our diversity statement will include the reading-impaired :) Georg -- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out.