This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: Handle SIGINT in Python
>...
>> Any Python statement can throw a KeyboardException.
>That could make sense in a stateless / lightweight application, but in
>[my] GDB-base Python application, I can't see how this can remain the
>default behavior ...
But it is in every Python program; if you program in Python it's part of what you do. Python, unlike many other programming languages, treats exceptions as a major mechanism that's ingrained in everything. It's not missing (as in C) or more of an afterthought (as in C++). I think that having GDB/Python work differently would make it feel quite unPythonic.
paul