MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / __getitem__

Method __getitem__

suds/client.py:513–525  ·  view source on GitHub ↗

Get a method by name and return it in an I{execution wrapper}. @param name: The name of a method. @type name: str @return: An I{execution wrapper} for the specified method name. @rtype: L{Method}

(self, name)

Source from the content-addressed store, hash-verified

511 return self[name]
512
513 def __getitem__(self, name):
514 """
515 Get a method by name and return it in an I{execution wrapper}.
516 @param name: The name of a method.
517 @type name: str
518 @return: An I{execution wrapper} for the specified method name.
519 @rtype: L{Method}
520 """
521 m = self.__methods.get(name)
522 if m is None:
523 qn = '.'.join((self.__qn, name))
524 raise MethodNotFound(qn)
525 return Method(self.__client, m)
526
527
528class Method:

Callers

nothing calls this directly

Calls 3

MethodNotFoundClass · 0.90
MethodClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected