title: ord() expected string of length 1, but int found
body: <p>I receive a byte-array buffer from network, containing many fields. When I want to print the buffer, I get the following error:</p>
  
  <blockquote>
    <p>(:ord() expected string of length 1, int
    found</p>
  </blockquote>
  
  <pre><code> print(" ".join("{:02X}".format(ord(c)) for c in buf))
  </code></pre>
  
  <p>How can I fix this?</p>