| Server IP : 217.160.0.135 / Your IP : 216.73.216.115 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/pythran/transformations/__pycache__/ |
Upload File : |
�
cR�aC � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlZ G d� d ej
� � Z G d
� de� � ZdS )zu
ExpandGlobals replaces globals variables by function call.
It also turn globals assignment in function definition.
� )�LocalNameDeclarations)�Transformation)�PythranSyntaxError)�path_to_attr)�metadataNc � � e Zd ZdZd� Zd� ZdS )�GlobalTransformerz?
Use assumptions on globals to improve code generation
c � � |S �N� ��self�nodes �H/usr/lib/python3/dist-packages/pythran/transformations/expand_globals.py�
visit_CallzGlobalTransformer.visit_Call s � ��� c � � � t j t d� � t j � fd�|j D � � t j � � � � gg � � S )N)�builtins�pythran�static_listc �: �� g | ]}�� |� � ��S r )�visit)�.0�eltr s �r �
<listcomp>z0GlobalTransformer.visit_List.<locals>.<listcomp> s# �� �#I�#I�#I��D�J�J�s�O�O�#I�#I�#Ir )�ast�Callr �Tuple�elts�Loadr
s ` r �
visit_ListzGlobalTransformer.visit_List s[ �� ��x��%K�L�L���#I�#I�#I�#I�t�y�#I�#I�#I�"%�(�*�*�.� .� /��� � r N)�__name__�
__module__�__qualname__�__doc__r r! r r r r r s<