title: ValueError: invalid literal for int() with base 10: '\x00\x00\x00\x00\x00\x00\x00\x00\
body: <p>I have a list of lists obtained from several text files which were the outputs of a C program.</p>
  
  <p><code>r = [['4', '5', '10'], ['11', '12', '13'], ['0', '17', '26'], ['1', '10', ' ....]</code></p>
  
  <p>I tried to convert all the str values into int with a simple loop : </p>
  
  <pre><code>for i in range(len(r)):
      for j in range(len(r[i])):
          r[i][j] = np.int(r[i][j])
  </code></pre>
  
  <p>This error were raised :</p>
  
  <blockquote>
    <p>ValueError: invalid literal for int() with base 10: '\x00\x00\x00\x00\x00</p>
  </blockquote>
  
  <p>and it converted the beginning of the values into int then there is a sequence of <code>\x00\x00\x00\x00\x00\x00\x00\x00\x00\</code> and the rest of the list did not get converted into int . Does someone know what's happening here ?</p>