Again: Please hear my plea: print without softspace

Martin Bless m.bless at gmx.de
Fri Mar 5 09:50:50 CET 2004


[Stephen Horne <steve at ninereeds.fsnet.co.uk>]

>Easy solution - write your extender such that it takes the original
>file in the constructor...
>
>  sys.stdout = ExtendedFile (sys.stdout)


Hhm,

>>> import sys
>>> class MyFile(sys.stdout):
...     pass
...
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: file() argument 2 must be string, not tuple
>>>

what do you mean?

mb - Martin Bless




More information about the Python-list mailing list