title: Python 3 to_bytes function shows wrong result
body: <p>I'm trying use the <code>to_bytes</code> function. In most cases it works good for me but not always. For example:</p>
  
  <pre><code>byteData = (212168254).to_bytes(4,'big')
  print (byteData)
  </code></pre>
  
  <p>print should give me <code>b'\x0c\xa5\x6e\x3e'</code> but it gives me <code>b'\x0c\xa5n&gt;'</code>. Why is that?</p>