$44 GRAYBYTE WORDPRESS FILE MANAGER $95

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.162.162 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/hc_python/lib/python3.12/site-packages/dns/__pycache__/

HOME
Current File : /opt/hc_python/lib/python3.12/site-packages/dns/__pycache__//set.cpython-312.pyc
�

L��g�#�� �ddlZGd�d�Zy)�Nc��eZdZdZdgZd*d�Zd�Zd�Zd�Zd�Z	d	�Z
d+d
�Zd�Zd�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__zSet.__init__!s/���V��
������������c�b�dtt|jj����d�S)Nzdns.set.Set(�))�repr�listr�keys�r	s r�__repr__zSet.__repr__.s'���d�4��
�
���(9�#:�;�<�A�>�>r
c�@�||jvrd|j|<yy)zAdd an item to the set.N�r�r	r
s  rrzSet.add1s#���t�z�z�!�#�D�J�J�t��"r
c�F�	|j|=y#t$rt�wxYw)zRemove an item from the set.N)r�KeyError�
ValueErrorrs  r�removez
Set.remove7s(��	��
�
�4� ���	���	�s�
� c�<�|jj|d�y)z'Remove an item from the set if present.N)r�poprs  r�discardzSet.discard?s��	
�
�
���t�T�"r
c�@�|jj�\}}|S)z&Remove an arbitrary item from the set.)r�popitem)r	�k�_s   rrzSet.popDs�����#�#�%���A��r
c���t|d�r
|j}n|j}|j|�}t	�|_|j
j
|j
�|S)a�Make a (shallow) copy of the set.

        There is a 'clone protocol' that subclasses of this class
        should use.  To make a copy, first call your super's _clone()
        method, and use the object returned as the new instance.  Then
        make shallow copies of the attributes defined in the subclass.

        This protocol allows us to write the set algorithms that
        return new instances (e.g. union) once, and keep using them in
        subclasses.
        �_clone_class)�hasattrr$�	__class__�__new__rr�update)r	�cls�objs   r�_clonez
Set._cloneIsT���4��(��#�#�C��.�.�C��k�k�#����F��	��	�	������$��
r
c�"�|j�S�z!Make a (shallow) copy of the set.�r+rs r�__copy__zSet.__copy___����{�{�}�r
c�"�|j�Sr-r.rs r�copyzSet.copydr0r
c��t|t�std��||ury|jD]}|j	|��y)zaUpdate the set, adding any elements from other which are not
        already in the set.
        �other must be a Set instanceN)�
isinstancerrrr�r	�otherr
s   r�union_updatezSet.union_updateis=��
�%��%��;�<�<��5�=���K�K�D��H�H�T�N� r
c��t|t�std��||uryt|j�D]}||jvs�|j|=� y)z]Update the set, removing any elements from other which are not
        in both sets.
        r4N)r5rrrrr6s   r�intersection_updatezSet.intersection_updateusQ��
�%��%��;�<�<��5�=������$�D��5�;�;�&��J�J�t�$�%r
c��t|t�std��||ur|jj	�y|jD]}|j|��y)zWUpdate the set, removing any elements from other which are in
        the set.
        r4N)r5rrr�clearrr6s   r�difference_updatezSet.difference_update�sK��
�%��%��;�<�<��5�=��J�J�����������T�"�$r
c���t|t�std��||ur|jj	�y|j|�}|j
|�|j|�y)z<Update the set, retaining only elements unique to both sets.r4N)r5rrrr<�intersectionr8r=)r	r7�overlaps   r�symmetric_difference_updatezSet.symmetric_difference_update�s]���%��%��;�<�<��5�=��J�J�����'�'��.�G����e�$��"�"�7�+r
c�H�|j�}|j|�|S)zwReturn a new set which is the union of ``self`` and ``other``.

        Returns the same Set type as this set.
        )r+r8�r	r7r*s   r�unionz	Set.union�s"���k�k�m��������
r
c�H�|j�}|j|�|S)z�Return a new set which is the intersection of ``self`` and
        ``other``.

        Returns the same Set type as this set.
        )r+r:rCs   rr?zSet.intersection�s"���k�k�m������&��
r
c�H�|j�}|j|�|S)z�Return a new set which ``self`` - ``other``, i.e. the items
        in ``self`` which are not also in ``other``.

        Returns the same Set type as this set.
        )r+r=rCs   r�
differencezSet.difference�s"���k�k�m�����e�$��
r
c�H�|j�}|j|�|S)z�Return a new set which (``self`` - ``other``) | (``other``
        - ``self), ie: the items in either ``self`` or ``other`` which
        are not contained in their intersection.

        Returns the same Set type as this set.
        )r+rArCs   r�symmetric_differencezSet.symmetric_difference�s"���k�k�m���'�'��.��
