| 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�a� � �p � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl Z
d� Zd� Zd � Z
G d
� de� � ZdS )z+ NormalizeIsNone detects is None patterns. � )�Transformation)� Ancestors)�PythranSyntaxError)�reduceNc � � t | t j � � r | j �dS t | t j � � sdS | j dk S )NTF�None)�
isinstance�ast�Constant�value� Attribute�attr)�exprs �K/usr/lib/python3/dist-packages/pythran/transformations/normalize_is_none.py�is_noner sJ � ��$���%�%� �$�*�*<��t� �d�C�M�*�*� ��u��9���� c �� � t | t j � � sd S t | j � � dk r;| j g| j z }t d� |D � � � � rt d| � � �d S t | j d t j t j
f� � sd S t | j � � r
| j d S t | j d � � r| j S d S )N� c 3 �4 K � | ]}t |� � V � �d S �N�r ��.0r s r � <genexpr>zis_is_none.<locals>.<genexpr> �( � � � �/�/��w�t�}�}�/�/�/�/�/�/r �is None in complex conditionr )r r
�Compare�len�ops�left�comparators�anyr �Eq�Isr �r �exprss r �
is_is_noner'