From: Stephen Waits Date: 2006-03-08T03:29:22+09:00 Subject: Re: How to capture eval's stdout in 1.8? Stephen Waits wrote: > 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 > Hmm.. I still haven't found the right solution. I'm starting to worry that this might not be possible in 1.8! --Steve