diff options
author | xdegaye <xdegaye@gmail.com> | 2017-11-12 16:33:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-12 16:33:16 (GMT) |
commit | ea5b545e38b3fec7ff29276b5cd59dec583ebf34 (patch) | |
tree | 4916695b3b105810c0910fc129274e5dce35bc95 /Doc | |
parent | 4e09deb127013f7cd097f2ec5918f3c721c9e070 (diff) | |
download | cpython-ea5b545e38b3fec7ff29276b5cd59dec583ebf34.zip cpython-ea5b545e38b3fec7ff29276b5cd59dec583ebf34.tar.gz cpython-ea5b545e38b3fec7ff29276b5cd59dec583ebf34.tar.bz2 |
[3.6] bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160). (#4379)
(cherry picked from commit e0582a37c8d1776a2fd4968e9216f3a05f780276)
Diffstat (limited to 'Doc')
-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) |