@@ -32,11 +32,11 @@ the same library that the Python runtime is using.
3232 prepared exactly as those which are passed to a C program's :cfunc: `main `
3333 function. It is important to note that the argument list may be modified (but
3434 the contents of the strings pointed to by the argument list are not). The return
35- value will be the integer passed to the :func: ` sys.exit ` function, `` 1 `` if the
36- interpreter exits due to an exception, or ``2 `` if the parameter list does not
37- represent a valid Python command line.
35+ value will be `` `0` `` if the interpreter exits normally (ie, without an
36+ exception), `` 1 `` if the interpreter exits due to an exception, or ``2 ``
37+ if the parameter list does not represent a valid Python command line.
3838
39- Note that if an otherwise unhandled :exc: `SystemError ` is raised, this
39+ Note that if an otherwise unhandled :exc: `SystemExit ` is raised, this
4040 function will not return ``1 ``, but exit the process, as long as
4141 ``Py_InspectFlag `` is not set.
4242
@@ -82,7 +82,7 @@ the same library that the Python runtime is using.
8282 there was an error, there is no way to get the exception information. For the
8383 meaning of *flags *, see below.
8484
85- Note that if an otherwise unhandled :exc: `SystemError ` is raised, this
85+ Note that if an otherwise unhandled :exc: `SystemExit ` is raised, this
8686 function will not return ``-1 ``, but exit the process, as long as
8787 ``Py_InspectFlag `` is not set.
8888
0 commit comments