'else' clause in 'for' and 'while'

Ville Vainio vvainio at tp.spt.fi
Thu Jun 20 05:07:36 EDT 2002


How do you people use the else clause in for and while constructs? Are
they used widely for some specific applications? Do they offer
elegant, idiomatic solutions to some problems?

I haven't found any use for them yet myself, but knowing that they
exist and still not using them troubles me, core python being quite
'small' after all.

-- Ville



More information about the Python-list mailing list