mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
bpo-30696: Fix the REPL looping endlessly when no memory (GH-4160)
This commit is contained in:
parent
1588be66d7
commit
e0582a37c8
4 changed files with 107 additions and 19 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue