관리-도구
편집 파일: test_unicode.cpython-311.pyc
� �܋f�1 � �� � d dl Z d dlZd dlmZmZmZ d� ZdZdZ d� Z G d� d� � Z G d � d e� � Z G d� de� � Z G d � de� � Z G d� d� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� d� � Z G d� d e� � Z G d!� d"e� � Z G d#� d$e� � Z G d%� d&e� � Z G d'� d(e� � Z G d)� d*e� � Z G d+� d,� � Z G d-� d.e� � Z G d/� d0e� � Z G d1� d2e� � Z G d3� d4e� � Z! G d5� d6e� � Z" G d7� d8e� � Z#dS )9� N)�assert_�assert_equal�assert_array_equalc �P � t | t � � rD| sd}nt d� | D � � � � }|dk rd}n|dk rd}nd}|t | � � z S t | � � }|j �t |� � |j z S t j |j � � |j z S )Nr c �, � g | ]}t |� � ��S � )�ord)�.0�cs �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib64/python3.11/site-packages/numpy/core/tests/test_unicode.py� <listcomp>z!buffer_length.<locals>.<listcomp> s � �/�/�/�a�3�q�6�6�/�/�/� � � i � � ) � isinstance�str�max�len� memoryview�shape�itemsize�np�prod)�arr�charmax�size�vs r � buffer_lengthr s� � ��#�s��� �� 1��G�G��/�/�3�/�/�/�0�0�G��S�=�=��D�D� �u�_�_��D�D��D��c�#�h�h����3���A��w���1�v�v�� �"�"��w�q�w���!�*�,�,r u ऀu c � � t j ddgd�� � } | � d� � }| � d� � }t | |k t j dt �� � � � t || k t j dt �� � � � t | |k t j dt �� � � � t || k t j dt �� � � � t ||� � d S )N�1234z1234 �S��dtypez>Uz<Ur )r �array�astyper �ones�bool�zeros)�str_arr�uni_arr1�uni_arr2s r �test_string_castr. "