MCPcopy Index your code
hub / github.com/RustPython/RustPython / TestInstanceClass

Class TestInstanceClass

Lib/test/test_xmlrpc.py:616–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614# the event after it has been set the first time to catch the second set.
615def http_server(evt, numrequests, requestHandler=None, encoding=None):
616 class TestInstanceClass:
617 def div(self, x, y):
618 return x // y
619
620 def _methodHelp(self, name):
621 if name == 'div':
622 return 'This is the div function'
623
624 class Fixture:
625 @staticmethod
626 def getData():
627 return '42'
628
629 class MyXMLRPCServer(xmlrpc.server.SimpleXMLRPCServer):
630 def get_request(self):

Callers 1

http_serverFunction · 0.85

Calls

no outgoing calls

Tested by 1

http_serverFunction · 0.68