A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/082576.html below:

Pythonwin break execution

Pythonwin break execution Pythonwin break executionSteve Holden sholden at holdenweb.com
Mon Apr 9 07:34:09 EDT 2001
"Neo" <neo at thezion.net> wrote in message
news:9arsv3$6ho02$1 at ID-35431.news.dfncis.de...
> What is the key for to break the script execution in pythonwin?
>
The usual way is

    import sys
    sys.exit()

An integer argumnet (usually from 0-127) is returned as the completion
status of the process under Unices, but Windozes tend to be a little less
cooperative. The documentation also states """In particular, sys.exit("some
error message") is a quick way to exit a program when an error occurs""".

Hope this helps.

regards
 Steve




More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4