[issue6498] Py_Main() does not return on SystemExit

Rogi report at bugs.python.org
Fri Jul 17 01:30:23 CEST 2009


New submission from Rogi <rogi at linuxmail.org>:

>From teh docs:

http://docs.python.org/c-api/veryhigh.html

int Py_Main(int argc, char **argv)¶

    The main program for the standard interpreter. This is made
available for programs which embed Python. The argc and argv parameters
should be prepared exactly as those which are passed to a C program’s
main() function. It is important to note that the argument list may be
modified (but the contents of the strings pointed to by the argument
list are not). The return value will be the integer passed to the
sys.exit() function, 1 if the interpreter exits due to an exception, or
2 if the parameter list does not represent a valid Python command line.

    Note that if an otherwise unhandled SystemError is raised, this
function will not return 1, but exit the process, as long as
Py_InspectFlag is not set.

Py_Main() still does not return on SystemExit.

----------
assignee: georg.brandl
components: Documentation
messages: 90596
nosy: Rogi, georg.brandl
severity: normal
status: open
title: Py_Main() does not return on SystemExit
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6498>
_______________________________________


More information about the Python-bugs-list mailing list