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.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to