403Webshell
Server IP : 118.27.122.248  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
User : c9415830 ( 11735)
PHP Version : 8.4.17
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python36/lib64/python3.6/Tools/scripts/__pycache__/find_recursionlimit.cpython-36.pyc
3

x2_��@s"dZddlZddlZGdd�d�Zdd�ZGdd�d�Zd	d
�ZGdd�d�Zd
d�ZGdd�d�Z	dd�Z
Gdd�d�Zdd�Zdd�Z
ifdd�Zdd�Zdd�Zedk�rd Zxheed�eed�eed
�eed�eed�eed�eed�eed�ed!e�ed"Zq�WdS)#aAFind 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.
�Nc@seZdZdd�ZdS)�RecursiveBlowup1cCs|j�dS)N)�__init__)�self�r�F/opt/alt/python36/lib64/python3.6/Tools/scripts/find_recursionlimit.pyr$szRecursiveBlowup1.__init__N)�__name__�
__module__�__qualname__rrrrrr#srcCst�S)N)rrrrr�	test_init'sr
c@seZdZdd�ZdS)�RecursiveBlowup2cCst|�S)N)�repr)rrrr�__repr__+szRecursiveBlowup2.__repr__N)rrr	r
rrrrr*srcCs
tt��S)N)rrrrrr�	test_repr.src@seZdZdd�ZdS)�RecursiveBlowup4cCs||S)Nr)r�xrrr�__add__2szRecursiveBlowup4.__add__N)rrr	rrrrrr1srcCst�t�S)N)rrrrr�test_add5src@seZdZdd�ZdS)�RecursiveBlowup5cCs
t||�S)N)�getattr)r�attrrrr�__getattr__9szRecursiveBlowup5.__getattr__N)rrr	rrrrrr8srcCst�jS)N)rrrrrr�test_getattr<src@seZdZdd�ZdS)�RecursiveBlowup6cCs||d||dS)N��r)r�itemrrr�__getitem__@szRecursiveBlowup6.__getitem__N)rrr	rrrrrr?srcCs
t�dS)N�)rrrrr�test_getitemCsrcCst�S)N)�test_recurserrrrrFsrcCs�ddl}yddl}Wntk
r0td�dSXd\}}xvtj�D]j}y||}wDWn6tk
r�x td�D]}||g}||i}qpWYnX|j|j	�dd�j
|�|||<qDWdS)Nrzcannot import _pickle, skipped!�dr)Zprotocol)NN���)�io�_pickle�ImportError�print�	itertools�count�KeyError�rangeZPickler�BytesIO�dump)�_cacher"r#�k�l�n�irrr�test_cpickleIs"r1cCstddtj�dd�dS)Nz()�
z<single>Zsingle)�compile�sys�getrecursionlimitrrrr�test_compiler_recursion\sr6cCshtj|�|jd�r&t|dd��nt|�t�|}y
|�Wnttfk
rZYn
Xtd�dS)NZtest_rzYikes!)r4�setrecursionlimit�
startswithr%�globals�RecursionError�AttributeError)r/Ztest_func_nameZ	test_funcrrr�check_limitbs



r<�__main__i�zLimit of %d is finer )�__doc__r4r&rr
rrrrrrrrrr1r6r<r�limitr%rrrr�<module>s:










Youez - 2016 - github.com/yon3zu
LinuXploit