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