r
c�$�|j|�S�N�rD�r	r7s  r�__or__z
Set.__or__�����z�z�%� � r
c�$�|j|�SrK)r?rMs  r�__and__zSet.__and__�s��� � ��'�'r
c�$�|j|�SrKrLrMs  r�__add__zSet.__add__�rOr
c�$�|j|�SrK)rGrMs  r�__sub__zSet.__sub__�s�����u�%�%r
c�$�|j|�SrK)rIrMs  r�__xor__zSet.__xor__�s���(�(��/�/r
c�(�|j|�|SrK�r8rMs  r�__ior__zSet.__ior__�������%� ��r
c�(�|j|�|SrK)r:rMs  r�__iand__zSet.__iand__�s��� � ��'��r
c�(�|j|�|SrKrYrMs  r�__iadd__zSet.__iadd__�r[r
c�(�|j|�|SrK)r=rMs  r�__isub__zSet.__isub__�s�����u�%��r
c�(�|j|�|SrK)rArMs  r�__ixor__zSet.__ixor__�s���(�(��/��r
c�4�|D]}|j|��y)z�Update the set, adding any elements from other which are not
        already in the set.

        *other*, the collection of items with which to update the set, which
        may be any iterable type.
        N)rr6s   rr(z
Set.update�s���D��H�H�T�N�r
c�8�|jj�y)zMake the set empty.N)rr<rs rr<z	Set.clear�s���
�
���r
c�4�|j|jk(SrKrrMs  r�__eq__z
Set.__eq__�s���z�z�U�[�[�(�(r
c�&�|j|�SrK)rgrMs  r�__ne__z
Set.__ne__�s���;�;�u�%�%�%r
c�,�t|j�SrK)�lenrrs r�__len__zSet.__len__s���4�:�:��r
c�,�t|j�SrK)�iterrrs r�__iter__zSet.__iter__s���D�J�J��r
c��t|t�rIttj|j
|j|j|j��Sttj|j
||dz��S)N�)
r5�slicer�	itertools�islicer�start�stop�step�next)r	�is  r�__getitem__zSet.__getitem__sZ���a����	�(�(����Q�W�W�a�f�f�a�f�f�M�N�N��	�(�(����Q��A��>�?�?r
c��t|t�r!t||�D]}|j|=�y|j||=yrK)r5rrrr)r	ry�elts   r�__delitem__zSet.__delitem__
s;���a����D��G�}���J�J�s�O�%��
�
�4��7�#r
c�|�t|t�std��|jD]}||jvs�yy)zFIs this set a subset of *other*?

        Returns a ``bool``.
        r4FT�r5rrrr6s   r�issubsetzSet.issubsets<���%��%��;�<�<��J�J�D��5�;�;�&���r
c�|�t|t�std��|jD]}||jvs�yy)zHIs this set a superset of *other*?

        Returns a ``bool``.
        r4FTrr6s   r�
issupersetzSet.issuperset!s<���%��%��;�<�<��K�K�D��4�:�:�%�� �r
c�|�t|t�std��|jD]}||jvs�yy)Nr4FTrr6s   r�
isdisjointzSet.isdisjoint.s:���%��%��;�<�<��K�K�D��t�z�z�!�� �r
rK)�returnr)+�__name__�
__module__�__qualname__�__doc__�	__slots__rrrrrrr+r/r2r8r:r=rArDr?rGrIrNrQrSrUrWrZr]r_rarcr(r<rgrirlrorzr}r�r�r��r
rrrs�����	�I��?�$��#�
�
�,�
�

