title: How to make a Python string out of non-ascii "bytes"
body: <p>I need to create a Python string consisting of non-ascii bytes to be used as a command buffer in a C module.
  I can do that if I write the string by hand:</p>
  
  <pre><code>mybuffer = "\x00\x00\x10"
  </code></pre>
  
  <p>But I cannot figure out how to create the string on the fly if I have a set of integers which will become the bytes in the string. Concatenating an integer with a string is a TypeError.</p>
  
  <p>So if I have a list of integers lets say:</p>
  
  <pre><code>myintegers = [1, 2, 3, 10]
  </code></pre>
  
  <p>How can I convert that into a string <code>"\x01\x02\x03\x0A"</code></p>
  
  <p>I am using Python 2.6.</p>