Python/Jython - sys.exit()

Samuele Pedroni pedronis at bluewin.ch
Thu Dec 19 04:58:45 EST 2002


"Jack D. Hammer" <thisisabogusemail at bogus.thisisabogusdomain.com> ha scritto
nel messaggio news:vZdM9.423391$NH2.30907 at sccrnsc01...
> Couldn't you call java's exit function System.exit()?
>
> VLP wrote:
> > sys.exit() exits the entire program, including all threads
> > in Python. But sys.exit() in Jython just exits the
> > current thread. Anyone know of a way I can replicate
> > the C/Python exit() behaviour in Jython?
> >

sys.exit triggers System.exit in Jython, up to all catching try except (like
in CPython).





More information about the Python-list mailing list