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

Method __getitem__

Lib/xmlrpc/client.py:825–832  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

823 self.results = results
824
825 def __getitem__(self, i):
826 item = self.results[i]
827 if isinstance(item, dict):
828 raise Fault(item['faultCode'], item['faultString'])
829 elif isinstance(item, list):
830 return item[0]
831 else:
832 raise ValueError("unexpected type in multicall result")
833
834class MultiCall:
835 """server -> an object used to boxcar method calls

Callers

nothing calls this directly

Calls 1

FaultClass · 0.85

Tested by

no test coverage detected