[Python-Dev] PEP 259: Omit printing newline after newline

Greg Ewing greg@cosc.canterbury.ac.nz
Tue, 12 Jun 2001 12:00:33 +1200 (NZST)


Guido:

>    I propose to skip printing the newline when it follows a newline
>    that came from data.

-1

There's too much magic in the way print handles spaces and
newlines already. Making it even more magical and inconsistent
seems like exactly the wrong direction to be going in.

If there are to be any changes to the way print works, I
would prefer to see one that removes the need for the
softspace flag altogether. The behaviour of a given print
should not depend on state left behind by some previous
one. Neither should it depend on whether the characters
being printed come directly from a string or not.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+