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 


Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to