Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12c695c

Browse files
committed
#5121: fix claims about default values leading to segfaults.
1 parent 2aff335 commit 12c695c

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

Doc/c-api/veryhigh.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ the same library that the Python runtime is using.
123123
124124
.. c:function:: int PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags)
125125
126-
Read and execute a single statement from a file associated with an interactive
127-
device according to the *flags* argument. If *filename* is *NULL*, ``"???"`` is
128-
used instead. The user will be prompted using ``sys.ps1`` and ``sys.ps2``.
129-
Returns ``0`` when the input was executed successfully, ``-1`` if there was an
130-
exception, or an error code from the :file:`errcode.h` include file distributed
131-
as part of Python if there was a parse error. (Note that :file:`errcode.h` is
132-
not included by :file:`Python.h`, so must be included specifically if needed.)
126+
Read and execute a single statement from a file associated with an
127+
interactive device according to the *flags* argument. The user will be
128+
prompted using ``sys.ps1`` and ``sys.ps2``. Returns ``0`` when the input was
129+
executed successfully, ``-1`` if there was an exception, or an error code
130+
from the :file:`errcode.h` include file distributed as part of Python if
131+
there was a parse error. (Note that :file:`errcode.h` is not included by
132+
:file:`Python.h`, so must be included specifically if needed.)
133133
134134
135135
.. c:function:: int PyRun_InteractiveLoop(FILE *fp, const char *filename)
@@ -138,11 +138,11 @@ the same library that the Python runtime is using.
138138
leaving *flags* set to *NULL*.
139139
140140
141-
.. c:function:: int PyRun_InteractiveLoopFlags(FILE *fp, const char *filename, PyCompilerFlags *flags)
141+
.. c:function:: int PyRun_InteractiveLoopFlags(FILE *fp, const char *filename, PyCompilerFlags *flags)
142142
143143
Read and execute statements from a file associated with an interactive device
144-
until EOF is reached. If *filename* is *NULL*, ``"???"`` is used instead. The
145-
user will be prompted using ``sys.ps1`` and ``sys.ps2``. Returns ``0`` at EOF.
144+
until EOF is reached. The user will be prompted using ``sys.ps1`` and
145+
``sys.ps2``. Returns ``0`` at EOF.
146146
147147
148148
.. c:function:: struct _node* PyParser_SimpleParseString(const char *str, int start)

0 commit comments

Comments
 (0)