Steven Bethard wrote:
first, iterable = peek(iterable)
I really like this as a general solution to a problem that bothers me occasionally. IMHO it's much better than having UndoFiles or similar things lying about for every use case.
Thanks! -- Michael Hoffman -- http://mail.python.org/mailman/listinfo/python-list