diff options
author | Georg Brandl <georg@python.org> | 2010-10-17 11:03:22 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-10-17 11:03:22 (GMT) |
commit | 12c695cea98189d8325cc3041e19c08b6081d055 (patch) | |
tree | fe66f9cf9cb70ac3d727f1fdfbc9a1ae3bbd6176 /Doc/c-api/veryhigh.rst | |
parent | 2aff335c36d8052e6d6f548eb7fa9c3786cbea1c (diff) | |
download | cpython-12c695cea98189d8325cc3041e19c08b6081d055.zip cpython-12c695cea98189d8325cc3041e19c08b6081d055.tar.gz cpython-12c695cea98189d8325cc3041e19c08b6081d055.tar.bz2 |
#5121: fix claims about default values leading to segfaults.
Diffstat (limited to 'Doc/c-api/veryhigh.rst')
-rw-r--r-- | Doc/c-api/veryhigh.rst | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Doc/c-api/veryhigh.rst b/Doc/c-api/veryhigh.rst index 2adcd1d..7cc1dc1 100644 --- a/Doc/c-api/veryhigh.rst +++ b/Doc/c-api/veryhigh.rst @@ -123,13 +123,13 @@ the same library that the Python runtime is using. .. c:function:: int PyRun_InteractiveOneFlags(FILE *fp, const char *filename, PyCompilerFlags *flags) - Read and execute a single statement from a file associated with an interactive - device according to the *flags* argument. If *filename* is *NULL*, ``"???"`` is - used instead. The user will be prompted using ``sys.ps1`` and ``sys.ps2``. - Returns ``0`` when the input was executed successfully, ``-1`` if there was an - exception, or an error code from the :file:`errcode.h` include file distributed - as part of Python if there was a parse error. (Note that :file:`errcode.h` is - not included by :file:`Python.h`, so must be included specifically if needed.) + Read and execute a single statement from a file associated with an + interactive device according to the *flags* argument. The user will be + prompted using ``sys.ps1`` and ``sys.ps2``. Returns ``0`` when the input was + executed successfully, ``-1`` if there was an exception, or an error code + from the :file:`errcode.h` include file distributed as part of Python if + there was a parse error. (Note that :file:`errcode.h` is not included by + :file:`Python.h`, so must be included specifically if needed.) .. c:function:: int PyRun_InteractiveLoop(FILE *fp, const char *filename) @@ -138,11 +138,11 @@ the same library that the Python runtime is using. leaving *flags* set to *NULL*. -.. c:function:: int PyRun_InteractiveLoopFlags(FILE *fp, const char *filename, PyCompilerFlags *flags) +.. c:function:: int PyRun_InteractiveLoopFlags(FILE *fp, const char *filename, PyCompilerFlags *flags) Read and execute statements from a file associated with an interactive device - until EOF is reached. If *filename* is *NULL*, ``"???"`` is used instead. The - user will be prompted using ``sys.ps1`` and ``sys.ps2``. Returns ``0`` at EOF. + until EOF is reached. The user will be prompted using ``sys.ps1`` and + ``sys.ps2``. Returns ``0`` at EOF. .. c:function:: struct _node* PyParser_SimpleParseString(const char *str, int start) |