My first attempt at subclassing....Gahh!
john at grulic.org.ar
Tue Sep 14 20:18:58 CEST 2004
On Tue, Sep 14, 2004 at 10:08:25AM +0200, Alex Martelli wrote:
> Robin Siebler <robin.siebler at palmsource.com> wrote:
> > I want to use filecmp.dircmp, but it only prints to the screen, there
> > is no way to capture the output. So I thought that I should simply be
> Il prints to sys.stdout, which may be the screen or elsewhere, therefore
> there IS of course a way to capture the output:
> import sys, filecmp, cStringIO
> save_stdout = sys.stdout
I believe sys.__stdout__ is there for the purpose of not having to
'save' sys.stdout in this way.
John Lenton (john at grulic.org.ar) -- Random fortune:
Q: "What is the burning question on the mind of every dyslexic
A: "Is there a dog?"
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 196 bytes
Desc: Digital signature
More information about the Python-list