403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.85
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/IPython/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/IPython/utils/__pycache__/dir2.cpython-311.pyc
�

�@�c���,�dZddlZddlZd�Zd�Zd�ZdS)z:A fancy version of Python's builtin :func:`dir` function.
�Nc�8�	t||��dS#YdSxYw)zfIn recent versions of Python, hasattr() only catches AttributeError.
    This catches all errors.
    TF)�getattr)�obj�attrs  �4/usr/lib/python3/dist-packages/IPython/utils/dir2.py�safe_hasattrrs,�����T�����t����u�u���s��c��	tt|����}n#t$rt��}YnwxYwt|d��r$|tt|j����z}d�|D��}t|��S)avdir2(obj) -> list of strings

    Extended version of the Python builtin dir(), which does a few extra
    checks.

    This version is guaranteed to return only a list of true strings, whereas
    dir() returns anything that objects inject into themselves, even if they
    are later not really valid for attribute access (many extension libraries
    have such bugs).
    �	__class__c�<�g|]}t|t���|��S�)�
isinstance�str)�.0�ws  r�
<listcomp>zdir2.<locals>.<listcomp>2s'��4�4�4�1��A�s�!3�!3�4�Q�4�4�4�)�set�dir�	Exceptionrr
�sorted)r�wordss  r�dir2rs�����C��H�H�
�
�������������������C��%�%�)�
��S���'�'�(�(�(��

5�4��4�4�4�E��%�=�=�s��:�:c� �	t|dd��}n#t$rYdSwxYw|�dS	t||d��}n#t$rYdSwxYwtj|��rt	|t
j��sdSt|��r|SdS)aELike getattr, but with a few extra sanity checks:

    - If obj is a class, ignore everything except class methods
    - Check if obj is a proxy that claims to have all attributes
    - Catch attribute access failing with any exception
    - Check that the attribute is a callable object

    Returns the method or None.
    �(_ipython_canary_method_should_not_exist_N)rr�inspect�isclassr
�types�
MethodType�callable)r�name�canary�ms    r�get_real_methodr#6s������H�$�O�O���������t�t��������t���C��t�$�$���������t�t�������s����J�q�%�2B�$C�$C���t���{�{�����4s��
"�"�<�
A
�	A
)�__doc__rrrrr#rrr�<module>r%sZ������������������>����r

Youez - 2016 - github.com/yon3zu
LinuXploit