def __getattribute__(self, name):
        if name in ('__setattr__', '__getattr__', '__delattr__', '_loop', '__curtask__'):
            return object.__getattribute__(self, name)

        if self._loop.is_running():
            return getattr(self.__curtask__, name)
        return getattr(tlocals, name)
Get attribute from current task's space.
dataset/ETHPy150Open klen/muffin/muffin/utils.py/slocal.__getattribute__