[Web-SIG] Request for Comments on upcoming WSGI Changes
g.brandl at gmx.net
Sun Sep 20 17:29:21 CEST 2009
P.J. Eby schrieb:
>>- Python 3 no longer implicitly converts between unicode and byte
>> strings. This covers comparisons, the regular expression engine,
>> all string functions and many modules in the stdlib.
>>- The Python 3 stdlib radically moved to unicode for non unicode things
>> as well (the http servers, http clients, url handling etc.)
>>- A byte only version of WSGI appears unrealistic on Python 3 because
>> it would require server and middleware implementors to reimplement
>> parts of the standard library to work on bytes again.
> IMO, this strongly suggests that it's the stdlib or Python 3 that's
> broken here. How much of the stdlib are we talking about needing to
> reimplement, aside from cgi.FieldStorage?
FWIW, it's very much possible that the py3k stdlib is broken there. Many
modules were "ported" with the aim "get the test running again", and not
too much thought about bytes/unicode issues.
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
More information about the Web-SIG