Skip to content

Commit 11041f0

Browse files
committed
Port #6498 fix: fix several misspellings of "SystemExit" as "SystemError".
1 parent fb1d60c commit 11041f0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/c-api/veryhigh.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ the same library that the Python runtime is using.
3232
prepared exactly as those which are passed to a C program's :cfunc:`main`
3333
function. It is important to note that the argument list may be modified (but
3434
the contents of the strings pointed to by the argument list are not). The return
35-
value will be the integer passed to the :func:`sys.exit` function, ``1`` if the
36-
interpreter exits due to an exception, or ``2`` if the parameter list does not
37-
represent a valid Python command line.
35+
value will be ```0``` if the interpreter exits normally (ie, without an
36+
exception), ``1`` if the interpreter exits due to an exception, or ``2``
37+
if the parameter list does not represent a valid Python command line.
3838

39-
Note that if an otherwise unhandled :exc:`SystemError` is raised, this
39+
Note that if an otherwise unhandled :exc:`SystemExit` is raised, this
4040
function will not return ``1``, but exit the process, as long as
4141
``Py_InspectFlag`` is not set.
4242

@@ -82,7 +82,7 @@ the same library that the Python runtime is using.
8282
there was an error, there is no way to get the exception information. For the
8383
meaning of *flags*, see below.
8484

85-
Note that if an otherwise unhandled :exc:`SystemError` is raised, this
85+
Note that if an otherwise unhandled :exc:`SystemExit` is raised, this
8686
function will not return ``-1``, but exit the process, as long as
8787
``Py_InspectFlag`` is not set.
8888

Python/pythonrun.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ extern void _PyGILState_Fini(void);
7676
int Py_DebugFlag; /* Needed by parser.c */
7777
int Py_VerboseFlag; /* Needed by import.c */
7878
int Py_InteractiveFlag; /* Needed by Py_FdIsInteractive() below */
79-
int Py_InspectFlag; /* Needed to determine whether to exit at SystemError */
79+
int Py_InspectFlag; /* Needed to determine whether to exit at SystemExit */
8080
int Py_NoSiteFlag; /* Suppress 'import site' */
8181
int Py_BytesWarningFlag; /* Warn on str(bytes) and str(buffer) */
8282
int Py_DontWriteBytecodeFlag; /* Suppress writing bytecode files (*.py[co]) */

0 commit comments

Comments
 (0)