def w_spawn(self, w_subtype=None): space = self.costate.space if space.is_w(w_subtype, space.w_None): w_subtype = space.gettypeobject(AppCoroutine.typedef) co = space.allocate_instance(AppCoroutine, w_subtype) AppCoroutine.__init__(co, space, state=self.costate) return space.wrap(co)
def goodbye(self): AppCoroutine.goodbye(self) self.goodbye_local_pool()
def hello(self): self.hello_local_pool() AppCoroutine.hello(self)
def newsubctx(self): self.hello_local_pool() AppCoroutine.newsubctx(self) self.goodbye_local_pool()