title: Python - numpy.loadtxt how to ignore end commas?
body: <p>I'm trying to read in a file that looks like this:</p>
  
  <pre><code>1, 2,
  3, 4,
  </code></pre>
  
  <p>I'm using the following line:</p>
  
  <pre><code>l1,l2 = numpy.loadtxt('file.txt',unpack=True,delimiter=', ')
  </code></pre>
  
  <p>This gives me an error because the end comma in each row is lumped together as the last element (e.g. "2" is read as "2,"). Is there a way to ignore the last comma in each row, with loadtxt or another function?</p>