�
%�#�
,��	�	�
�!�(�!�&�0������	��)�&�� �@�$���r
r)rsrr�r
r�<module>r�s��$�_�_r


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2025 8.03 AM
root / root
0755
__init__.cpython-312.pyc
0.682 KB
4 Apr 2025 8.03 AM
root / root
0644
_asyncbackend.cpython-312.pyc
4.683 KB
4 Apr 2025 8.03 AM
root / root
0644
_asyncio_backend.cpython-312.pyc
13.935 KB
4 Apr 2025 8.03 AM
root / root
0644
_ddr.cpython-312.pyc
7.592 KB
4 Apr 2025 8.03 AM
root / root
0644
_features.cpython-312.pyc
3.195 KB
4 Apr 2025 8.03 AM
root / root
0644
_immutable_ctx.cpython-312.pyc
3.136 KB
4 Apr 2025 8.03 AM
root / root
0644
_trio_backend.cpython-312.pyc
13.129 KB
4 Apr 2025 8.03 AM
root / root
0644
asyncbackend.cpython-312.pyc
3.314 KB
4 Apr 2025 8.03 AM
root / root
0644
asyncquery.cpython-312.pyc
36.653 KB
4 Apr 2025 8.03 AM
root / root
0644
asyncresolver.cpython-312.pyc
20.802 KB
4 Apr 2025 8.03 AM
root / root
0644
dnssec.cpython-312.pyc
50.303 KB
4 Apr 2025 8.03 AM
root / root
0644
dnssectypes.cpython-312.pyc
1.906 KB
4 Apr 2025 8.03 AM
root / root
0644
e164.cpython-312.pyc
4.768 KB
4 Apr 2025 8.03 AM
root / root
0644
edns.cpython-312.pyc
25.072 KB
4 Apr 2025 8.03 AM
root / root
0644
entropy.cpython-312.pyc
5.778 KB
4 Apr 2025 8.03 AM
root / root
0644
enum.cpython-312.pyc
4.746 KB
4 Apr 2025 8.03 AM
root / root
0644
exception.cpython-312.pyc
7.031 KB
4 Apr 2025 8.03 AM
root / root
0644
flags.cpython-312.pyc
2.973 KB
4 Apr 2025 8.03 AM
root / root
0644
grange.cpython-312.pyc
1.706 KB
4 Apr 2025 8.03 AM
root / root
0644
immutable.cpython-312.pyc
3.668 KB
4 Apr 2025 8.03 AM
root / root
0644
inet.cpython-312.pyc
6.521 KB
4 Apr 2025 8.03 AM
root / root
0644
ipv4.cpython-312.pyc
2.637 KB
4 Apr 2025 8.03 AM
root / root
0644
ipv6.cpython-312.pyc
6.642 KB
4 Apr 2025 8.03 AM
root / root
0644
message.cpython-312.pyc
84.558 KB
4 Apr 2025 8.03 AM
root / root
0644
name.cpython-312.pyc
47.996 KB
4 Apr 2025 8.03 AM
root / root
0644
namedict.cpython-312.pyc
4.227 KB
4 Apr 2025 8.03 AM
root / root
0644
nameserver.cpython-312.pyc
14.067 KB
4 Apr 2025 8.03 AM
root / root
0644
node.cpython-312.pyc
16.221 KB
4 Apr 2025 8.03 AM
root / root
0644
opcode.cpython-312.pyc
3.039 KB
4 Apr 2025 8.03 AM
root / root
0644
query.cpython-312.pyc
63.102 KB
4 Apr 2025 8.03 AM
root / root
0644
rcode.cpython-312.pyc
4.306 KB
4 Apr 2025 8.03 AM
root / root
0644
rdata.cpython-312.pyc
37.637 KB
4 Apr 2025 8.03 AM
root / root
0644
rdataclass.cpython-312.pyc
3.418 KB
4 Apr 2025 8.03 AM
root / root
0644
rdataset.cpython-312.pyc
22.372 KB
4 Apr 2025 8.03 AM
root / root
0644
rdatatype.cpython-312.pyc
9.981 KB
4 Apr 2025 8.03 AM
root / root
0644
renderer.cpython-312.pyc
15.75 KB
4 Apr 2025 8.03 AM
root / root
0644
resolver.cpython-312.pyc
86.043 KB
4 Apr 2025 8.03 AM
root / root
0644
reversename.cpython-312.pyc
4.598 KB
4 Apr 2025 8.03 AM
root / root
0644
rrset.cpython-312.pyc
12.163 KB
4 Apr 2025 8.03 AM
root / root
0644
serial.cpython-312.pyc
5.043 KB
4 Apr 2025 8.03 AM
root / root
0644
set.cpython-312.pyc
11.921 KB
4 Apr 2025 8.03 AM
root / root
0644
tokenizer.cpython-312.pyc
25.912 KB
4 Apr 2025 8.03 AM
root / root
0644
transaction.cpython-312.pyc
28.622 KB
4 Apr 2025 8.03 AM
root / root
0644
tsig.cpython-312.pyc
16.346 KB
4 Apr 2025 8.03 AM
root / root
0644
tsigkeyring.cpython-312.pyc
2.811 KB
4 Apr 2025 8.03 AM
root / root
0644
ttl.cpython-312.pyc
2.368 KB
4 Apr 2025 8.03 AM
root / root
0644
update.cpython-312.pyc
15.873 KB
4 Apr 2025 8.03 AM
root / root
0644
version.cpython-312.pyc
0.734 KB
4 Apr 2025 8.03 AM
root / root
0644
versioned.cpython-312.pyc
14.258 KB
4 Apr 2025 8.03 AM
root / root
0644
win32util.cpython-312.pyc
9.313 KB
4 Apr 2025 8.03 AM
root / root
0644
wire.cpython-312.pyc
5.304 KB
4 Apr 2025 8.03 AM
root / root
0644
xfr.cpython-312.pyc
14.116 KB
4 Apr 2025 8.03 AM
root / root
0644
zone.cpython-312.pyc
65.902 KB
4 Apr 2025 8.03 AM
root / root
0644
zonefile.cpython-312.pyc
32.975 KB
4 Apr 2025 8.03 AM
root / root
0644
zonetypes.cpython-312.pyc
1.295 KB
4 Apr 2025 8.03 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF