From: Georg Brandl Date: Tue, 31 Mar 2009 18:33:10 +0000 (+0000) Subject: #5227: note that Py_Main doesnt return on SystemExit. X-Git-Tag: v2.7a1~1694 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9efe6f65cff0a103a48f27c1336c7914b0bd57d;p=python #5227: note that Py_Main doesnt return on SystemExit. --- diff --git a/Doc/c-api/veryhigh.rst b/Doc/c-api/veryhigh.rst index f868f516e9..1ca11cbce0 100644 --- a/Doc/c-api/veryhigh.rst +++ b/Doc/c-api/veryhigh.rst @@ -36,6 +36,10 @@ the same library that the Python runtime is using. 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 :exc:`SystemError` is raised, this + function will not return ``1``, but exit the process, as long as + ``Py_InspectFlag`` is not set. + .. cfunction:: int PyRun_AnyFile(FILE *fp, const char *filename)