code stringlengths 3 6.57k |
|---|
code.fastcall_1(self.space, self, args_w[0]) |
isinstance(code, gateway.BuiltinCode2) |
code.fastcall_2(self.space, self, args_w[0], args_w[1]) |
isinstance(code, gateway.BuiltinCode3) |
isinstance(code, gateway.BuiltinCode4) |
elif (nargs|PyCode.FLATPYCALL) |
isinstance(code, PyCode) |
new_frame.run() |
isinstance(code, gateway.BuiltinCodePassThroughArguments1) |
list(args_w[1:]) |
self.call_args(Arguments(self.space, list(args_w) |
funccall_valuestack(self, nargs, frame) |
self.getcode() |
isinstance(code, gateway.BuiltinCode0) |
code.fastcall_0(self.space, self) |
isinstance(code, gateway.BuiltinCode1) |
code.fastcall_1(self.space, self, frame.peekvalue(0) |
isinstance(code, gateway.BuiltinCode2) |
code.fastcall_2(self.space, self, frame.peekvalue(1) |
frame.peekvalue(0) |
isinstance(code, gateway.BuiltinCode3) |
code.fastcall_3(self.space, self, frame.peekvalue(2) |
frame.peekvalue(1) |
frame.peekvalue(0) |
isinstance(code, gateway.BuiltinCode4) |
code.fastcall_4(self.space, self, frame.peekvalue(3) |
frame.peekvalue(2) |
frame.peekvalue(1) |
frame.peekvalue(0) |
elif (nargs|PyCode.FLATPYCALL) |
isinstance(code, PyCode) |
self._flat_pycall(code, nargs, frame) |
isinstance(code, gateway.BuiltinCodePassThroughArguments1) |
frame.peekvalue(nargs-1) |
frame.make_arguments(nargs-1) |
code.funcrun_obj(self, w_obj, args) |
isinstance(args, ArgumentsFromValuestack) |
frame.make_arguments(nargs) |
self.call_args(args) |
isinstance(args, ArgumentsFromValuestack) |
_flat_pycall(self, code, nargs, frame) |
xrange(nargs) |
frame.peekvalue(nargs-1-i) |
new_frame.run() |
getdict(self) |
self.space.newdict() |
setdict(self, space, w_dict) |
space.is_true(space.isinstance( w_dict, space.w_dict ) |
OperationError( space.w_TypeError, space.wrap("setting function's dictionary to a non-dict") |
space.interp_w(Code, w_code) |
space.is_true(space.isinstance(w_globals, space.w_dict) |
OperationError(space.w_TypeError, space.wrap("expected dict") |
space.is_w(w_name, space.w_None) |
space.str_w(w_name) |
space.is_w(w_argdefs, space.w_None) |
space.unpackiterable(w_argdefs) |
isinstance(code, PyCode) |
len(code.co_freevars) |
space.is_w(w_closure, space.w_None) |
space.is_w(space.type(w_closure) |
OperationError(space.w_TypeError, space.wrap("invalid closure") |
space.unpackiterable(w_closure) |
len(closure_w) |
OperationError(space.w_ValueError, space.wrap("no closure needed") |
OperationError(space.w_ValueError, space.wrap("closure is wrong size") |
space.interp_w(Cell, w_cell) |
space.allocate_instance(Function, w_subtype) |
Function.__init__(func, space, code, w_globals, defs_w, closure, name) |
space.wrap(func) |
descr_function_call(self, __args__) |
self.call_args(__args__) |
descr_function_repr(self) |
self.getrepr(self.space, 'function %s' % (self.name,) |
_freeze_(self) |
isinstance(self.code, BuiltinCode) |
Function._all.get(identifier, self) |
find(identifier) |
staticmethod(find) |
descr_function__reduce__(self, space) |
space.getbuiltinmodule('_pickle_support') |
space.interp_w(MixedModule, w_mod) |
isinstance(code, BuiltinCode) |
mod.get('builtin_function') |
space.newtuple([space.wrap(code.identifier) |
mod.get('func_new') |
space.newtuple([w(cell) |
w(self.name) |
w(self.code) |
nt(self.defs_w[:]) |
nt([new_inst, nt(tup_base) |
nt(tup_state) |
descr_function__setstate__(self, space, w_args) |
space.unpackiterable(w_args) |
space.str_w(w_name) |
space.interp_w(Code, w_code) |
space.is_w(w_closure, space.w_None) |
space.unpackiterable(w_closure) |
space.interp_w(Cell, w_cell) |
space.is_w(w_doc, space.w_None) |
space.is_w(w_func_globals, space.w_None) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.