[ZODB-Dev] List of modified objects

Dieter Maurer dieter at handshake.de
Tue Dec 7 13:30:34 EST 2004


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


More information about the ZODB-Dev mailing list