Archive for April, 2010
As any good python developer does, I make heavy use of python’s iterator protocol. It’s easy, it’s efficient, it’s a good thing. As you know, an iterator consumes an iterable piece by piece each time “next” is called — which means that the next value cannot be peeked without incrementing the iterator (thus consuming the [ READ MORE ]