ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activepython
activepython
Re: keep console window after double-click foo.py
by smr other posts by this author
Mar 23 2007 2:00PM messages near this date
view in the new Beta List Site
Re: keep console window after double-click foo.py | ANN: ActivePython 2.5.0.0 is now available
On Thu, Mar 22, 2007 at 02:24:20PM -0700, Trent Mick wrote:

>  Try this:
>  
>  try:
>      main()
>  except:
>      import traceback
>      print "The script crashed:"
>      traceback.print_exc()
>      print "Press RETURN to exit..."
>      sys.stdin.readline()


Beautiful, thanks!  As you and Frank Müller surmised, I didn't
properly understand the try/catch semantics.

-Steve
_______________________________________________
ActivePython mailing list
ActivePython@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
Thread:
smr
Fra Mue
Trent Mick
smr

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved