← Back
Editing: namedtype.cpython-311.pyc
� c��]�? � �� � d dl Z d dlmZ d dlmZ d dlmZ g d�Z e n# e$ r d� ZY nw xY w G d� de � � Z G d � d e � � Z G d� de � � Z G d � de � � Z dS )� N)�error)�tag)�tagmap)� NamedType�OptionalNamedType�DefaultedNamedType� NamedTypesc �F � t t t | � � � � S �N)�bool�filter)�xs �7/usr/lib/python3/dist-packages/pyasn1/type/namedtype.py�<lambda>r s � �D���a���)�)� � c � � e Zd ZdZdZdZdd�Zd� Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zed� � � Zed� � � Zed� � � Zd� Zd� ZdS )r a� Create named field object for a constructed ASN.1 type. The |NamedType| object represents a single name and ASN.1 type of a constructed ASN.1 type. |NamedType| objects are immutable and duck-type Python :class:`tuple` objects holding *name* and *asn1Object* components. Parameters ---------- name: :py:class:`str` Field name asn1Object: ASN.1 type object FNc �B � || _ || _ ||f| _ || _ d S r )�_NamedType__name�_NamedType__type�_NamedType__nameAndType�_NamedType__openType)�self�name� asn1Object�openTypes r �__init__zNamedType.__init__* s( � ���� ���!�:�-���"����r c �r � | j �d| j ��}| j r |d| j z z }d| j j �d|�d�S )N�=z, open type %r�<z object, type �>)r r r � __class__�__name__�r �representations r �__repr__zNamedType.__repr__0 sS � �$(�I�I�I�t���?���=� ?��.���>�>�N�� �N�#�#�#�^�^�^�5� 5r c � � | j |k S r �r �r �others r �__eq__zNamedType.__eq__9 � � ��!�U�*�*r c � � | j |k S r r'