title: converting large int list to byte string python
body: <p>I need to convert int list into a byte string but I don't know how. I can't use <code>bytes()</code> because the values are too large.</p>
  
  <pre><code>bytes([152710136, 76354857, 38177353, 2252736081, 1126368238])
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>ValueError: bytes must be in range(0, 256)
  </code></pre>
  
  <p>The expected value is:</p>
  
  <pre><code>b'\xc4\xb7\x86\x17\xcd'
  </code></pre>