Co-routines

Sean Ross frobozz_electric at hotmail.com
Thu Jul 17 11:14:42 EDT 2003


>     def _done(self):
>         return not [f for f in (f1,f2) if f.hasnext()]

# that should have been
def _done(self):
        return not [f for f in self.steppers if f.hasnext()]






More information about the Python-list mailing list