On Saturday, July 17, 2010, Antoine Pitrou <solip...@pitrou.net> wrote: > Ian Bicking <i...@...> writes: >> >> So... there's been some discussion of WSGI on Python 3 lately. >> I'm not feeling as pessimistic as some people, I feel like we were close >> but just didn't *quite* get there. >> Here's my thoughts: >> * Everyone agrees keys in the environ should be native strings > > I don't know how that related to WSGI but it should be noted that Python 3.2 > comes with two synchronized views of the environment: os.environ (str -> str > mapping) and os.environb (bytes -> bytes mapping). > > See http://docs.python.org/dev/library/os.html#os.environ > > Also, the way os.environ is decoded from bytes values involves the > "surrogateescape" error handler, which ensures that non-decodeable bytes get > their own unicode escape sequences, and can get re-encoded losslessly: > > http://www.python.org/dev/peps/pep-0383/
Only relevant to the extent it is needed for implementing a CGI/WSGI bridge. Not relevant to WSGI itself. Graham _______________________________________________ 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