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

Class TestInstanceClass

Lib/test/test_xmlrpc.py:613–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

http_serverFunction · 0.85

Calls

no outgoing calls

Tested by 1

http_serverFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…