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