관리-도구
편집 파일: new_min_max.cpython-311.pyc
� �܋f� � �p � d dl Z d dlmZ ej r d dlmZmZ nd dl mZmZ e � � Zd� Zd� Z d� ZdS )� N)�utils)�max�minc �, � t t g| �R i |��S �N)�new_min_max�_builtin_min��args�kwargss �l/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/future/builtins/new_min_max.py�newminr � � ��|�5�d�5�5�5�f�5�5�5� c �, � t t g| �R i |��S r )r �_builtin_maxr s r �newmaxr r r c �� � |� � � D ](\ }}|t ddg� � vrt d|� � ��)t |� � dk rt �t |� � dk r)|� dt � � t urt �t |� � dk r�t |d � � } t |� � }t j |g|� � }nn# t $ ra |� dt � � t ur|� d� � cY S t d� | j � � � � �w xY w|� d� � � | ||� d� � �� � S | |� � S t |� � dk r@|� d� � � | ||� d� � �� � S | |� � S dS ) z� To support the argument "default" introduced in python 3.4 for min and max :param _builtin_func: builtin min or builtin max :param args: :param kwargs: :return: returns the min or max based on the arguments passed �key�defaultzIllegal argument %sr � z{}() arg is an empty sequenceN)r )�items�set� TypeError�len�get� _SENTINEL�iter�next� itertools�chain� StopIteration� ValueError�format�__name__)� _builtin_funcr r r �_�iterator�firsts r r r s� � � �,�,�.�.� 8� 8���Q��c�5�)�,�-�-�-�-��1�3�7�7�7� .� �4�y�y�A�~�~��� �4�y�y�A�~�~�&�*�*�Y� �:�:�)�K�K��� �4�y�y�A�~�~���Q��=�=�� :���N�N�E� !���w��9�9�H�H�� � a� a� a��z�z�)�Y�/�/�y�@�@��z�z�)�,�,�,�,�,� �!@�!G�!G� �H^�!_�!_�`�`�`� a���� �:�:�e���(� �=��v�z�z�%�/@�/@�A�A�A�A� �=��*�*�*� �4�y�y�1�}�}��:�:�e���(� �=��6�:�:�e�+<�+<�=�=�=�=� �=��&�&�&� �}s �=C# �#AE�&(E)r �futurer �PY2�__builtin__r r r r �builtins�objectr r r r � r r �<module>r0 s� �� � � � � � � � � � ��9� B�D�D�D�D�D�D�D�D�D�A�A�A�A�A�A�A�A��F�H�H� �6� 6� 6�6� 6� 6�''� ''� ''� ''� ''r