def _inject_func(func, conn):
name = func.__name__<EOL>if not name in conn.namespace:<EOL><INDENT>if isbuiltin(func):<EOL><INDENT>inject_code = '<STR_LIT>' % (name, name)<EOL><DEDENT>elif isfunction(func):<EOL><INDENT>inject_code = getsource(func)<EOL><DEDENT>conn.execute(inject_code)<EOL><DEDENT>return conn.namespace[name]<EOL>
(internal) injects a function object into a RPyC connection object.