Silvio Ricardo Cordeiro added the comment:

So, if I understood correctly, the `readline` module only works for an 
unmodified `sys.stdin`, which is implemented in terms of C `FILE*` structures. 
Anything created by `open` will not be implemented in terms of C `FILE*`, and 
so all history and completion features of  `readline` will be (silently) 
disabled.

Is there any workaround to make `open` (or some other file-opening function) 
return a file object wrapping a C `FILE*`?

Maybe this behavior should be documented in the `readline` documentation? 
(https://docs.python.org/3/library/readline.html)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29396>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to