コード例 #1
0
ファイル: test_transform.py プロジェクト: alkorzt/pypy
 def stuff(m):
     if m > 100:
         raise KeyError
     a = A()
     rstack.stack_unwind()
     a.m = m + 5
     return a
コード例 #2
0
 def stuff(m):
     if m > 100:
         raise KeyError
     a = A()
     rstack.stack_unwind()
     a.m = m + 5
     return a
コード例 #3
0
ファイル: test_resume_point.py プロジェクト: xx312022850/pypy
 def switch(self):
     rstack.stack_unwind()
     return FakeSlpFrame()
コード例 #4
0
ファイル: test_resume_point.py プロジェクト: xx312022850/pypy
 def f(x, y):
     x = x - 1
     rstack.resume_point("rp0", x, y)
     r = x + y
     rstack.stack_unwind()
     return r
コード例 #5
0
 def check(x):
     if x:
         rstack.stack_unwind()
コード例 #6
0
 def g():
     f1 = getf()
     for i in range(5):
         rstack.stack_unwind()
     return f1
コード例 #7
0
def my_callback(n):
    try:
        rstack.stack_unwind()
    except RuntimeError:
        return -20
    return n * 10
コード例 #8
0
ファイル: test_stackless.py プロジェクト: antoine1fr/pygirl
 def f():
     stack_unwind()
     return 42
コード例 #9
0
ファイル: test_stackless.py プロジェクト: e2pluginss/plexnet
 def f():
     stack_unwind()
     return 42
コード例 #10
0
ファイル: test_callback.py プロジェクト: alkorzt/pypy
def my_callback(n):
    try:
        rstack.stack_unwind()
    except RuntimeError:
        return -20
    return n * 10
コード例 #11
0
 def switch(self):
     rstack.stack_unwind()
     return FakeSlpFrame()
コード例 #12
0
 def f(x, y):
     x = x-1
     rstack.resume_point("rp0", x, y) 
     r = x+y
     rstack.stack_unwind()
     return r
コード例 #13
0
ファイル: test_transform.py プロジェクト: alkorzt/pypy
 def check(x):
     if x:
         rstack.stack_unwind()
コード例 #14
0
ファイル: test_transform.py プロジェクト: alkorzt/pypy
 def g():
     f1 = getf()
     for i in range(5):
         rstack.stack_unwind()
     return f1
コード例 #15
0
ファイル: ll_stack.py プロジェクト: TheDunn/flex-pypy
def ll_stack_unwind():
    rstack.stack_unwind()