Exemplo n.º 1
0
 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 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)
Exemplo n.º 3
0
 def goodbye(self):
     AppCoroutine.goodbye(self)
     self.goodbye_local_pool()
Exemplo n.º 4
0
 def hello(self):
     self.hello_local_pool()
     AppCoroutine.hello(self)
Exemplo n.º 5
0
 def newsubctx(self):
     self.hello_local_pool()
     AppCoroutine.newsubctx(self)
     self.goodbye_local_pool()
Exemplo n.º 6
0
 def goodbye(self):
     AppCoroutine.goodbye(self)
     self.goodbye_local_pool()
Exemplo n.º 7
0
 def hello(self):
     self.hello_local_pool()
     AppCoroutine.hello(self)
Exemplo n.º 8
0
 def newsubctx(self):
     self.hello_local_pool()
     AppCoroutine.newsubctx(self)
     self.goodbye_local_pool()