[IronPython] Use of sys.exit

Marty Nelson Marty.Nelson at symyx.com
Wed Nov 19 21:19:27 CET 2008

We have users writing extension scripts that execute from C#, and may be
called multiple times (for example, hooked up to a Change event of some
object or event in the main application)


Is sys.exit(1) an acceptable way for them to exit the script (used like
an early return in C#)?  Is there a better way?  Does it do anything to
the ScriptScope that is reused?





Notice: This e-mail message, together with any attachments, contains
information of Symyx Technologies, Inc. or any of its affiliates or
subsidiaries that may be confidential, proprietary, copyrighted,
privileged and/or protected work product, and is meant solely for
the intended recipient. If you are not the intended recipient, and
have received this message in error, please contact the sender
immediately, permanently delete the original and any copies of this
email and any attachments thereto.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20081119/39c92340/attachment.html>

More information about the Ironpython-users mailing list