title: append adding contents to first list item, not adding new items to list
body: <pre><code>def gen(filename):
      result=[]
      with open(filename) as sample:
          for line in sample.read().splitlines():
              for ch in line.split():                
                  result.append(ch)
                  yield ch
  return result
  </code></pre>
  
  <p>If i pass in "ABCDEF", i get ["ABCDEF"] back in result, instead of ["A","B","C","D","E","F"]</p>
  
  <p>What could be the problem?</p>
  
  <p>Also, am i using the generator correctly? If not, what am i doing wrong? I am close to grasping the concept, but i am not quite there yet and feel that adding a list might be making the generator counterproductive</p>
  
  <p>EDIT: Here is how i am opening the file:</p>
  
  <pre><code>with filled_filename("ABCDEF") as fn:
          self.assertEqual(list(project.gen(f)), ["A","B","C","D","E","F"])
          print(list(project.gen(ff)))
  </code></pre>