Troubleshooting: re.finditer() creates object even when no match found

Michael Hoffman at
Sat Dec 18 13:51:59 CET 2004

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.

Michael Hoffman

More information about the Python-list mailing list