Esempio n. 1
0
 def stuff(m):
     if m > 100:
         raise KeyError
     a = A()
     rstack.stack_unwind()
     a.m = m + 5
     return a
Esempio n. 2
0
 def stuff(m):
     if m > 100:
         raise KeyError
     a = A()
     rstack.stack_unwind()
     a.m = m + 5
     return a
Esempio n. 3
0
 def switch(self):
     rstack.stack_unwind()
     return FakeSlpFrame()
Esempio n. 4
0
 def f(x, y):
     x = x - 1
     rstack.resume_point("rp0", x, y)
     r = x + y
     rstack.stack_unwind()
     return r
Esempio n. 5
0
 def check(x):
     if x:
         rstack.stack_unwind()
Esempio n. 6
0
 def g():
     f1 = getf()
     for i in range(5):
         rstack.stack_unwind()
     return f1
Esempio n. 7
0
def my_callback(n):
    try:
        rstack.stack_unwind()
    except RuntimeError:
        return -20
    return n * 10
Esempio n. 8
0
 def f():
     stack_unwind()
     return 42
Esempio n. 9
0
 def f():
     stack_unwind()
     return 42
Esempio n. 10
0
def my_callback(n):
    try:
        rstack.stack_unwind()
    except RuntimeError:
        return -20
    return n * 10
Esempio n. 11
0
 def switch(self):
     rstack.stack_unwind()
     return FakeSlpFrame()
Esempio n. 12
0
 def f(x, y):
     x = x-1
     rstack.resume_point("rp0", x, y) 
     r = x+y
     rstack.stack_unwind()
     return r
Esempio n. 13
0
 def check(x):
     if x:
         rstack.stack_unwind()
Esempio n. 14
0
 def g():
     f1 = getf()
     for i in range(5):
         rstack.stack_unwind()
     return f1
Esempio n. 15
0
def ll_stack_unwind():
    rstack.stack_unwind()