title: TypeError: decoding str is not supported (converting bytes into str)
body: <p>I have this code</p>
  
  <pre><code>def run(self):
      while True:
          c, a = self.sock.accept()
          print(c)
          name = c.recv(1024)
          people = ""
          self.name_list.append(str(name, 'utf-8'))
          num_g = len(self.name_list)
          c.send(bytes(str(num_g), 'utf-8'))
          print((str(num_g)))
  
          data = str(c.recv(1024), 'utf-8')
          print(data)
          if str(data) == "ok":
              for name in self.name_list:
                  print(name)
                  c.send(bytes(name, 'utf-8'))
          print(len(self.name_list))
          print(strftime("%Y-%m-%d %H:%M:%S", gmtime())+" "+str(name, 'utf-8')+ " is connected")
  </code></pre>
  
  <p>and i get this error</p>
  
  <pre><code>    File "./server.py", line 51, in run
      print(strftime("%Y-%m-%d %H:%M:%S", gmtime())+" "+str(name, 'utf-8')+ " is connected")
  TypeError: decoding str is not supported
  </code></pre>
  
  <p>i don't understand why i get this error. when i receive the bytes from connection,</p>
  
  <pre><code>name = c.recv(1024)
  </code></pre>
  
  <p>the name is in bytes, that's why i tried to make it string when i print that line</p>