MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / ref

Function ref

src/py_class/py_class_impl.py:680–684  ·  view source on GitHub ↗
(arg, suffix = "")

Source from the content-addressed store, hash-verified

678 return "$%s_name%s" % (arg.name, suffix)
679
680 def ref(arg, suffix = ""):
681 if arg.allow_ref:
682 return "&$%s_name%s" % (arg.name, suffix)
683 else:
684 return "$%s_name%s" % (arg.name, suffix)
685
686 def normal(arg, suffix = ""):
687 return "$%s_name%s" % (arg.name, suffix)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected