//usr/lib64/lib64//lib64//python2.7/ó
àœSec @ sF d Z d d l Z d d l Z d d d „ ƒ YZ d „ Z d d d „ ƒ YZ d „ Z d d! d
„ ƒ YZ d „ Z d d" d
„ ƒ YZ d „ Z
d d# d „ ƒ YZ d „ Z d „ Z
i d „ Z d „ Z d Z xq e e d ƒ e e d ƒ e e d ƒ e e d ƒ e e d ƒ e e d ƒ e e d ƒ d e GHe d Z qÑ d S($ sA Find the maximum recursion limit that prevents interpreter termination.
This script finds the maximum safe recursion limit on a particular
platform. If you need to change the recursion limit on your system,
this script will tell you a safe upper bound. To use the new limit,
call sys.setrecursionlimit().
This module implements several ways to create infinite recursion in
Python. Different implementations end up pushing different numbers of
C stack frames, depending on how many calls through Python's abstract
C API occur.
After each round of tests, it prints a message:
"Limit of NNNN is fine".
The highest printed value of "NNNN" is therefore the highest potentially
safe limit for your system (which depends on the OS, architecture, but also
the compilation flags). Please note that it is practically impossible to
test all possible recursion paths in the interpreter, so the results of
this test should not be trusted blindly -- although they give a good hint
of which values are reasonable.
NOTE: When the C stack space allocated by your system is exceeded due
to excessive recursion, exact behaviour depends on the platform, although
the interpreter will always fail in a likely brutal way: either a
segmentation fault, a MemoryError, or just a silent abort.
NB: A program that does not use __methods__ can set a higher limit.
iÿÿÿÿNt RecursiveBlowup1c B s e Z d „ Z RS( c C s | j ƒ d S( N( t __init__( t self( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyR $ s ( t __name__t
__module__R ( ( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyR # s c C s t ƒ S( N( R ( ( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyt test_init' s t RecursiveBlowup2c B s e Z d „ Z RS( c C s
t | ƒ S( N( t repr( R ( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyt __repr__+ s ( R R R ( ( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyR * s c C s
t t ƒ ƒ S( N( R R ( ( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyt test_repr. s t RecursiveBlowup4c B s e Z d „ Z RS( c C s | | S( N( ( R t x( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyt __add__2 s ( R R R ( ( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyR
1 s c C s t ƒ t ƒ S( N( R
( ( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyt test_add5 s t RecursiveBlowup5c B s e Z d „ Z RS( c C s
t | | ƒ S( N( t getattr( R t attr( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyt __getattr__9 s ( R R R ( ( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyR 8 s c C s
t ƒ j S( N( R R ( ( ( s9 /usr/lib64/python2.7/Tools/scripts/find_recursionlimit.pyt test_getattr<