Example #1
0
 def unwind():
     yield am.pop_block()
     exc = yield am.pop_exception(must=True)
     py_none = yield from RT.py_none()
     yield am.push(py_none)
     yield am.push(exc)
     yield am.push(py_none)
Example #2
0
 def unwind():
     yield am.pop_block()
Example #3
0
 def unwind():
     # python 'with' block exits with a pushed 'None'
     yield am.pop()
     yield am.pop_block()
     yield from RT.py_exit(var)