Re: Intercepting printed strings

2008-09-19 Thread Gabriel Genellina
En Fri, 19 Sep 2008 10:37:00 -0300, Robert Dailey <[EMAIL PROTECTED]> escribió: On Fri, Sep 19, 2008 at 4:21 AM, Gabriel Genellina <[EMAIL PROTECTED]>wrote: En Thu, 18 Sep 2008 19:24:26 -0300, Robert Dailey <[EMAIL PROTECTED]> escribió: I'm currently using Python 3.0 b3 and I'm curious as

Re: Intercepting printed strings

2008-09-19 Thread Robert Dailey
On Fri, Sep 19, 2008 at 4:21 AM, Gabriel Genellina <[EMAIL PROTECTED]>wrote: > En Thu, 18 Sep 2008 19:24:26 -0300, Robert Dailey <[EMAIL PROTECTED]> > escribió: > > > I'm currently using Python 3.0 b3 and I'm curious as to how I can go about >> intercepting things send to print() for some interme

Re: Intercepting printed strings

2008-09-19 Thread Gabriel Genellina
En Thu, 18 Sep 2008 19:24:26 -0300, Robert Dailey <[EMAIL PROTECTED]> escribió: I'm currently using Python 3.0 b3 and I'm curious as to how I can go about intercepting things send to print() for some intermediate processing before they're actually sent to sys.stdout. Right now I've thought

Intercepting printed strings

2008-09-18 Thread Robert Dailey
Hi, I'm currently using Python 3.0 b3 and I'm curious as to how I can go about intercepting things send to print() for some intermediate processing before they're actually sent to sys.stdout. Right now I've thought of the following: Replace sys.stdout with a class named PrintStream. PrintStream i