> How does one write generators in C, or does one not? One does not. Instead, just implement a function that returns an iterator. Python applications cannot tell the difference between an iterator and the result of calling a generator. Regards, Martin