On Thu, Feb 19, 2009 at 11:51 AM, Emile van Sebille <em...@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 _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor