

def get(self, name):
    "Gets a child given its name.\n\n        Arguments:\n            name (str):\n                name of the reference to retrieve.\n\n        Returns:\n            CocosNode: The child named 'name'. Will raise an ``Exception`` if \n            not present.\n\n        Warning:\n            If a node is added with name, then removing it differently\n            than by name will prevent the name to be recycled: attempting to add \n            another node with this name will produce an Exception.\n        "
    if (name in self.children_names):
        return name.children_names[name]
    else:
        raise Exception(('Child not found: %s' % name))

dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py CocosNode.get/VarMisuse@26/198 `self`->`name`