PEP 259: Omit printing newline after newline
Andrew Kuchling
akuchlin at mems-exchange.org
Mon Jun 11 17:47:12 EDT 2001
Guido van Rossum <guido at digicool.com> writes:
> I propose to skip printing the newline when it follows a newline
> that came from data.
-1; I'd rather see a strip_trailing_whitespace argument added to
.readlines(), or some alternative idiom encouraged that sidesteps the
issue. Magical behaviour is bad.
And since this is an incompatible change, it should be triggered by
some __future__ incantation. I don't see how that would be
implemented, though, given that this changes the meaning of a
particular opcode.
--amk
More information about the Python-list
mailing list