| Server IP : 68.178.164.50 / Your IP : 216.73.216.142 Web Server : Apache System : Linux 50.164.178.68.host.secureserver.net 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64 User : rathinambschool ( 1053) PHP Version : 8.2.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/dns/__pycache__/ |
Upload File : |
a
�M�e� � @ sP d dl Zd dlmZmZ d dlmZ eG dd� dejj��Z eed�dd�Z
dS ) � N)�Any�Callable)� immutablec @ sP e Zd Zdefeeeg ejj f d�dd�Z
dd� Zdd� Zd d
� Z
dd� Zd
S )�DictF)�
dictionary�no_copy�map_factoryc C s8 |rt |tjj�r|| _n|� | _| j�|� d| _dS )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 � r �1/usr/lib/python3.9/site-packages/dns/immutable.py�__init__ s
z
Dict.__init__c C s | j �|�S �N)r
�__getitem__)r �keyr r r r s zDict.__getitem__c C sB | j d u r<d}t| j�� �D ]}|t|�N }qt�| d|� | j S )Nr r )r �sortedr
�keys�hash�object�__setattr__)r �hr r r r �__hash__! s
z
Dict.__hash__c C s
t | j�S r )�lenr
�r r r r �__len__* s zDict.__len__c C s
t | j�S r )�iterr
r r r r �__iter__- s z
Dict.__iter__N)�__name__�
__module__�__qualname__�dictr �boolr r
r r r r r r r"