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

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to