[Web-SIG] WSGI, Python 3 and Unicode

Graham Dumpleton graham.dumpleton at gmail.com
Sat Dec 8 09:37:59 CET 2007

On 08/12/2007, Phillip J. Eby <pje at telecommunity.com> wrote:
> * When running under Python 3, servers MUST provide a text stream for
> wsgi.errors

In Python 3, what happens if user code attempts to output to a text
stream a byte string? Ie., what would be displayed?

Also, if wsgi.errors is a text stream, presume that if a WSGI adapter
has to internally map this to a C char* like API for logging that it
would need to apply standard Python encoding to yield usable char*
string for output.


More information about the Web-SIG mailing list