[Web-SIG] WSGI for Python 3
William Dode
wilk at flibuste.net
Sat Jul 17 17:24:35 CEST 2010
On 17-07-2010, chris.dent at gmail.com wrote:
> On Fri, 16 Jul 2010, P.J. Eby wrote:
>
>> At 02:28 PM 7/16/2010 -0500, Ian Bicking wrote:
>> There should be one, and preferably *only* one, obvious way to do it.
>>
>> And given that HTTP is inherently a bunch of bytes, bytes is the one obvious
>> way.
>
> I think this makes sense. The thing which is assembling the WSGI
> environment should do bytes and things further down the stack can
> deal with it as they like. This aligns well with how I like to think
> about such stuff: bytes on the outside, unicode on the inside.
>
> Given that app and frameworks developers can throw whatever keys
> they like back into the environment, they can cope as they like.[1]
>
> What would be horrible is if there need to be multiple coping
> strategies. Better to be able to say, "Oh it doesn't work? Try this
> way to cope: remember it is bytes."
This thread is difficult to follow, but this make sense to me also. KISS
--
William Dodé - http://flibuste.net
Informaticien Indépendant
More information about the Web-SIG
mailing list