A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-January/019754.html below:

[Python-Dev] Fwd: [Pythonmac-SIG] sys.exit() functionality

[Python-Dev] Fwd: [Pythonmac-SIG] sys.exit() functionality [Python-Dev] Fwd: [Pythonmac-SIG] sys.exit() functionalityMartin v. Loewis martin@v.loewis.de
01 Feb 2002 00:00:34 +0100
Jack Jansen <Jack.Jansen@oratrix.nl> writes:

> This discussion started on pythonmac-SIG, but someone suggested that
> it isn't really a MacPython-specific issue (even though the
> implementation will be different for MacPython from unix-Python).
> 
> Any opinions?

I think allowing to replace Py_Exit is the right way to go. Make it a
function pointer, initialized to _Py_Exit, and let the embedding
context change its value (through a setter, or through direct
assignment). Double-check that all callers of Py_Exit behave well when
it actually does return (which currently is not the case), and don't
forget to bump the API version.

Regards,
Martin



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