Пример #1
0
 def YIELD_VALUE(self, _):
     assert self.pycode.is_generator
     w_result = self.popvalue()
     op.yield_(w_result).eval(self)
     # XXX yield expressions not supported. This will blow up if the value
     # isn't popped straightaway.
     self.pushvalue(None)
Пример #2
0
 def YIELD_VALUE(self, _):
     assert self.pycode.is_generator
     w_result = self.popvalue()
     op.yield_(w_result).eval(self)
     # XXX yield expressions not supported. This will blow up if the value
     # isn't popped straightaway.
     self.pushvalue(None)