Invoking Python from Cygwin problem.
Ant
antroy at gmail.com
Sat Nov 25 08:57:00 EST 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?
Cheers.
More information about the Python-list
mailing list