title: Python: convert list to generator
body: <p>Say I have a list</p>
  
  <pre><code>data = []
  data.append("A")
  data.append("B")
  data.append("C")
  data.append("D")
  </code></pre>
  
  <p>How do I convert this to a generator?
  Any help with sample code would be highly appreciated...</p>
  
  <p>Found a URL: <a href="http://eli.thegreenplace.net/2012/04/05/implementing-a-generatoryield-in-a-python-c-extension/" rel="noreferrer">http://eli.thegreenplace.net/2012/04/05/implementing-a-generatoryield-in-a-python-c-extension/</a></p>
  
  <p>Is this what I want to do?</p>