(self)
Raise GeneratorExit inside generator.
Raise GeneratorExit inside generator.
Raise GeneratorExit inside generator .
def close(self):
        """Raise GeneratorExit inside generator.
        """
        try:
            self.throw(GeneratorExit)
        except (GeneratorExit, StopIteration):
            pass
        else:
            raise RuntimeError("generator ignored GeneratorExit")
def close ( self ) : try : self . throw ( GeneratorExit ) except ( GeneratorExit , StopIteration ) : pass else : raise RuntimeError ( "generator ignored GeneratorExit" )