A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-June/015357.html below:

Omit printing newline after newline

[Python-Dev] PEP 259: Omit printing newline after newline [Python-Dev] PEP 259: Omit printing newline after newlineGreg 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	   +--------------------------------------+



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4