Source

talks / python-gotchas / src / seq.py

Full commit
1
2
3
4
5
items = (str(i) for i in xrange(5))
print(', '.join(items))
# => 0, 1, 2, 3, 4
print(', '.join(items))
# =>