| Server IP : 217.160.0.135 / Your IP : 216.73.217.25 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/transformations/__pycache__/ |
Upload File : |
�
cR�aN � �^ � d Z ddlmZ ddlmZ ddlmZ ddlZddl m
Z
G d� de� � ZdS )zC RemoveComprehension turns list comprehension into function calls. � )�ImportedIds)�TransformationN��reducec �L � e Zd ZdZd� Zed� � � Zd� Zd� Zd� Z d� Z
d� Zd S )
�RemoveComprehensiona
Turns all list comprehension from a node into new function calls.
>>> import gast as ast
>>> from pythran import passmanager, backend
>>> node = ast.parse("[x*x for x in (1,2,3)]")
>>> pm = passmanager.PassManager("test")
>>> _, node = pm.apply(RemoveComprehension, node)
>>> print(pm.dump(backend.Python, node))
list_comprehension0()
def list_comprehension0():
__target = builtins.list()
for x in (1, 2, 3):
builtins.list.append(__target, (x * x))
return __target
c �<