New submission from Adam Bartoš:

Currently, if one redirects stdout, readline hook is not used (see 
https://hg.python.org/cpython/file/default/Parser/myreadline.c#l208). I would 
assume that if I run Python as "py -i > output.txt", I can use GNU readline or 
other readline hook for input just like normal; only the output is redirected 
to the file.

----------
messages: 248271
nosy: Drekin
priority: normal
severity: normal
status: open
title: Use interactive input even if stdout is redirected
type: behavior

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

Reply via email to