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