Again: Please hear my plea: print without softspace

Martin Bless mb at muenster.de
Thu Mar 4 15:53:08 EST 2004


[Peter Maas <fpetermaas at netscape.net>]

>instance of file. All he has to do is close the predefined stdout
>and open it again:
>
>sys.stdout.close()
>sys.stdout = MultiArgWriteFile('/dev/tty', 'a')

Telepathy? You already answered part of what I was just going to ask!

And then: Is it possible to reopen sys.stdout if the platform ist not
Unix-like?




More information about the Python-list mailing list