[pypy-issue] [issue917] raw_input ignores stdout.softspace
Dominik Hannen
tracker at bugs.pypy.org
Wed Oct 19 22:58:54 CEST 2011
New submission from Dominik Hannen <cantares1+pypybugs at gmail.com>:
raw_input ignores stdout.softspace when writing its prompt to stdout.
Then the softspace is used by the next print statement after raw_input.
The bug is reproducible with this script:
############
problem.py:
print "Input:",
raw_input()
print("<< no softspace")
print "\nsoftspace after ':'"
print "Input:",
raw_input("prompt")
############
The output is (PyPy):
Input:
<< no softspace
softspace after ':'
Input:prompt
############
It should look like:
Input:
<< no softspace
softspace after ':'
Input: prompt
############
The supplied patchfile contains tests and a patch to correct this.
----------
files: app_io.patch
messages: 3355
nosy: dhx, pypy-issue
priority: bug
status: unread
title: raw_input ignores stdout.softspace
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue917>
________________________________________
More information about the pypy-issue
mailing list