]> granicus.if.org Git - python/commitdiff
#5227: note that Py_Main doesnt return on SystemExit.
authorGeorg Brandl <georg@python.org>
Tue, 31 Mar 2009 18:33:10 +0000 (18:33 +0000)
committerGeorg Brandl <georg@python.org>
Tue, 31 Mar 2009 18:33:10 +0000 (18:33 +0000)
Doc/c-api/veryhigh.rst

index f868f516e952781b039d77e37be15a827d66c6b3..1ca11cbce0eff10c5d0c580299f178f5764e3a0e 100644 (file)
@@ -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)