Exemplo n.º 1
0
 def f():
     rstack.stack_frames_depth()
     rstack.set_stack_depth_limit(1)
     try:
         return g()
     except RuntimeError:
         return -123
Exemplo n.º 2
0
def set_stack_depth_limit(space, limit):
    rstack.set_stack_depth_limit(limit)
Exemplo n.º 3
0
 def fn():
     set_stack_depth_limit(sys.maxint)
     return f(10**6)
Exemplo n.º 4
0
 def f():
     rstack.set_stack_depth_limit(12321)
     return rstack.get_stack_depth_limit()
Exemplo n.º 5
0
 def fn():
     set_stack_depth_limit(sys.maxint)
     return f(10**6)
Exemplo n.º 6
0
def set_stack_depth_limit(space, limit):
    rstack.set_stack_depth_limit(limit)