It would be a lot simpler if it was included in the distribution. I would be willing to add it (even though it is completely trivial). I think it would go fine in itertools (I would even put them as builtins, but I'm not going to go there because probably not everyone uses it as often as I do).
What do people think? I have never done this, would I just write up a PEP?
I've posted a question to py-dev about it. If Raymond (the itertools maintainer) is supportive, then a PEP may not be needed. If not. . . yeah, a PEP would probably be required.
Cheers, Nick.
-- Nick Coghlan | [EMAIL PROTECTED] | Brisbane, Australia --------------------------------------------------------------- http://boredomandlaziness.skystorm.net -- http://mail.python.org/mailman/listinfo/python-list