mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Port #6498 fix: fix several misspellings of "SystemExit" as "SystemError".
This commit is contained in:
parent
fb1d60c800
commit
11041f0af9
2 changed files with 6 additions and 6 deletions
|
@ -32,11 +32,11 @@ the same library that the Python runtime is using.
|
||||||
prepared exactly as those which are passed to a C program's :cfunc:`main`
|
prepared exactly as those which are passed to a C program's :cfunc:`main`
|
||||||
function. It is important to note that the argument list may be modified (but
|
function. 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
|
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
|
value will be ```0``` if the interpreter exits normally (ie, without an
|
||||||
interpreter exits due to an exception, or ``2`` if the parameter list does not
|
exception), ``1`` if the interpreter exits due to an exception, or ``2``
|
||||||
represent a valid Python command line.
|
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
|
function will not return ``1``, but exit the process, as long as
|
||||||
``Py_InspectFlag`` is not set.
|
``Py_InspectFlag`` is not set.
|
||||||
|
|
||||||
|
@ -82,7 +82,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
|
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
|
Note that if an otherwise unhandled :exc:`SystemExit` is raised, this
|
||||||
function will not return ``-1``, but exit the process, as long as
|
function will not return ``-1``, but exit the process, as long as
|
||||||
``Py_InspectFlag`` is not set.
|
``Py_InspectFlag`` is not set.
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ extern void _PyGILState_Fini(void);
|
||||||
int Py_DebugFlag; /* Needed by parser.c */
|
int Py_DebugFlag; /* Needed by parser.c */
|
||||||
int Py_VerboseFlag; /* Needed by import.c */
|
int Py_VerboseFlag; /* Needed by import.c */
|
||||||
int Py_InteractiveFlag; /* Needed by Py_FdIsInteractive() below */
|
int Py_InteractiveFlag; /* Needed by Py_FdIsInteractive() below */
|
||||||
int Py_InspectFlag; /* Needed to determine whether to exit at SystemError */
|
int Py_InspectFlag; /* Needed to determine whether to exit at SystemExit */
|
||||||
int Py_NoSiteFlag; /* Suppress 'import site' */
|
int Py_NoSiteFlag; /* Suppress 'import site' */
|
||||||
int Py_BytesWarningFlag; /* Warn on str(bytes) and str(buffer) */
|
int Py_BytesWarningFlag; /* Warn on str(bytes) and str(buffer) */
|
||||||
int Py_DontWriteBytecodeFlag; /* Suppress writing bytecode files (*.py[co]) */
|
int Py_DontWriteBytecodeFlag; /* Suppress writing bytecode files (*.py[co]) */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue