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

Michael Hoffman m.h.3.9.1.without.dots.at.cam.ac.uk at example.com
Sat Dec 18 07:51:59 EST 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.

Thanks!
-- 
Michael Hoffman



More information about the Python-list mailing list