@tornado.gen.coroutine
    def getprop(self, ctx, loctx, key):
        wid = loctx.wid
        iid = loctx.iid
        app = ctx.app
        dependencies = ctx.dependencies
        
        if iid is not None:
            res = yield app.propcache.get(('instanceprop', iid, None, key),
                                          dependencies=dependencies)
            if res:
                return res.val
    
        if True:
            res = yield app.propcache.get(('worldprop', wid, None, key),
                                          dependencies=dependencies)
            if res:
                return res.val

        raise AttributeError('Realm property "%s" is not found' % (key,))
Gets the score of the given ``key`` if it exists or
dataset/ETHPy150Open erkyrath/tworld/lib/two/execute.py/RealmProxy.getprop--crossover with--dataset/ETHPy150Open dahlia/sider/sider/sortedset.py/SortedSet.setdefault