This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients eryksun, kushal.das, serhiy.storchaka, terry.reedy, Костя Чолак
Date 2017-05-27.14:31:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495895490.61.0.633535970306.issue30431@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-05-27 14:31:30terry.reedysetrecipients: + terry.reedy, serhiy.storchaka, kushal.das, eryksun, Костя Чолак
2017-05-27 14:31:30terry.reedysetmessageid: <1495895490.61.0.633535970306.issue30431@psf.upfronthosting.co.za>
2017-05-27 14:31:30terry.reedylinkissue30431 messages
2017-05-27 14:31:30terry.reedycreate