Again: Please hear my plea: print without softspace
Paul Rubin
http
Tue Mar 2 01:17:19 EST 2004
Josiah Carlson <jcarlson at nospam.uci.edu> writes:
> > If a '+' is problematic, it could be some other character. If I use
> > a print statement in a Python program, from my viewpoint, a trailing
> > comma signals suppression of newline and adding a space. In this
> > scenario, a trailing <insert acceptable character here> would
> > suppress the newline but not add a space. There's not much
> > difference there.
>
> The problem is that checking my keyboard, there exists exactly three
> characters without syntactical meanings in Python 2.3; @, $, ?. None
> of them make /any/ sort of syntactical sense to me in this context. I
> hope that Guido feels the same way.
How about two trailing commas:
print foo
now prints foo with a trailing newline.
print foo,
suppresses the trailing newline but adds a trailing space.
print foo,,
can suppress the trailing space as well.
More information about the Python-list
mailing list