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