[Python-bugs-list] [ python-Bugs-431060 ] print 'foo',;readline() softspace error
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 03 Jul 2001 23:10:58 -0700
Bugs item #431060, was opened at 2001-06-07 07:26
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=431060&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: print 'foo',;readline() softspace error
Initial Comment:
python 2.1 (and 1.5), intel linux and sparc solaris.
def f():
print 'foo: ',
sys.stdin.readline()
print 'bar: '
f()
foo: george
bar:
A print with trailing comma, followed by a readline
and another print, puts an extra space at the beginning
of the second printed line. An explicit setting
of sys.stdout.softspace=0 after the first print averts
this error.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=431060&group_id=5470