Did I find the right examples for you? yes no

All Samples(53)  |  Call(53)  |  Derive(0)  |  Import(0)
Request that a generator exit.

src/z/c/zc.ngi-2.0.1/src/zc/ngi/generator.py   zc.ngi(Download)
    def handle_close(self, connection, reason):
        try:
            self.gen.throw(GeneratorExit, GeneratorExit(reason))
        except (GeneratorExit, StopIteration):
            pass

src/o/p/openerp-core-7.0.406/openerp/report/report_sxw.py   openerp-core(Download)
    def removeParentNode(self, tag=None):
        raise GeneratorExit('Skip')
 
    def set_html_image(self,id,model=None,field=None,context=None):
        if not id :

src/a/s/asyncoro-HEAD/asyncoro.py   asyncoro(Download)
        elif coro._state == AsynCoro._Running:
            logger.warning('coroutine to terminate %s/%s is running', coro._name, cid)
        coro._exceptions.append((GeneratorExit, GeneratorExit('close')))
        coro._timeout = None
        coro._state = AsynCoro._Scheduled

src/d/i/dispy-HEAD/asyncoro.py   dispy(Download)
        elif coro._state == AsynCoro._Running:
            logger.warning('coroutine to terminate %s/%s is running', coro.name, cid)
        coro._exceptions.append((GeneratorExit, GeneratorExit('close')))
        coro._timeout = None
        coro._state = AsynCoro._Scheduled

src/n/e/netcall-0.3.7/netcall/base_client.py   netcall(Download)
                    result = StopIteration()
                elif error['ename'] == 'GeneratorExit':
                    result = GeneratorExit()
                else:
                    result = RemoteRPCError(error['ename'], error['evalue'], error['traceback'])

src/s/l/SlopPy-HEAD/Lib/test/test_with.py   SlopPy(Download)
        def shouldThrow():
            with cm():
                raise GeneratorExit("from with")
 
        self.assertRaises(GeneratorExit, shouldThrow)
        def shouldThrow():
            with cm():
                raise GeneratorExit("from with")
 
        self.assertRaises(GeneratorExit, shouldThrow)

src/t/r/TrustRouter-HEAD/client/packaging/Windows/Python32/Lib/test/test_with.py   TrustRouter(Download)
        def shouldThrow():
            with cm():
                raise GeneratorExit("from with")
 
        self.assertRaises(GeneratorExit, shouldThrow)
        def shouldThrow():
            with cm():
                raise GeneratorExit("from with")
 
        self.assertRaises(GeneratorExit, shouldThrow)

src/p/y/pytaint-HEAD/Python-2.7.5-pytaint/Lib/test/test_with.py   pytaint(Download)
        def shouldThrow():
            with cm():
                raise GeneratorExit("from with")
 
        self.assertRaises(GeneratorExit, shouldThrow)
        def shouldThrow():
            with cm():
                raise GeneratorExit("from with")
 
        self.assertRaises(GeneratorExit, shouldThrow)

src/s/t/static-python-HEAD/Lib/test/test_with.py   static-python(Download)
        def shouldThrow():
            with cm():
                raise GeneratorExit("from with")
 
        self.assertRaises(GeneratorExit, shouldThrow)
        def shouldThrow():
            with cm():
                raise GeneratorExit("from with")
 
        self.assertRaises(GeneratorExit, shouldThrow)

src/p/l/plexnet-HEAD/third_party/generic/pypy/lib-python/2.5.2/test/test_with.py   plexnet(Download)
        def shouldThrow():
            with cm():
                raise GeneratorExit("from with")
 
        self.assertRaises(GeneratorExit, shouldThrow)
        def shouldThrow():
            with cm():
                raise GeneratorExit("from with")
 
        self.assertRaises(GeneratorExit, shouldThrow)

  1 | 2 | 3  Next