Pythonwin break execution

Steve 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