403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python312/Lib/site-packages/numpy/lib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python312/Lib/site-packages/numpy/lib/__pycache__/_version.cpython-312.pyc
�

	�g���*�dZddlZdgZGd�d�Zy)aUtility to compare (NumPy) version strings.

The NumpyVersion class allows properly comparing numpy version strings.
The LooseVersion and StrictVersion classes that distutils provides don't
work; they don't recognize anything like alpha/beta/rc/dev versions.

�N�NumpyVersionc�V�eZdZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d	�Z
d
�Zd�Zd�Z
d
�Zy)ra�Parse and compare numpy version strings.

    NumPy has the following versioning scheme (numbers given are examples; they
    can be > 9 in principle):

    - Released version: '1.8.0', '1.8.1', etc.
    - Alpha: '1.8.0a1', '1.8.0a2', etc.
    - Beta: '1.8.0b1', '1.8.0b2', etc.
    - Release candidates: '1.8.0rc1', '1.8.0rc2', etc.
    - Development versions: '1.8.0.dev-f1234afa' (git commit hash appended)
    - Development versions after a1: '1.8.0a1.dev-f1234afa',
                                     '1.8.0b2.dev-f1234afa',
                                     '1.8.1rc1.dev-f1234afa', etc.
    - Development versions (no git hash available): '1.8.0.dev-Unknown'

    Comparing needs to be done against a valid version string or other
    `NumpyVersion` instance. Note that all development versions of the same
    (pre-)release compare equal.

    Parameters
    ----------
    vstring : str
        NumPy version string (``np.__version__``).

    Examples
    --------
    >>> from numpy.lib import NumpyVersion
    >>> if NumpyVersion(np.__version__) < '1.7.0':
    ...     print('skip')
    >>> # skip

    >>> NumpyVersion('1.7')  # raises ValueError, add ".0"
    Traceback (most recent call last):
        ...
    ValueError: Not a valid numpy version string

    z	numpy.libc��||_tjd|�}|std��|j	�|_|j
j
d�D�cgc]
}t|���c}\|_|_	|_
t|�|j�k(rd|_
n�tjd||j�d�}tjd||j�d�}tjd||j�d�}|||fD�cgc]}|��|��	}}|r|dj	�|_
nd	|_
ttjd
|��|_ycc}wcc}w)Nz
\d+\.\d+\.\d+z Not a valid numpy version string�.�finalza\dzb\dzrc\dr�z.dev)�vstring�re�match�
ValueError�group�version�split�int�major�minor�bugfix�len�end�pre_release�bool�search�
is_devversion)	�selfr	�ver_main�x�alpha�beta�rc�m�pre_rels	         �4C:\Python312\Lib\site-packages\numpy/lib/_version.py�__init__zNumpyVersion.__init__7s=������8�8�,�g�6����?�@�@��~�~�'����L�L���s�#�/%�!�s�1�v�/%�+��
�D�J����w�<�8�<�<�>�)�&�D���H�H�V�W�X�\�\�^�_�%=�>�E��8�8�F�G�H�L�L�N�O�$<�=�D����'�7�8�<�<�>�?�#;�<�B�#(�$��"3�E�Q�q�}�q�E�G�E��#*�1�:�#3�#3�#5�� �#%�� �!�"�)�)�G�W�"=�>����/%��Fs�E:�%E?�-E?c�f�|j|jk(rx|j|jk(r>|j|jk(rd}|S|j|jkDrd}|Sd}|S|j|jkDrd}|Sd}|S|j|jkDrd}|Sd}|S)zCompare major.minor.bugfixr����)rrr�r�other�vercmps   r"�_compare_versionzNumpyVersion._compare_versionNs����:�:����$��z�z�U�[�[�(��;�;�%�,�,�.��F��
��[�[�5�<�<�/��F��
� �F��
����e�k�k�)����
�
���
��Z�Z�%�+�+�
%��F��
��F��
�c���|j|jk(rd}|S|jdk(rd}|S|jdk(rd}|S|j|jkDrd}|Sd}|S)zCompare alpha/beta/rc/final.rrr%r&)rr's   r"�_compare_pre_releasez!NumpyVersion._compare_pre_releasecs������u�0�0�0��F��
��
�
��
(��F��
��
�
�'�
)��F��
��
�
�� 1� 1�
1��F��
��F��
r+c�2�t|ttf�std��t|t�rt|�}|j	|�}|dk(rD|j|�}|dk(r.|j|jurd}|S|jrd}|Sd}|S)Nz,Invalid object to compare with NumpyVersion.rr&r%)�
isinstance�strrrr*r-rr's   r"�_comparezNumpyVersion._comparers����%�#�|�!4�5��K�L�L��e�S�!� ��'�E��&�&�u�-���Q�;��.�.�u�5�F���{��%�%��)<�)<�<��F��
��'�'��F��
��F��
r+c�*�|j|�dkS�Nr�r1�rr(s  r"�__lt__zNumpyVersion.__lt__�����}�}�U�#�a�'�'r+c�*�|j|�dkSr3r4r5s  r"�__le__zNumpyVersion.__le__�����}�}�U�#�q�(�(r+c�*�|j|�dk(Sr3r4r5s  r"�__eq__zNumpyVersion.__eq__�r:r+c�*�|j|�dk7Sr3r4r5s  r"�__ne__zNumpyVersion.__ne__�r:r+c�*�|j|�dkDSr3r4r5s  r"�__gt__zNumpyVersion.__gt__�r7r+c�*�|j|�dk\Sr3r4r5s  r"�__ge__zNumpyVersion.__ge__�r:r+c� �d|jzS)NzNumpyVersion(%s))r	)rs r"�__repr__zNumpyVersion.__repr__�s��!�D�L�L�0�0r+N)�__name__�
__module__�__qualname__�__doc__r#r*r-r1r6r9r<r>r@rBrD�r+r"rrsF��$�L�J�?�.�*
��,(�)�)�)�(�)�1r+)rHr
�__all__rrIr+r"�<module>rKs%���
��
��M1�M1r+

Youez - 2016 - github.com/yon3zu
LinuXploit