From: Georg Brandl Date: Tue, 31 Mar 2009 18:30:37 +0000 (+0000) Subject: #5245: note that PyRun_SimpleString doesnt return on SystemExit. X-Git-Tag: v2.7a1~1696 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e0b363629d62259965a4bc2806370b152d8baac;p=python #5245: note that PyRun_SimpleString doesnt return on SystemExit. --- diff --git a/Doc/c-api/veryhigh.rst b/Doc/c-api/veryhigh.rst index 6811bc876a..f868f516e9 100644 --- a/Doc/c-api/veryhigh.rst +++ b/Doc/c-api/veryhigh.rst @@ -78,6 +78,10 @@ the same library that the Python runtime is using. there was an error, there is no way to get the exception information. For the meaning of *flags*, see below. + 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_SimpleFile(FILE *fp, const char *filename)