title: "unicode argument without an encoding" when adding a byte to bytearray using extend
body: <p>I'm trying to build a bytearray out of a binary file as follows:</p>
  
  <pre><code>myArr = bytearray()
  with open(r"C:\Users\User\MyFileName.bin", "rb") as f:
          byte = f.read(1)
          while byte:
              myArr.extend(byte)
              byte = f.read(1)
  </code></pre>
  
  <p>This results in:</p>
  
  <pre><code>Traceback (most recent call last):
    File "myScriptName.py", line 20, in testByteParsing
      myArr.extend(byte)
  TypeError: unicode argument without an encoding
  </code></pre>
  
  <p>What is wrong in the above?</p>
  
  <p>FWIW, I'm using IronPython</p>