MCPcopy Index your code
hub / github.com/python/mypy / wrapper_function_call

Method wrapper_function_call

mypyc/codegen/emit.py:405–411  ·  view source on GitHub ↗

Return the C expression for a call to `fn`'s Python-wrapper (CPyPy_) entry. Like `native_function_call`, but for the PyObject-level wrapper that boxes/unboxes arguments. Used from slot generators (tp_init, etc.).

(self, fn: FuncDecl)

Source from the content-addressed store, hash-verified

403 return f"{self.get_group_prefix(fn)}{self.native_function_name(fn)}"
404
405 def wrapper_function_call(self, fn: FuncDecl) -> str:
406 """Return the C expression for a call to `fn`'s Python-wrapper (CPyPy_) entry.
407
408 Like `native_function_call`, but for the PyObject-level wrapper that
409 boxes/unboxes arguments. Used from slot generators (tp_init, etc.).
410 """
411 return f"{self.get_group_prefix(fn)}{PREFIX}{fn.cname(self.names)}"
412
413 def tuple_c_declaration(self, rtuple: RTuple) -> list[str]:
414 result = [

Callers 4

generate_init_for_classFunction · 0.80
generate_new_for_classFunction · 0.80

Calls 2

get_group_prefixMethod · 0.95
cnameMethod · 0.45

Tested by

no test coverage detected