

def __new__(cls, link, core, *args, **kwargs):
    "New decides whether we need a new instance or whether it's\n        already in the id_map of the core"
    if core.is_cached(link):
        return core.get_cached(link.uri)
    else:
        return super(HALNavigatorBase, cls).__new__(cls)

dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py HALNavigatorBase.__new__/original