$94 GRAYBYTE WORDPRESS FILE MANAGER $74

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

/opt/alt/python37/lib64/python3.7/site-packages/pyrsistent/__pycache__/

HOME
Current File : /opt/alt/python37/lib64/python3.7/site-packages/pyrsistent/__pycache__//_pset.cpython-37.pyc
B

+�[V�@svddlmZmZddlZddlmZejddkZGdd�de�Z	e�
e	�e�
e	�e	e��Zdd
d�Zdd
�Z
dS)�)�Set�Hashable�N)�pmap�cseZdZdZdZ�fdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�Zdd�Ze
d$dd��Zdd�Zdd�Zdd�Zdd�ZGdd�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__cstt|��|�}||_|S)N)�superr�__new__r)�cls�m�self)�	__class__��C/opt/alt/python37/lib64/python3.7/site-packages/pyrsistent/_pset.pyr szPSet.__new__cCs
||jkS)N)r)r�elementrrr�__contains__%szPSet.__contains__cCs
t|j�S)N)�iterr)rrrr�__iter__(sz
PSet.__iter__cCs
t|j�S)N)�lenr)rrrr�__len__+szPSet.__len__cCs2ts|sdtt|��Sd�tt|��dd��S)N�pzpset([{0}])r���)�PY2�str�set�format)rrrr�__repr__.sz
PSet.__repr__cCs|��S)N)r)rrrr�__str__4szPSet.__str__cCs
t|j�S)N)�hashr)rrrr�__hash__7sz
PSet.__hash__cCstt|�ffS)N)�pset�list)rrrr�
__reduce__:szPSet.__reduce__�cCstttdd�|D��|d��S)Ncss|]}|dfVqdS)TNr)�.0�krrr�	<genexpr>@sz&PSet._from_iterable.<locals>.<genexpr>)�pre_size)rr�dict)r�itr)rrr�_from_iterable>szPSet._from_iterablecCs|���|���S)z~
        Return a new PSet with element added

        >>> s1 = s(1, 2)
        >>> s1.add(3)
        pset([1, 2, 3])
        )�evolver�add�
persistent)rrrrrr.BszPSet.addcCs(|��}x|D]}|�|�qW|��S)z�
        Return a new PSet with elements in iterable added

        >>> s1 = s(1, 2)
        >>> s1.update([3, 4, 4])
        pset([1, 2, 3, 4])
        )r-r.r/)r�iterable�errrr�updateLs
zPSet.updatecCs,||jkr|���|���Std|��dS)z�
        Return a new PSet with element removed. Raises KeyError if element is not present.

        >>> s1 = s(1, 2)
        >>> s1.remove(2)
        pset([1])
        z Element '%s' not present in PSetN)rr-�remover/�KeyError)rrrrrr3Zs
zPSet.removecCs ||jkr|���|���S|S)zc
        Return a new PSet with element removed. Returns itself if element is not present.
        )rr-r3r/)rrrrr�discardgs
