Re: [Web-SIG] app iterable containing non-strings

2007-12-15 Thread Adam Atlas
The spec says "Regardless of how it is accomplished, the application object must always return an iterable yielding zero or more strings." The "must" means that anything else should be considered an error (I think). If your middleware does anything to the iterated strings, then you'll have

[Web-SIG] app iterable containing non-strings

2007-12-15 Thread Ionel Maries Cristian
I was reading the wsgi spec and i was wondering how should middleware treat the iterable that happens to contain values that aren't strings (and I'm not talking about unicodes) - the spec isn't explicit on this. If middleware would just pass on values that aren't string instances - this could be a