title: What data type is data received from a UDP server in python
body: <p>So, if I have a server set up like this:</p>
  
  <pre><code>class Server():
      def __init__(self, portNum):
          self.sock = None
          self.setup(portNum)
  
  
      def setup(self, portNum):
          # Create a UDP socket
          self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  
          # Bind the socket to the port
          server_address = ('localhost', portNum)
          print &gt;&gt; sys.stderr, 'starting up on %s port %s' % server_address
          self.sock.bind(server_address)
  
  
      def run(self):
          while True:
              print &gt;&gt;sys.stderr, '\nwaiting to receive message'
              request, address = self.sock.recvfrom(4096)
  
              print &gt;&gt;sys.stderr, 'received %s bytes from %s' % (len(request),    address)
              print &gt;&gt;sys.stderr, request
  </code></pre>
  
  <p>What is the data type of request? If I were to receive a packet, what would i get if I said print request[1]. Would that be a whole byte, or just one character of a byte string?</p>