[Tutor] Proxies/Interceptors for file-like objects

Oxymoron moron.oxy at gmail.com
Thu Feb 19 01:59:31 CET 2009


On Thu, Feb 19, 2009 at 11:51 AM, Emile van Sebille <emile at fenx.com> wrote:
> Oxymoron wrote:
>>
>> I'm trying to intercept one or more methods in file-like objects
>
> Shadowing perhaps?

Neat stuff - but not applicable for me I think:

1. I receive the handle. I need this function in a CGI script for
example, so sys.stdin is already open.
2. I actually need to forward requests to the underlying handle
before/after intercepting, does shadowing in your example allow me to
do that?

-- Kamal


More information about the Tutor mailing list