$83 GRAYBYTE WORDPRESS FILE MANAGER $13

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__//_immutable.cpython-37.pyc
B

W�A[�
�@sddlZddlZddd�ZdS)�N��	ImmutableFc

s�t�tj�r��dd�����fdd�}d}tjdkrBdj|d�}d	�d
d��D��}dj||rhd
|nd|�||d�}|r�t	|�ddl
m}t|dd�}yt�
||�Wn4tk
r�}	zt|	jd|��Wdd}	~	XYnX||S)a�
    Produces a class that either can be used standalone or as a base class for persistent classes.

    This is a thin wrapper around a named tuple.

    Constructing a type and using it to instantiate objects:

    >>> Point = immutable('x, y', name='Point')
    >>> p = Point(1, 2)
    >>> p2 = p.set(x=3)
    >>> p
    Point(x=1, y=2)
    >>> p2
    Point(x=3, y=2)

    Inheriting from a constructed type. In this case no type name needs to be supplied:

    >>> class PositivePoint(immutable('x, y')):
    ...     __slots__ = tuple()
    ...     def __new__(cls, x, y):
    ...         if x > 0 and y > 0:
    ...             return super(PositivePoint, cls).__new__(cls, x, y)
    ...         raise Exception('Coordinates must be positive!')
    ...
    >>> p = PositivePoint(1, 2)
    >>> p.set(x=3)
    PositivePoint(x=3, y=2)
    >>> p.set(y=-3)
    Traceback (most recent call last):
    Exception: Coordinates must be positive!

    The persistent class also supports the notion of frozen members. The value of a frozen member
    cannot be updated. For example it could be used to implement an ID that should remain the same
    over time. A frozen member is denoted by a trailing underscore.

    >>> Point = immutable('x, y, id_', name='Point')
    >>> p = Point(1, 2, id_=17)
    >>> p.set(x=3)
    Point(x=3, y=2, id_=17)
    >>> p.set(id_=18)
    Traceback (most recent call last):
    AttributeError: Cannot set frozen members id_
    �,� cs(dd��D�}|r$djd�|�d�SdS)NcSsg|]}|�d�rd|�qS)�_z'%s')�endswith)�.0�f�r
�H/opt/alt/python37/lib64/python3.7/site-packages/pyrsistent/_immutable.py�
<listcomp>7sz9immutable.<locals>.frozen_member_test.<locals>.<listcomp>z�
        frozen_fields = fields_to_modify & set([{frozen_members}])
        if frozen_fields:
            raise AttributeError('Cannot set frozen members %s' % ', '.join(frozen_fields))
            z, )�frozen_membersr)�format�join)r
)�membersr
r�frozen_member_test6sz%immutable.<locals>.frozen_member_testr)��z, verbose={verbose})�verbosez, css|]}d|VqdS)z'%s'Nr
)r�mr
r
r�	<genexpr>Fszimmutable.<locals>.<genexpr>a�
class {class_name}(namedtuple('ImmutableBase', [{quoted_members}]{verbose_string})):
    __slots__ = tuple()

    def __repr__(self):
        return super({class_name}, self).__repr__().replace('ImmutableBase', self.__class__.__name__)

    def set(self, **kwargs):
        if not kwargs:
            return self

        fields_to_modify = set(kwargs.keys())
        if not fields_to_modify <= {member_set}:
            raise AttributeError("'%s' is not a member" % ', '.join(fields_to_modify - {member_set}))

        {frozen_member_test}

        return self.__class__.__new__(self.__class__, *map(kwargs.pop, [{quoted_members}], self))
z	set([%s])zset())�quoted_membersZ
member_setr�verbose_string�
class_namer)�
namedtupleZpyrsistent_immutable)r�__name__z:
N)�
isinstance�six�string_types�replace�split�sys�version_inforr�print�collectionsr�dictZexec_�SyntaxError�message)
r�namerrrr�templater�	namespace�er
)rr�	immutables*-
$r,)rrF)r!rr,r
r
r
r�<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