From 9e0b363629d62259965a4bc2806370b152d8baac Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 31 Mar 2009 18:30:37 +0000 Subject: [PATCH] #5245: note that PyRun_SimpleString doesnt return on SystemExit. --- Doc/c-api/veryhigh.rst | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.50.1