[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:
http://lists.alioth.debian.org/pipermail/python-modules-team/2009-January/003514.html
http://code.google.com/p/modwsgi/issues/detail?id=82

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