zPSet.discardc@s@eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dS)z
PSet._Evolver)�_original_pset�
_pmap_evolvercCs||_|j��|_dS)N)r6rr-r7)rZ
original_psetrrr�__init__sszPSet._Evolver.__init__cCsd|j|<|S)NT)r7)rrrrrr.ws
zPSet._Evolver.addcCs|j|=|S)N)r7)rrrrrr3{szPSet._Evolver.removecCs
|j��S)N)r7�is_dirty)rrrrr9szPSet._Evolver.is_dirtycCs|��s|jSt|j���S)N)r9r6rr7r/)rrrrr/�szPSet._Evolver.persistentcCs
t|j�S)N)rr7)rrrrr�szPSet._Evolver.__len__N)
�__name__�
__module__�__qualname__�	__slots__r8r.r3r9r/rrrrr�_Evolverpsr>cCs|S)Nr)rrrr�copy�sz	PSet.copycCs
t�|�S)a!
        Create a new evolver for this pset. For a discussion on evolvers in general see the
        documentation for the pvector evolver.

        Create the evolver and perform various mutating updates to it:

        >>> s1 = s(1, 2, 3)
        >>> e = s1.evolver()
        >>> _ = e.add(4)
        >>> len(e)
        4
        >>> _ = e.remove(1)

        The underlying pset remains the same:

        >>> s1
        pset([1, 2, 3])

        The changes are kept in the evolver. An updated pmap can be created using the
        persistent() function on the evolver.

        >>> s2 = e.persistent()
        >>> s2
        pset([2, 3, 4])

        The new pset will share data with the original pset in the same way that would have
        been done if only using operations on the pset.
        )rr>)rrrrr-�szPSet.evolver)r%)*r:r;r<�__doc__r=rrrrrrr!r$�classmethodr,r.r2r3r5�objectr>r?r-r�__le__�__lt__�__gt__�__ge__�__eq__�__ne__�__and__�__or__�__sub__�__xor__�issubset�
issuperset�union�intersection�
difference�symmetric_difference�
isdisjoint�
__classcell__rr)rrrsH

	#rrr%cCs|stStj||d�S)z�
    Creates a persistent set from iterable. Optionally takes a sizing parameter equivalent to that
    used for :py:func:`pmap`.

    >>> s1 = pset([1, 2, 3, 2])
    >>> s1
    pset([1, 2, 3])
    )r))�_EMPTY_PSETrr,)r0r)rrrr"�s	r"cGst|�S)z�
    Create a persistent set.

    Takes an arbitrary number of arguments to insert into the new set.

    >>> s1 = s(1, 2, 3, 2)
    >>> s1
    pset([1, 2, 3])
    )r")�elementsrrr�s�s
rW)rr%)�_compatrr�sysZpyrsistent._pmapr�version_inforrBr�registerrUr"rWrrrr�<module>s?






Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 11.10 PM
root / root
0755
__init__.cpython-37.opt-1.pyc
1.584 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
__init__.cpython-37.pyc
1.584 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_checked_types.cpython-37.opt-1.pyc
21.088 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_checked_types.cpython-37.pyc
21.088 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_compat.cpython-37.opt-1.pyc
0.635 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_compat.cpython-37.pyc
0.635 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_field_common.cpython-37.opt-1.pyc
10.419 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_field_common.cpython-37.pyc
10.419 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_helpers.cpython-37.opt-1.pyc
3.272 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_helpers.cpython-37.pyc
3.272 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_immutable.cpython-37.opt-1.pyc
3.737 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_immutable.cpython-37.pyc
3.737 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pbag.cpython-37.opt-1.pyc
6.955 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pbag.cpython-37.pyc
6.955 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pclass.cpython-37.opt-1.pyc
9.522 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pclass.cpython-37.pyc
9.522 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pdeque.cpython-37.opt-1.pyc
10.717 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pdeque.cpython-37.pyc
10.717 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_plist.cpython-37.opt-1.pyc
9.03 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_plist.cpython-37.pyc
9.03 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pmap.cpython-37.opt-1.pyc
14.978 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pmap.cpython-37.pyc
14.978 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_precord.cpython-37.opt-1.pyc
6.67 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_precord.cpython-37.pyc
6.67 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pset.cpython-37.opt-1.pyc
6.753 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pset.cpython-37.pyc
6.753 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pvector.cpython-37.opt-1.pyc
22.262 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_pvector.cpython-37.pyc
22.262 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_toolz.cpython-37.opt-1.pyc
3.532 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_toolz.cpython-37.pyc
3.532 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_transformations.cpython-37.opt-1.pyc
3.808 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
_transformations.cpython-37.pyc
3.808 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
typing.cpython-37.opt-1.pyc
1.962 KB
14 Nov 2023 1.59 PM
root / linksafe
0644
typing.cpython-37.pyc
1.962 KB
14 Nov 2023 1.59 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF