S
Stephen Waits
My searches have come up empty, and most of what I found refers to 1.6
(assigning $defout to a StringIO instance).
However, under 1.8 this doesn't work because:
a) assignment to $stdout (which deprecates $defout) is deprecated
b) $stdout.reopen( StringIO ) doesn't work as reopen expects a true IO
instance
And, for that matter, I couldn't even get it to redirect to a File.
Seems like it should be easy.. anyone?
Thanks,
Steve
(assigning $defout to a StringIO instance).
However, under 1.8 this doesn't work because:
a) assignment to $stdout (which deprecates $defout) is deprecated
b) $stdout.reopen( StringIO ) doesn't work as reopen expects a true IO
instance
And, for that matter, I couldn't even get it to redirect to a File.
Seems like it should be easy.. anyone?
Thanks,
Steve