[issue17620] Python interactive console doesn't use sys.stdin for input

Guido van Rossum report at bugs.python.org
Wed Jul 30 20:31:53 CEST 2014


Guido van Rossum added the comment:

sys.stdin.readline() never delegates to GNU readline.  The REPL calls GNU readline directly.  There's clearly some condition that determines whether to call GNU readline or sys.stdin.readline, but it may not correspond to what you want (e.g. it may just test whether FD 0 is a tty).  Can you find in the CPython source code where this determination is made?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17620>
_______________________________________


More information about the Python-bugs-list mailing list