summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-05-15 08:49:29 +0200
committerGeorg Brandl <georg@python.org>2011-05-15 08:49:29 +0200
commit264089e7a7370c70bee1975c9af2e5a90cb15bd1 (patch)
tree520adb40af36ed9661835fd6fbd5f2c1e15d93bb /Doc
parentfb15bf0367d5d0876e6780132c236b5ce1acd97e (diff)
parent8a46a7ac42a230f300133e8bc180869adf456953 (diff)
downloadcpython-264089e7a7370c70bee1975c9af2e5a90cb15bd1.tar.gz
Merge #6498 fix from 3.1.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/veryhigh.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/Doc/c-api/veryhigh.rst b/Doc/c-api/veryhigh.rst
index 26e07160c1..8bece6d034 100644
--- a/Doc/c-api/veryhigh.rst
+++ b/Doc/c-api/veryhigh.rst
@@ -34,11 +34,12 @@ the same library that the Python runtime is using.
according to the user's locale). It is important to note that the
argument list may be modified (but the contents of the strings
pointed to by the argument list are not). The return value will be
- the integer passed to the :func:`sys.exit` function, ``1`` if the
- interpreter exits due to an exception, or ``2`` if the parameter
- list does not represent a valid Python command line.
+ ```0``` if the interpreter exits normally (ie, without an
+ exception), ``1`` if the 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
+ Note that if an otherwise unhandled :exc:`SystemExit` is raised, this
function will not return ``1``, but exit the process, as long as
``Py_InspectFlag`` is not set.
@@ -85,7 +86,7 @@ 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
+ Note that if an otherwise unhandled :exc:`SystemExit` is raised, this
function will not return ``-1``, but exit the process, as long as
``Py_InspectFlag`` is not set.