It is clear now that tee() is a fundamental building block and that a C implementation has decisive advantages over its pure python counterpart. So ... tee() will become a standard itertools function in Py2.4. Raymond Hettinger