文件操作 - metadata.cpython-311.pyc
返回文件管理
返回主菜单
删除本文件
文件: /usr/lib/python3/dist-packages/pythran/__pycache__/metadata.cpython-311.pyc
编辑文件内容
� cR�a� � � � d Z ddlmZ G d� de� � Z G d� de� � Z G d� de� � Z G d � d e� � Z G d� de� � Zd � Zd� Z d� Z d� ZdS )z� This module provides a way to pass information between passes as metadata. * add attaches a metadata to a node * get retrieves all metadata from a particular class attached to a node � )�ASTc �. � � e Zd ZdZ� fd�Zd� Zd� Z� xZS )�MetadatazE Base class to add information on a node to improve code generation. c � �� t � � | _ d| _ t t | � � � � � dS )z' Initialize content of these metadata. )�dataN)�listr �_fields�superr �__init__)�self� __class__s ��2/usr/lib/python3/dist-packages/pythran/metadata.pyr zMetadata.__init__ s7 �� ��F�F�� � ��� �h����&�&�(�(�(�(�(� c �* � t | j � � S )z4 Enable iteration over every metadata informations. )�iterr )r s r �__iter__zMetadata.__iter__ s � ��D�I���r c �: � | j � |� � dS )z Add a metadata information. N)r �append)r r s r r zMetadata.append s � �� ��������r )�__name__� __module__�__qualname__�__doc__r r r � __classcell__�r s @r r r s\ �� � � � � �O�O�)� )� )� )� )�� � �� � � � � � r r c � � e Zd ZdZdS )�LazyzC Metadata to mark variable which doesn't need to be evaluated now. N�r r r r � r r r r s � � � � � �M�M�M�Mr r c � � � e Zd Z� fd�Z� xZS )� Comprehensionc �x �� t t | � � � � � |r|d | _ d S d S )Nr )r r r �target)r �argsr s �r r zComprehension.__init__$ s@ �� � �m�T�"�"�+�+�-�-�-�� "��q�'�D�K�K�K� "� "r )r r r r r r s @r r r # s8 �� � � � � �"� "� "� "� "� "� "� "� "r r c � � e Zd ZdZdS )�StaticReturnz0 Metadata to mark return with a constant value. Nr r r r r% r% * s � � � � � �:�:�:�:r r% c � � e Zd ZdZdS )�Localz, Metadata to mark function as non exported. Nr r r r r'