This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]