| Server IP : 162.19.112.25 / Your IP : 216.73.216.88 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/pyrsistent/__pycache__/ |
Upload File : |
�
��
�Y�+� � � d dl mZmZ d dlmZ d dlmZ d dlmZ G d� d� � Z G d� de � � Z
G d � d
e � � Z G d� de� � Z
ej e
� � ej e
� � d
� Z ei d � � Zi d fd�Zd� ZdS )� )�Mapping�Hashable)�chain)�pvector�� transformc �* � e Zd ZdZd� Zd� Zd� Zd� ZdS )�PMapViewa� View type for the persistent map/dict type `PMap`.
Provides an equivalent of Python's built-in `dict_values` and `dict_items`
types that result from expreessions such as `{}.values()` and
`{}.items()`. The equivalent for `{}.keys()` is absent because the keys are
instead represented by a `PSet` object, which can be created in `O(1)` time.
The `PMapView` class is overloaded by the `PMapValues` and `PMapItems`
classes which handle the specific case of values and items, respectively
Parameters
----------
m : mapping
The mapping/dict-like object of which a view is to be created. This
should generally be a `PMap` object.
c �� � t |t � � s4t |t � � rt |� � }nt d� � �t
� | d|� � d S )Nz"PViewMap requires a Mapping object�_map)�
isinstance�PMapr �pmap� TypeError�object�__setattr__)�self�ms �b/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib/python3.11/site-packages/pyrsistent/_pmap.py�__init__zPMapView.__init__ sb � ��!�T�"�"� F��!�W�%�%�
F���G�G���� D�E�E�E����4���+�+�+�+�+� c �* � t | j � � S �N)�lenr �r s r �__len__zPMapView.__len__"