Did I find the right examples for you? yes no

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

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/interpreter/baseobjspace.py   plexnet(Download)
            expression = compile(expression, '?', 'eval')
        if isinstance(expression, types.CodeType):
            expression = PyCode._from_code(self, expression,
                                          hidden_applevel=hidden_applevel)
        if not isinstance(expression, PyCode):
            statement = compile(statement, '?', 'exec')
        if isinstance(statement, types.CodeType):
            statement = PyCode._from_code(self, statement,
                                          hidden_applevel=hidden_applevel)
        if not isinstance(statement, PyCode):

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/tl/spli/pycode.py   plexnet(Download)
    def _from_code(cls, space, code, hidden_applevel=False, code_hook=None):
        pyco = pycode.PyCode._from_code(space, code, code_hook=cls._from_code)
        return cls(pyco.co_argcount, pyco.co_nlocals, pyco.co_stacksize,
                   pyco.co_code, pyco.co_consts_w,
                   [name.as_str() for name in pyco.co_names_w])

src/s/y/Sypy-HEAD/jit/tl/spli/pycode.py   Sypy(Download)
    def _from_code(cls, space, code, hidden_applevel=False, code_hook=None):
        pyco = pycode.PyCode._from_code(space, code, code_hook=cls._from_code)
        return cls(pyco.co_argcount, pyco.co_nlocals, pyco.co_stacksize,
                   pyco.co_code, pyco.co_consts_w,
                   [name.as_str() for name in pyco.co_names_w])

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/flow/objspace.py   plexnet(Download)
            # generator
            raise TypeError("%r is a generator" % (func,))
        code = PyCode._from_code(self, code)
        if func.func_closure is None:
            closure = None

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/interpreter/pycompiler.py   plexnet(Download)
            raise OperationError(space.w_TypeError, space.wrap(str(e)))
        from pypy.interpreter.pycode import PyCode
        return PyCode._from_code(space, c)
    compile._annspecialcase_ = "override:cpy_compile"
 

src/s/y/Sypy-HEAD/objspace/flow/objspace.py   Sypy(Download)
        code = func.func_code
        is_generator = bool(code.co_flags & CO_GENERATOR)
        code = PyCode._from_code(self, code)
        if func.func_closure is None:
            cl = None

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/interpreter/test/test_function.py   plexnet(Download)
    def setup_method(self, method):
        def c(self, bar):
            return bar
        code = PyCode._from_code(self.space, c.func_code)
        self.fn = Function(self.space, code, self.space.newdict())
    def test_method_get(self):
        space = self.space
        # Create some function for this test only
        def m(self): return self
        func = Function(space, PyCode._from_code(self.space, m.func_code),
            f = d['f']
            res = f(*range(i))
            code = PyCode._from_code(self.space, f.func_code)
            fn = Function(self.space, code, self.space.newdict())
 
        def f(a):
            return a
        code = PyCode._from_code(self.space, f.func_code)
        fn = Function(self.space, code, self.space.newdict())
 
        def f(self, a):
            return a
        code = PyCode._from_code(self.space, f.func_code)
        fn = Function(self.space, code, self.space.newdict())
 

src/s/y/Sypy-HEAD/interpreter/test/test_function.py   Sypy(Download)
    def setup_method(self, method):
        def c(self, bar):
            return bar
        code = PyCode._from_code(self.space, c.func_code)
        self.fn = Function(self.space, code, self.space.newdict())
    def test_method_get(self):
        space = self.space
        # Create some function for this test only
        def m(self): return self
        func = Function(space, PyCode._from_code(self.space, m.func_code),
            f = d['f']
            res = f(*range(i))
            code = PyCode._from_code(self.space, f.func_code)
            fn = Function(self.space, code, self.space.newdict())
 
        def f(a):
            return a
        code = PyCode._from_code(self.space, f.func_code)
        fn = Function(self.space, code, self.space.newdict())
 
        def f(self, a):
            return a
        code = PyCode._from_code(self.space, f.func_code)
        fn = Function(self.space, code, self.space.newdict())
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/flow/test/test_framestate.py   plexnet(Download)
            pass
        code = func.func_code
        code = PyCode._from_code(self.space, code)
        w_globals = Constant({}) # space.newdict()
        frame = self.space.createframe(code, w_globals)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/interpreter/astcompiler/test/test_compiler.py   plexnet(Download)
        co_expr = compile(evalexpr, '<evalexpr>', 'eval')
        space = self.space
        pyco_expr = PyCode._from_code(space, co_expr)
        w_res = pyco_expr.exec_code(space, w_dict, w_dict)
        res = space.str_w(space.repr(w_res))

  1 | 2  Next