Commit 9e0b3636 authored by Georg Brandl's avatar Georg Brandl

#5245: note that PyRun_SimpleString doesnt return on SystemExit.

parent 1f0a5552
...@@ -78,6 +78,10 @@ the same library that the Python runtime is using. ...@@ -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 there was an error, there is no way to get the exception information. For the
meaning of *flags*, see below. 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) .. cfunction:: int PyRun_SimpleFile(FILE *fp, const char *filename)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment