def __getitem__(self, name):
        'get connection to the named server object'
        try:
            return dict.__getitem__(self, name)
        except __HOLE__:
            # Get information about the requested object.
            methodDict = self.server.objectInfo(name)
            import types
            if isinstance(methodDict, types.StringType):
                raise KeyError(methodDict) # RETURNED VALUE IS ERROR MESSAGE!
            v = XMLRPCClientObject(self, name, methodDict)
            self[name] = v # SAVE THIS OBJECT INTO OUR DICTIONARY
            return v
dataset/ETHPy150Open cjlee112/pygr/pygr/coordinator.py/XMLRPCClient.__getitem__