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 :  /lib/python3/dist-packages/pythran/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

cR�a����dZddlZddlmZddlmZmZddlm	Z	ddl
mZd�Zd�Z
d	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zed���ZdS)z+ Common function use for AST manipulation. �N��MODULES)�mangle�demangle)�reduce)�contextmanagerc�j�t|tj��ot|jt��S�N)�
isinstance�ast�Constant�value�str��nodes �//usr/lib/python3/dist-packages/pythran/utils.py�isstrr
s%���d�C�L�)�)�I�j���S�.I�.I�I�c�x�t|tj��o t|jtt
f��Sr
)rrr
r�int�boolrs r�
isintegralrs;���d�C�L�)�)�M�j���c�FJ�FL�/M�/M�Mrc��t|tj��o&t|jtt
tf��Sr
)rrr
rr�floatrrs r�isnumrs>���d�C�L�)�)�M�j���c�FK�FJ�FL�/M�/M�Mrc�v�t|tj��sdStd�|jD����S)NFc3�JK�|]}t|tj��V��dSr
)rr�Slice)�.0�elts  r�	<genexpr>zisextslice.<locals>.<genexpr>s.����?�?�c�z�#�s�y�)�)�?�?�?�?�?�?r)rr�Tuple�any�eltsrs r�
isextslicer%s:���d�C�I�&�&���u��?�?�T�Y�?�?�?�?�?�?rc��t|jtj��sdSt	|j��sdS|jjdkS)NFr)r�opr�Powr�rightrrs r�ispowir*sD���d�g�s�w�'�'���u��d�j�!�!���u��:��q� � rc����fd���t|��\}}|���s|dd�d|dfz}|d|zfS)z5 Compute path and final object for an attribute node c�&��t|tj��r/|t|j��t|j��ffSt|tj��r,�||j��\}}||j||jfzfSdS)z9 Get function path and intrinsic from an ast.Attribute.  N)rr�Namer�id�	Attributer�attr)�modulesr0�module�path�get_intrinsic_paths    �rr4z(attr_to_path.<locals>.get_intrinsic_path*s�����d�C�H�%�%�	:��8�D�G�,�,�-����0A�0A�/C�C�C�
��c�m�
,�
,�	:�-�-�g�t�z�B�B�L�F�D��$�)�$�d�d�i�\�&9�9�9�	:�	:rN����functor)�pythonic)r�	isliteral)r�objr3r4s   @r�attr_to_pathr:'so���:�:�:�:�:�#�"�7�D�1�1�I�C���=�=�?�?�1��C�R�C�y�I�t�B�x�0�0�����%�%�%rc
��td�|dd�tjt|d��tj��dd����S)aO
    Transform path to ast.Attribute.

    >>> import gast as ast
    >>> path = ('builtins', 'my', 'constant')
    >>> value = path_to_attr(path)
    >>> ref = ast.Attribute(
    ...     value=ast.Attribute(value=ast.Name(id="builtins",
    ...                                        ctx=ast.Load(),
    ...                                        annotation=None,
    ...                                        type_comment=None),
    ...                         attr="my", ctx=ast.Load()),
    ...     attr="constant", ctx=ast.Load())
    >>> ast.dump(ref) == ast.dump(value)
    True
    c�P�tj||tj����Sr
)rr/�Load)�hpath�lasts  r�<lambda>zpath_to_attr.<locals>.<lambda>Hs��c�m�E�4�����&L�&L�r�Nr)rrr-rr=�r3s r�path_to_attrrC7sL��"�L�L��q�r�r�(�C�H�V�D��G�_�_�c�h�j�j�$��M�M�O�O�Orc��t|��dkrt|dSt|dd���|dS)z�
    Retrieve a symbol in MODULES based on its path
    >>> path = ('math', 'pi')
    >>> path_to_node(path) #doctest: +ELLIPSIS
    <pythran.intrinsic.ConstantIntr object at 0x...>
    rArNr5)�lenr�path_to_noderBs rrFrFLsA���4�y�y�A�~�~��t�A�w����D��"��I�&�&�t�B�x�0�0rc�j�t|tj��ot|jdd��dkS)Nr0�getattr)rr�CallrH�funcrs r�isattrrKYs1���t�S�X�&�&�
:��D�I�v�t�,�,�	�9�;rc�V�d}t|tjtjf��s
J|���t|tj��st	|��rMt	|��r|jd}n|j}t|tj���>t	|���M|S)a�
    Return modified variable name.

    >>> import gast as ast
    >>> ref = ast.Subscript(
    ...     value=ast.Subscript(
    ...         value=ast.Name('a', ast.Load(), None, None),
    ...         slice=ast.Name('i', ast.Load(), None, None),
    ...         ctx=ast.Load()),
    ...     slice=ast.Name('j', ast.Load(), None, None),
    ...     ctx=ast.Load())
    >>> ast.dump(get_variable(ref))
    "Name(id='a', ctx=Load(), annotation=None, type_comment=None)"
    z(Only name and subscript can be assigned.r)rrr-�	SubscriptrK�argsr)�
assignable�msgs  r�get_variablerQ^s���5�C��j�3�8�S�]�";�<�<�A�A�c�A�A�A�
�Z���
/�
/�*�6�*�3E�3E�*��*���	*�#���+�J�J�#�)�J�	�Z���
/�
/�*�6�*�3E�3E�*�
�rc�4�tdd|S�N�builtins�pythranr��names r�pythran_builtinrXws���:��y�)�$�/�/rc�:�|tddvsJ�dd|fSrSrrVs r�pythran_builtin_pathrZ{s*���7�:�&�y�1�1�1�1�1��	�4�(�(rc�:�tt|����Sr
)rCrZrVs r�pythran_builtin_attrr\�s���,�T�2�2�3�3�3rc�"�ddlm}|d||vzzS)Nr)�cxx_keywords�_)�pythran.tablesr^)rWr^s  r�cxxidra�s)��+�+�+�+�+�+��#���-�.�.�.rc#�dK�|�|��dV�|���dSr
)�append�pop)�l�vs  r�pushpoprg�s/�����H�H�Q�K�K�K�	�E�E�E��E�E�G�G�G�G�Gr)�__doc__�gastrr`r�pythran.conversionrr�	functoolsr�
contextlibrrrrr%r*r:rCrFrKrQrXrZr\rarg�rr�<module>rnsk��1�1�����"�"�"�"�"�"�/�/�/�/�/�/�/�/�������%�%�%�%�%�%�J�J�J�M�M�M�
M�M�M�@�@�@�!�!�!�
&�
&�
&� O�O�O�*
1�
1�
1�;�;�;�
���20�0�0�)�)�)�
4�4�4�/�/�/�
�������r

Youez - 2016 - github.com/yon3zu
LinuXploit