Terry J. Reedy added the comment:
As near as I can tell, the patch introduces a regression. The doc for
input(prompt) says "If the prompt argument is present, it is written to
standard output without a trailing newline." The handling of the prompt is up
to stdout.write and thence physical displays devices. Python does not specify
what happens with any particular character, including \r, \t, and astral chars.
C:\Users\Terry>python -c "import sys; sys.stdout.write('some\0 text\n')
some text
The bug on Windows is that input('some\0 text\n') does not produce the same
display.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30431>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com