Re: Porting 2.x to 3.3: BaseHTTPServer

Discussion in 'Python' started by Serhiy Storchaka, Apr 21, 2013.

  1. 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
    Serhiy Storchaka, Apr 21, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Molly
    Replies:
    0
    Views:
    517
    Molly
    Aug 25, 2003
  2. Joshua W. Biagio
    Replies:
    0
    Views:
    594
    Joshua W. Biagio
    Sep 30, 2003
  3. Yin
    Replies:
    1
    Views:
    399
    Eddie Corns
    Jan 26, 2004
  4. David
    Replies:
    1
    Views:
    877
    Christos TZOTZIOY Georgiou
    Jul 28, 2004
  5. Chris Angelico

    Porting 2.x to 3.3: BaseHTTPServer

    Chris Angelico, Apr 21, 2013, in forum: Python
    Replies:
    2
    Views:
    112
    Chris Angelico
    Apr 21, 2013
Loading...

Share This Page