help with program
Terry Reedy
tjreedy at udel.edu
Sun Mar 27 11:47:43 EDT 2016
On 3/27/2016 10:18 AM, Bob Gailer wrote:
> The problem with putting input at the end of a program is: if the program
> raises an exception you won't see it.
What you are saying is that putting input() at the end of a program (or
before any exit point) is insufficient for keeping a window alive if the
program has a bug that causes an exception. If that is considered
possible, wrap the entire code in try-except and print or log the
exception before using input to keep the window alive. During
development, it is easier to just run the program in a persistent
environment, whether console or IDE such as IDLE.
--
Terry Jan Reedy
More information about the Python-list
mailing list