| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/lib64/python3.9/site-packages/pyrsistent/__pycache__/ |
Upload File : |
a
`�]_7 � @ sh d dl mZmZ d dlZd dlmZ G dd� de�Ze�e� e�e� ee� �Z ddd �Z
d
d� ZdS )
� )�Set�HashableN)�pmapc s e Zd ZdZdZ� fdd�Zdd� Zdd� Zd d
� Zdd� Z d
d� Z
dd� Zdd� Ze
d$dd��Zdd� Zdd� Zdd� Zdd� ZG dd� de�Zd d!� Zd"d#� ZejZejZejZejZejZejZejZejZej Z ej!Z!eZ"eZ#eZ$eZ%e Z&e!Z'ej(Z(� Z)S )%�PSeta!
Persistent set implementation. Built on top of the persistent map. The set supports all operations
in the Set protocol and is Hashable.
Do not instantiate directly, instead use the factory functions :py:func:`s` or :py:func:`pset`
to create an instance.
Random access and insert is log32(n) where n is the size of the set.
Some examples:
>>> s = pset([1, 2, 3, 1])
>>> s2 = s.add(4)
>>> s3 = s2.remove(2)
>>> s
pset([1, 2, 3])
>>> s2
pset([1, 2, 3, 4])
>>> s3
pset([1, 3, 4])
)�_map�__weakref__c s t t| ��| �}||_|S �N)�superr �__new__r )�cls�m�self�� __class__� �6/usr/lib64/python3.9/site-packages/pyrsistent/_pset.pyr
s zPSet.__new__c C s
|| j v S r )r �r
�elementr r r �__contains__# s zPSet.__contains__c C s
t | j�S r )�iterr �r
r r r �__iter__&