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