[Web-SIG] wsgi.errors and close method

Manlio Perillo manlio_perillo at libero.it
Tue Mar 30 10:27:17 CEST 2010

Manlio Perillo ha scritto:
> Hi.
> Some time ago, someone reported me that an application embedded in Nginx
> with my WSGI module failed to execute, since in my implementation the
> wsgi.errors object does not implement the .close method.
> [...]
> Any idea?

Here is the culprit:

So it seems safe, when the Log object used in wsgi.errors is also used
to replace sys.stderr, to just add the closed attribute (but *not* the
close method).

Thanks  Manlio

More information about the Web-SIG mailing list