diff options
author | xdegaye <xdegaye@gmail.com> | 2017-11-12 15:50:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-12 15:50:48 (GMT) |
commit | e0582a37c8d1776a2fd4968e9216f3a05f780276 (patch) | |
tree | b36c2b245aa597c0fd49b16d761508d5bf42a8bd /Doc/c-api | |
parent | 1588be66d7b0eeebc4614309cd0fc837ff52776a (diff) | |
download | cpython-e0582a37c8d1776a2fd4968e9216f3a05f780276.zip cpython-e0582a37c8d1776a2fd4968e9216f3a05f780276.tar.gz cpython-e0582a37c8d1776a2fd4968e9216f3a05f780276.tar.bz2 |
bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160)
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/veryhigh.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/c-api/veryhigh.rst b/Doc/c-api/veryhigh.rst index 6ab5942..3897fdd 100644 --- a/Doc/c-api/veryhigh.rst +++ b/Doc/c-api/veryhigh.rst @@ -141,7 +141,8 @@ the same library that the Python runtime is using. Read and execute statements from a file associated with an interactive device until EOF is reached. The user will be prompted using ``sys.ps1`` and ``sys.ps2``. *filename* is decoded from the filesystem encoding - (:func:`sys.getfilesystemencoding`). Returns ``0`` at EOF. + (:func:`sys.getfilesystemencoding`). Returns ``0`` at EOF or a negative + number upon failure. .. c:var:: int (*PyOS_InputHook)(void) |