Manlio Perillo wrote: > The WSGI spec requires the response headers and sequence items to be, > respectively, List of Tuples and Strings. > > However only for the response headers it explicitly requires them to be > a Python List, i.e type(response_headers) is ListType. > > What about the other objects? > > In the current implementation of WSGI for Nginx I always use > Py[Type]_Check, and not Py[Type]_CheckExact.
All of the types are required to be exactly as defined, not subclasses or None. But servers are not required to actually test this. wsgiref.validate does test for exactly these types, but it's acceptable for Nginx to just access the data without checking its exact type. -- Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org _______________________________________________ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com