[issue1667] license() does not process keyboard input correctly

Guido van Rossum report at bugs.python.org
Thu Dec 20 18:32:03 CET 2007


Guido van Rossum added the comment:

Very odd.  Can you experiment with input() and sys.stdin.readline() to
see what exactly gets returned? It seems that somehow the CRLF -> LF
translation isn't working, and that should be fixed somewhere else,
not in license().

I imagine you could just do this:

Hi: <hit Return here>
'\r'
>>>

It should return '' but I think you will see '\r'. I'd like to see
someone else with access to Windows confirm this though.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1667>
__________________________________


More information about the Python-bugs-list mailing list