D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
hc_python
/
lib64
/
python3.12
/
site-packages
/
dns
/
__pycache__
/
Filename :
set.cpython-312.pyc
back
Copy
� ���g�# � � � d dl Z G d� d� Zy)� Nc � � e Zd ZdZdgZd*d�Zd� Zd� Zd� Zd� Z d � Z d+d �Zd� Zd� Z d � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d � Z!d!� Z"d"� Z#d#� Z$d$� Z%d%� Z&d&� Z'd'� Z(d(� Z)d)� Z*y),�Seta� A simple set class. This class was originally used to deal with python not having a set class, and originally the class used lists in its implementation. The ordered and indexable nature of RRsets and Rdatasets is unfortunately widely used in dnspython applications, so for backwards compatibility sets continue to be a custom class, now based on an ordered dictionary. �itemsNc �X � t � | _ |�|D ] }| j |� � yy)zaInitialize the set. *items*, an iterable or ``None``, the initial set of items. N)�dictr �add)�selfr �items �6/opt/hc_python/lib/python3.12/site-packages/dns/set.py�__init__zSet.__init__! s/ � � �V�� ����� ����� � � c �b � dt t | j j � � � � d�S )Nzdns.set.Set(�))�repr�listr �keys�r s r �__repr__zSet.__repr__. s'