%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/operator.cpython-311.pyc

�

c��f�*���dZgd�ZddlmZd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�ZeZd�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@d'�Z(d(�Z)Gd)�d*��Z*Gd+�d,��Z+Gd-�d.��Z,d/�Z-d0�Z.d1�Z/d2�Z0d3�Z1d4�Z2d5�Z3d6�Z4d7�Z5d8�Z6d9�Z7d:�Z8d;�Z9d<�Z:	dd=l;Tdd>l;mZn#e<$rYnwxYweZ=eZ>eZ?eZ@e	ZAe
ZBeZCeZDeZEeZFe)ZGeZHeZIeZJeZKeZLeZMeZNeZOeZPeZQeZReZSeZTeZUeZVe ZWe!ZXe"ZYe$ZZe%Z[e'Z\e-Z]e.Z^e/Z_e0Z`e1Zae2Zbe3Zce4Zde5Zee6Zfe7Zge8Zhe9Zie:Zjd?S)Aas
Operator Interface

This module exports a set of functions corresponding to the intrinsic
operators of Python.  For example, operator.add(x, y) is equivalent
to the expression x+y.  The function names are those used for special
methods; variants without leading and trailing '__' are also provided
for convenience.

This is the pure Python implementation of the module.
)7�abs�add�and_�
attrgetter�call�concat�contains�countOf�delitem�eq�floordiv�ge�getitem�gt�iadd�iand�iconcat�	ifloordiv�ilshift�imatmul�imod�imul�index�indexOf�inv�invert�ior�ipow�irshift�is_�is_not�isub�
itemgetter�itruediv�ixor�le�length_hint�lshift�lt�matmul�methodcaller�mod�mul�ne�neg�not_�or_�pos�pow�rshift�setitem�sub�truediv�truth�xor�)rc��||kS)zSame as a < b.���a�bs  �//opt/alt/python311/lib64/python3.11/operator.pyr(r(����q�5�L�c��||kS)zSame as a <= b.r;r<s  r?r%r%�����6�MrAc��||kS)zSame as a == b.r;r<s  r?rr#rCrAc��||kS)zSame as a != b.r;r<s  r?r-r-'rCrAc��||kS)zSame as a >= b.r;r<s  r?r
r
+rCrAc��||kS)zSame as a > b.r;r<s  r?rr/r@rAc��|S)zSame as not a.r;�r=s r?r/r/5s	���5�LrAc��|rdndS)z*Return True if a is true, False otherwise.TFr;rIs r?r7r79s����4�4�%�rAc�
�||uS)zSame as a is b.r;r<s  r?rr=�����6�MrAc�
�||uS)zSame as a is not b.r;r<s  r?r r As���A�:�rAc� �t|��S)zSame as abs(a).)�_absrIs r?rrGs
����7�7�NrAc��||zS)zSame as a + b.r;r<s  r?rrK����q�5�LrAc��||zS)zSame as a & b.r;r<s  r?rrOrQrAc��||zS)zSame as a // b.r;r<s  r?rrS�����6�MrAc�*�|���S)zSame as a.__index__().)�	__index__rIs r?rrWs���;�;�=�=�rAc��|S)zSame as ~a.r;rIs r?rr[�	��
�2�IrAc��||zS)zSame as a << b.r;r<s  r?r'r'`rTrAc��||zS)zSame as a % b.r;r<s  r?r+r+drQrAc��||zS)zSame as a * b.r;r<s  r?r,r,hrQrAc��||zS)zSame as a @ b.r;r<s  r?r)r)lrQrAc��|S)zSame as -a.r;rIs r?r.r.prXrAc��||zS)zSame as a | b.r;r<s  r?r0r0trQrAc��|
S)zSame as +a.r;rIs r?r1r1xrXrAc��||zS)zSame as a ** b.r;r<s  r?r2r2|rTrAc��||z	S)zSame as a >> b.r;r<s  r?r3r3�rTrAc��||z
S)zSame as a - b.r;r<s  r?r5r5�rQrAc��||zS)zSame as a / b.r;r<s  r?r6r6�rQrAc��||zS)zSame as a ^ b.r;r<s  r?r8r8�rQrAc�x�t|d��s&dt|��jz}t|���||zS)z%Same as a + b, for a and b sequences.�__getitem__�!'%s' object can't be concatenated��hasattr�type�__name__�	TypeError�r=r>�msgs   r?rr�s<���1�m�$�$��1�D��G�G�4D�D����n�n���q�5�LrAc�
�||vS)z(Same as b in a (note reversed operands).r;r<s  r?rr�rLrAc�2�d}|D]}||us||kr|dz
}�|S)z=Return the number of items in a which are, or which equal, b.r9�r;)r=r>�count�is    r?r	r	�s6��
�E�
������6�6�Q�!�V�V��Q�J�E���LrAc��||=dS)zSame as del a[b].Nr;r<s  r?r
r
�s
��	�!���rAc��||S)z
Same as a[b].r;r<s  r?rr�s���Q�4�KrAc�f�t|��D]\}}||us||kr|cS�td���)z!Return the first index of b in a.z$sequence.index(x): x not in sequence)�	enumerate�
ValueError)r=r>rs�js    r?rr�sM���!���A�A���1���6�6�Q�!�V�V��H�H�H���?�@�@�@rAc��|||<dS)zSame as a[b] = c.Nr;)r=r>�cs   r?r4r4�s���A�a�D�D�DrAc��t|t��s&dt|��jz}t	|���	t|��S#t$rYnwxYw	t|��j}n#t$r|cYSwxYw	||��}n#t$r|cYSwxYw|tur|St|t��s&dt|��jz}t	|���|dkrd}t|���|S)a2
    Return an estimate of the number of items in obj.
    This is useful for presizing containers when building from an iterable.

    If the object supports len(), the result will be exact. Otherwise, it may
    over- or under-estimate by an arbitrary amount. The result will be an
    integer >= 0.
    z/'%s' object cannot be interpreted as an integerz'__length_hint__ must be integer, not %sr9z$__length_hint__() should return >= 0)
�
isinstance�intrjrkrl�len�__length_hint__�AttributeError�NotImplementedrx)�obj�defaultrn�hint�vals     r?r&r&�s<���g�s�#�#��@��G�}�}�%�&����n�n��
��3�x�x����
�
�
���
������C�y�y�(������������������d�3�i�i����������������
�n������c�3����8��C�y�y�!�"����n�n��
�Q�w�w�4����o�o���Js5�A�
A�A�A2�2B�B�B�B �B c��||i|��S)zSame as obj(*args, **kwargs).r;)r��args�kwargss   r?rr�s���3������rAc�.�eZdZdZdZd�Zd�Zd�Zd�ZdS)raV
    Return a callable object that fetches the given attribute(s) from its operand.
    After f = attrgetter('name'), the call f(r) returns r.name.
    After g = attrgetter('name', 'date'), the call g(r) returns (r.name, r.date).
    After h = attrgetter('name.first', 'name.last'), the call h(r) returns
    (r.name.first, r.name.last).
    )�_attrs�_callc�(���|sOt|t��std���|f|_|�d����fd�}||_dS|f|z|_t
tt|j������fd�}||_dS)Nzattribute name must be a string�.c�2���D]}t||��}�|S�N)�getattr)r��name�namess  �r?�funcz!attrgetter.__init__.<locals>.func�s(���!�-�-�D�!�#�t�,�,�C�C��
rAc�<���t�fd��D����S)Nc3�.�K�|]}|���V��dSr�r;)�.0�getterr�s  �r?�	<genexpr>z4attrgetter.__init__.<locals>.func.<locals>.<genexpr>s+�����?�?�V�V�V�C�[�[�?�?�?�?�?�?rA��tuple)r��getterss`�r?r�z!attrgetter.__init__.<locals>.funcs'�����?�?�?�?�w�?�?�?�?�?�?rA)	r}�strrlr��splitr�r��mapr)�self�attr�attrsr�r�r�s    @@r?�__init__zattrgetter.__init__�s������	��d�C�(�(�
C�� A�B�B�B��'�D�K��J�J�s�O�O�E�
�
�
�
�
��D�J�J�J��'�E�/�D�K��C�
�D�K�8�8�9�9�G�
@�
@�
@�
@�
@��D�J�J�JrAc�,�|�|��Sr��r��r�r�s  r?�__call__zattrgetter.__call__����z�z�#���rAc
��|jj�d|jj�dd�t	t
|j�����d�S�Nr��(�, �))�	__class__�
__module__�__qualname__�joinr��reprr��r�s r?�__repr__zattrgetter.__repr__sK��"�n�7�7�7�"�n�9�9�9�"�i�i��D�$�+�(>�(>�?�?�?�?�A�	ArAc��|j|jfSr�)r�r�r�s r?�
__reduce__zattrgetter.__reduce__����~�t�{�*�*rAN�	rkr�r��__doc__�	__slots__r�r�r�r�r;rAr?rr�sd��������$�I����$���A�A�A�
+�+�+�+�+rArc�.�eZdZdZdZd�Zd�Zd�Zd�ZdS)r"z�
    Return a callable object that fetches the given item(s) from its operand.
    After f = itemgetter(2), the call f(r) returns r[2].
    After g = itemgetter(2, 5, 3), the call g(r) returns (r[2], r[5], r[3])
    ��_itemsr�c�l����s�f|_�fd�}||_dS�f�zx|_��fd�}||_dS)Nc���|�Sr�r;)r��items �r?r�z!itemgetter.__init__.<locals>.funcs
����4�y� rAc�<���t�fd��D����S)Nc3�(�K�|]}�|V��
dSr�r;)r�rsr�s  �r?r�z4itemgetter.__init__.<locals>.func.<locals>.<genexpr> s'�����3�3��S��V�3�3�3�3�3�3rAr�)r��itemss`�r?r�z!itemgetter.__init__.<locals>.funcs'�����3�3�3�3�U�3�3�3�3�3�3rAr�)r�r�r�r�s `` r?r�zitemgetter.__init__so�����		��'�D�K�
!�
!�
!�
!�
!��D�J�J�J�#'�'�E�/�1�D�K�%�
4�
4�
4�
4�
4��D�J�J�JrAc�,�|�|��Sr�r�r�s  r?r�zitemgetter.__call__#r�rAc
��|jj�d|jj�dd�t	t
|j�����d�Sr�)r�r�rkr�r�r�r�r�s r?r�zitemgetter.__repr__&sK��"�n�7�7�7�"�n�5�5�5�"�i�i��D�$�+�(>�(>�?�?�?�?�A�	ArAc��|j|jfSr�)r�r�r�s r?r�zitemgetter.__reduce__+r�rANr�r;rAr?r"r"sd��������
$�I�
�
�
����A�A�A�
+�+�+�+�+rAr"c�.�eZdZdZdZd�Zd�Zd�Zd�ZdS)r*z�
    Return a callable object that calls the given method on its operand.
    After f = methodcaller('name'), the call f(r) returns r.name().
    After g = methodcaller('name', 'date', foo=1), the call g(r) returns
    r.name('date', foo=1).
    )�_name�_args�_kwargsc��||_t|jt��std���||_||_dS)Nzmethod name must be a string)r�r}r�rlr�r�)r�r�r�r�s    r?r�zmethodcaller.__init__7s>����
��$�*�c�*�*�	<��:�;�;�;���
�����rAc�L�t||j��|ji|j��Sr�)r�r�r�r�r�s  r?r�zmethodcaller.__call__>s'��'�w�s�D�J�'�'���D�t�|�D�D�DrAc�V�t|j��g}|�tt|j����|�d�|j���D����|jj�d|jj	�dd�
|���d�S)Nc3�*K�|]\}}|�d|��V��dS)�=Nr;)r��k�vs   r?r�z(methodcaller.__repr__.<locals>.<genexpr>Ds1����F�F���A�q�q�q�!�!�$�F�F�F�F�F�FrAr�r�r�r�)r�r��extendr�r�r�r�r�r�rkr�)r�r�s  r?r�zmethodcaller.__repr__As����T�Z� � �!�����C��d�j�)�)�*�*�*����F�F���1C�1C�1E�1E�F�F�F�F�F�F�"�n�7�7�7�"�n�5�5�5�"�i�i��o�o�o�o�/�	/rAc��|js|j|jf|jzfSddlm}||j|jfi|j��|jfS)Nr9)�partial)r�r�r�r��	functoolsr�)r�r�s  r?r�zmethodcaller.__reduce__Is^���|�	S��>�D�J�=�4�:�#=�=�=�)�)�)�)�)�)��7�4�>�4�:�F�F���F�F��
�R�RrANr�r;rAr?r*r*.si��������.�I����E�E�E�/�/�/�S�S�S�S�SrAr*c��||z
}|S)zSame as a += b.r;r<s  r?rrS�����F�A��HrAc��||z}|S)zSame as a &= b.r;r<s  r?rrXr�rAc�|�t|d��s&dt|��jz}t|���||z
}|S)z&Same as a += b, for a and b sequences.rfrgrhrms   r?rr]sA���1�m�$�$��1�D��G�G�4D�D����n�n����F�A��HrAc��||z}|S)zSame as a //= b.r;r<s  r?rre����!�G�A��HrAc��||z}|S)zSame as a <<= b.r;r<s  r?rrjr�rAc��||z}|S)zSame as a %= b.r;r<s  r?rror�rAc��||z}|S)zSame as a *= b.r;r<s  r?rrtr�rAc��||z}|S)zSame as a @= b.r;r<s  r?rryr�rAc��||z}|S)zSame as a |= b.r;r<s  r?rr~r�rAc��||z}|S)zSame as a **= b.r;r<s  r?rr�r�rAc��||z}|S)zSame as a >>= b.r;r<s  r?rr�r�rAc��||z}|S)zSame as a -= b.r;r<s  r?r!r!�r�rAc��||z}|S)zSame as a /= b.r;r<s  r?r#r#�r�rAc��||z}|S)zSame as a ^= b.r;r<s  r?r$r$�r�rA)�*)r�N)r9)kr��__all__�builtinsrrOr(r%rr-r
rr/r7rr rrrrrrr'r+r,r)r.r0r1r2r3r5r6r8rrr	r
rrr4r&rrr"r*rrrrrrrrrrrr!r#r$�	_operator�ImportError�__lt__�__le__�__eq__�__ne__�__ge__�__gt__�__not__�__abs__�__add__�__and__r��__floordiv__rV�__inv__�
__invert__�
__lshift__�__mod__�__mul__�
__matmul__�__neg__�__or__�__pos__�__pow__�
__rshift__�__sub__�__truediv__�__xor__�
__concat__�__contains__�__delitem__rf�__setitem__�__iadd__�__iand__�__iconcat__�
__ifloordiv__�__ilshift__�__imod__�__imul__�__imatmul__�__ior__�__ipow__�__irshift__�__isub__�__itruediv__�__ixor__r;rAr?�<module>rs���
�
�8�8�8��!� � � � � �
��������������������� � � �������������������������

�����������������������������������������������
�
�
����A�A�A�
�
�
�%�%�%�%�R � � �%+�%+�%+�%+�%+�%+�%+�%+�N+�+�+�+�+�+�+�+�> S� S� S� S� S� S� S� S�J
�
�
�

�
�
�

�
�
�
�
�
�

�
�
�

�
�
�

�
�
�

�
�
�

�
�
�

�
�
�

�
�
�

�
�
�

�
�
�

�
�
�"�����"�!�!�!�!�!�!���	�	�	��D�	����
��	��	��	��	��	��
��

��

��
�������	�

��
�
�
�
�

��

��
�
�

��	��

��

��
�
�

����

��
�
����������������
���������

�������������s�C�C$�#C$

Zerion Mini Shell 1.0