Porting 2.x to 3.3: BaseHTTPServer

Serhiy Storchaka storchaka at gmail.com
Sun Apr 21 14:01:50 EDT 2013


21.04.13 16:46, Chris Angelico написав(ла):
> Also, it's expecting bytes everywhere, and I can't find a simple way
> to declare an encoding and let self.wfile.write() accept str. Do I
> have to explicitly encode everything that I write, or is there a
> cleaner way?

io.TextIOWrapper





More information about the Python-list mailing list