Print function and spaces

Paul Rubin http
Thu Feb 5 15:01:01 EST 2004


"Dan Williams" <dan at ithium.net> writes:
> I'm getting a little annoyed with the way the print function always adds a
> space character between print statements unless there has been a new line.

Print is a statement, not a function.

> The manual mentions that "In some cases it may be functional to write an
> empty string to standard output for this reason." Am I the only the who
> thinks that this sucks? It's the first thing I've come across in Python that
> I really think is a design flaw.

It's sort of a legacy thing, I believe.  I don't like it either.  It goes
against the Python principle that explicit is better than implicit.  If
I want a space in the output, I'd rather ask for one.



More information about the Python-list mailing list