Did I find the right examples for you? yes no

All Samples(21)  |  Call(0)  |  Derive(0)  |  Import(21)

src/c/o/concurrence-HEAD/lib/concurrence/core.py   concurrence(Download)
    #we might be running from CPython, or PyPy
    #try the greenlet based stackless emulation
    import _stackless as stackless
 
if '-Xnogc' in sys.argv:

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/_stackless/test/test_pickle_infrastructure.py   plexnet(Download)
    def test_pickle_switch_function(object):
        import _stackless, pickle
 
        sw = _stackless.coroutine.switch.im_func
        dump = pickle.dumps(sw)
    def test_pickle_switch_function_code(object):
        import _stackless, pickle
 
        sw = _stackless.coroutine.switch.im_func.func_code
        dump = pickle.dumps(sw)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/_stackless/test/test_pickle.py   plexnet(Download)
    def test_pickle_main(self):
        import _stackless, pickle
        main = _stackless.coroutine.getcurrent()
        s = pickle.dumps(main)
        c = pickle.loads(s)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/_stackless/test/test_coroutine.py   plexnet(Download)
    def test_pickle_coroutine_empty(self):
        # this test is limited to basic pickling.
        # real stacks can only tested with a stackless pypy build.
        import _stackless as stackless
        co = stackless.coroutine()
    def test_pickle_coroutine_bound(self):
        import pickle
        import _stackless
        lst = [4]
        co = _stackless.coroutine()
    def test_raise_propagate(self):
        import _stackless as stackless
        co = stackless.coroutine()
        def f():
            return 1/0
    def test_kill(self):
        import _stackless as stackless
        co = stackless.coroutine()
        def f():
            pass
    def test_kill_running(self):
        skip("kill is not really working (there is only CoroutineExit, "
             "which is not an app-level exception)")
        import _stackless as stackless
        main = stackless.coroutine.getcurrent()

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/_stackless/test/test_composable_coroutine.py   plexnet(Download)
    def test_simple_costate(self):
        import _stackless
        costate = _stackless.usercostate()
        main = costate.getcurrent()
 
        """
 
        import _stackless
        generator = self.generator
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/_stackless/test/test_clonable.py   plexnet(Download)
    def test_solver(self):
        import _stackless
 
        class Fail(Exception):
            pass
    def test_fork(self):
        import _stackless
 
        class Fail(Exception):
            pass
        (this used to fail with a segmentation fault)
        """
        import _stackless
 
        counter = [0]

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/_stackless/test/slp_test_pickle.py   plexnet(Download)
    def test_simple_ish(self):
 
        output = []
        import _stackless
        def f(coro, n, x):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/module/_rawffi/test/test__rawffi.py   plexnet(Download)
    def test_another_callback_in_stackless(self):
        try:
            import _stackless
        except ImportError:
            skip("only valid in a stackless pypy-c")

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/lib/app_test/test_coroutine.py   plexnet(Download)
    def test_is_zombie_del_without_frame(self):
        try:
            import _stackless # are we on pypy with a stackless build?
        except ImportError:
            skip("only works on pypy-c-stackless")
    def test_is_zombie_del_with_frame(self):
        try:
            import _stackless # are we on pypy with a stackless build?
        except ImportError:
            skip("only works on pypy-c-stackless")