stopping execution window on error - newbie

Matteo Landi landimatte at gmail.com
Thu May 13 17:12:00 EDT 2010


Place a try .. except surrounding the body of your program, and finally call
the input() function.

On Thu, May 13, 2010 at 11:00 PM, a <oxfordenergyservices at googlemail.com>wrote:

> I'm coding on an old windows laptop
>
> i write the code and double click the icon.  it runs the program and
> writes results to a window.
>
> when the code finishes, the window closes, i do a time.sleep(10) to
> see what has happened.
>
> unfortunately when there is an error it just closes the window.
> anyway of seeing the error messages?
>
> thanks
>
> a
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
Matteo Landi
http://www.matteolandi.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100513/ecf275e9/attachment.html>


More information about the Python-list mailing list