%PDF- %PDF-
Direktori : /lib/python3/dist-packages/dns/__pycache__/ |
Current File : //lib/python3/dist-packages/dns/__pycache__/immutable.cpython-312.pyc |
� 5��e� � � � d dl Zd dlmZmZ d dlmZ e G d� dej j � � Z dedefd�Z y) � N)�Any�Callable)� immutablec �p � e Zd Zdefdededeg ej j f fd�Z d� Zd� Zd� Z d � Zy )�DictF� dictionary�no_copy�map_factoryc �� � |r3t |t j j � r|| _ d| _ y |� | _ | j j |� d| _ y)a Make an immutable dictionary from the specified dictionary. If *no_copy* is `True`, then *dictionary* will be wrapped instead of copied. Only set this if you are sure there will be no external references to the dictionary. N)� isinstance�collections�abc�MutableMapping�_odict�update�_hash)�selfr r r s �//usr/lib/python3/dist-packages/dns/immutable.py�__init__z Dict.__init__ sN � � �z�*�k�o�o�.L�.L�M�$�D�K� �� � &�-�D�K��K�K���z�*��� � c �8 � | j j |� S �N)r �__getitem__)r �keys r r zDict.__getitem__ s � ��{�{�&�&�s�+�+r c �� � | j �Od}t | j j � � D ] }|t |� z }� t j | d|� | j S )Nr r )r �sortedr �keys�hash�object�__setattr__)r �hr s r �__hash__z Dict.__hash__! s[ � ��:�:���A��d�k�k�.�.�0�1� ���T�#�Y��� ����t�W�a�0��z�z�r c �, � t | j � S r )�lenr �r s r �__len__zDict.__len__* s � ��4�;�;��r c �, � t | j � S r )�iterr r% s r �__iter__z Dict.__iter__- s � ��D�K�K� � r N)�__name__� __module__�__qualname__�dictr �boolr r r r r r r"