Invoking Python from Cygwin problem.

Ant antroy at
Sat Nov 25 14:57:00 CET 2006

Marc 'BlackJack' Rintsch wrote:
> It's a feature.  The `sys.stdout` object remembers if the last ``print``
> ended in a comma (see the `sys.stdout.softspace` attribute) and when the
> interpreter executes its shutdown code and that `softspace` attribute is
> set, an extra '\n' is printed.

So the workaround is to directly write to sys.stdout I guess. Or set
sys.stdout.softspace to 0?


More information about the Python-list mailing list