def __init__(self, f, *a, **kw): super().__init__(f, *a, **kw) self._hp_inherit(self, weakref.proxy(gevent.getcurrent()), sys._getframe())