[New-bugs-announce] [issue24829] Use interactive input even if stdout is redirected

Adam Bartoš report at bugs.python.org
Sat Aug 8 16:48:56 CEST 2015


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 <report at bugs.python.org>
<http://bugs.python.org/issue24829>
_______________________________________


More information about the New-bugs-announce mailing list