MCPcopy Index your code
hub / github.com/python/cpython / register_function

Method register_function

Lib/xmlrpc/server.py:209–223  ·  view source on GitHub ↗

Registers a function to respond to XML-RPC requests. The optional name argument can be used to set a Unicode name for the function.

(self, function=None, name=None)

Source from the content-addressed store, hash-verified

207 self.allow_dotted_names = allow_dotted_names
208
209 def register_function(self, function=None, name=None):
210 """Registers a function to respond to XML-RPC requests.
211
212 The optional name argument can be used to set a Unicode name
213 for the function.
214 """
215 # decorator factory
216 if function is None:
217 return partial(self.register_function, name=name)
218
219 if name is None:
220 name = function.__name__
221 self.funcs[name] = function
222
223 return function
224
225 def register_introspection_functions(self):
226 """Registers the XML-RPC introspection methods in the system

Callers 7

make_serverFunction · 0.80
http_serverFunction · 0.80
http_multi_serverFunction · 0.80
server.pyFile · 0.80

Calls 1

partialClass · 0.90

Tested by 6

make_serverFunction · 0.64
http_serverFunction · 0.64
http_multi_serverFunction · 0.64