[issue1927] raw_input behavior incorrect if readline not enabled
Martin Panter
report at bugs.python.org
Tue Jan 19 05:36:31 EST 2016
Martin Panter added the comment:
The way I see it, input() is mainly geared for prompting to stdout, and it is just one aspect that strangely uses stderr:
* Documentation says stdout
* Stdout is checked if it is a terminal and not redirected
* Gnu Readline is configured for stdout
* The fallback for non-terminals uses stdout
Arguments for using stderr:
* Consistency with Unix shell
* Consistency with the Python interactive interpreter prompt
Maybe it is more ideal to use stderr (I have no idea). But I think that would be a more drastic change.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1927>
_______________________________________
More information about the Python-bugs-list
mailing list