Tim Peters wrote at 2004-12-6 14:04 -0500: > ... >3. Efficiently determine whether anything is available: > > something_exists = False > for thing in it: > something_exists = True > break This looks like a very convoluted way... Four lines of code instead of a simple function call -- and probably with a side effect. -- Dieter