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