[Python-Dev] RE: PEP 259: Omit printing newline after newline
Tue, 12 Jun 2001 12:55:27 +0200
> > In order to avoid having to add yet another magic variable to file
> > objects, I propose to give the existing 'softspace' variable an
> > extra meaning: a negative value will mean "the last data written
> > ended in a newline so no space *or* newline is required."
> Better another magic variable than a magic value for an old one, I think.
many file-like C types (e.g. cStringIO) already have special code
to deal with a softspace integer attribute.