%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/more_itertools/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/more_itertools/__pycache__/more.cpython-312.pyc |
� �ݷe�. � �j � d dl Z d dlmZmZmZmZ d dlmZ d dlm Z m Z mZmZ d dl mZmZmZ d dlmZmZmZmZmZmZmZmZmZmZmZmZmZ d dlm Z m!Z!m"Z"m#Z#m$Z$m%Z% d dl&m'Z'm(Z( d d l)m)Z)m*Z*m+Z+ d d l,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3 d dl4m5Z5m6Z6 d dl7m8Z8 d dl9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZD g d�ZEd�d�ZFe:fd�ZGe:fd�ZHe:fd�ZI G d� d� ZJd� ZKd� ZLd� ZMd� ZNd�d�ZOd� ZPd�d�ZQd�d�ZRd�d�ZSd � ZTd�d!�ZUd"� ZVd�d#�ZW G d$� d%� ZXd�d&�ZYd'� ZZd(� Z[d�d)�Z\d�d*�Z]d�d+�Z^d�d,�Z_d�d-�Z`d�d.�Zad�d/�Zbd�d0�Zcd1� Zdd�d2�Zed�d3�Zfd�d4�Zgd5� Zhd�d6�Zid7� Zjddd8�d9�Zkd�d;�Zld<� Zmd=� Zneoepffd>�Zqd�d?�Zrd�d@�Zs G dA� dBej ej� � Zud�dC�ZvdD� ZwexdfdE�ZydF� ZzdG� Z{dH� Z|dI� Z} G dJ� dK� Z~dL� ZdM� Z�dN� fdO�Z�e/fddP�dQ�Z� G dR� dSe� Z� G dT� dU� Z� G dV� dW� Z�exfdX�Z�dY� Z�d:dZ�Z�d�d[�Z�exdfd\�Z�d�d]�Z�d^� Z�d�d_�Z� G d`� da� Z�d�db�Z� G dc� dd� Z�de� Z�df� Z�dg� Z�dh� Z�di� Z�dj� fdk�Z�dl� Z�dm� Z�d�dn�Z�d�do�Z� G dp� dqe�� Z� G dr� ds� Z�dt� Z�d�du�Z�dv� Z�dw� Z�dx� Z�dy� Z�dz� Z�d{� Z�d|� Z�d}� Z� G d~� d� Z�d�� Z�d�� Z�d�� Z�eoepfdd��d��Z�d�d��Z�d�d��Z�d�d��Z�d�d��Z�de:d��d��Z�de�d�fd��Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�d�� Z�y)�� N)�Counter�defaultdict�deque�abc)�Sequence)�cached_property�partial�reduce�wraps)�heapify�heapreplace�heappop) �chain�compress�count�cycle� dropwhile�groupby�islice�repeat�starmap� takewhile�tee�zip_longest�product)�exp� factorial�floor�log�perm�comb)�Empty�Queue)�random� randrange�uniform)� itemgetter�mul�sub�gt�lt�ge�le)� hexversion�maxsize)� monotonic� )�_marker� _zip_equal�UnequalIterablesError�consume�flatten�pairwise�powerset�take�unique_everseen� all_equal�batched)i�AbortThread�SequenceViewr4 �adjacent� all_unique�always_iterable�always_reversible�bucket� callback_iter�chunked�chunked_even�circular_shifts�collapse�combination_index�"combination_with_replacement_index�consecutive_groups�constrained_batches�consumer�count_cycle� countable� difference�distinct_combinations�distinct_permutations� distribute�divide�duplicates_everseen�duplicates_justseen�classify_unique� exactly_n� filter_except� filter_map�first�gray_product�groupby_transform�ichunked�iequals�ilen� interleave�interleave_evenly�interleave_longest�intersperse� is_sorted�islice_extended�iterate� iter_suppress�last�locate�longest_common_prefix�lstrip�make_decorator� map_except�map_if� map_reduce� mark_ends�minmax�nth_or_last�nth_permutation�nth_product� nth_combination_with_replacement� numeric_range�one�only� outer_product�padded�partial_product� partitions�peekable�permutation_index� product_index�raise_�repeat_each�repeat_last�replace�rlocate�rstrip� run_length�sample�seekable�set_partitions�side_effect�sliced� sort_together�split_after�split_at�split_before� split_into� split_when�spy�stagger�strip� strictly_n� substrings�substrings_indexes�takewhile_inclusive�time_limited�unique_in_window�unique_to_each�unzip�value_chain�windowed�windowed_complete� with_iter� zip_broadcast� zip_equal� zip_offsetFc � ��� t t t �t | � � g � �|r#��t d� ���fd�}t |� � S �S )aJ Break *iterable* into lists of length *n*: >>> list(chunked([1, 2, 3, 4, 5, 6], 3)) [[1, 2, 3], [4, 5, 6]] By the default, the last yielded list will have fewer than *n* elements if the length of *iterable* is not divisible by *n*: >>> list(chunked([1, 2, 3, 4, 5, 6, 7, 8], 3)) [[1, 2, 3], [4, 5, 6], [7, 8]] To use a fill-in value instead, see the :func:`grouper` recipe. If the length of *iterable* is not divisible by *n* and *strict* is ``True``, then ``ValueError`` will be raised before the last list is yielded. z*n must not be None when using strict mode.c 3 �V �K � �D ] } t | � �k7 rt d� �| �� �! y �w)Nziterable is not divisible by n.��len� ValueError)�chunk�iterator�ns ���5/usr/lib/python3/dist-packages/more_itertools/more.py�retzchunked.<locals>.ret� s2 �� �� �!� ���u�:��?�$�%F�G�G��� �� �&))�iterr r9 r� )�iterabler� �strictr� r� s ` @r� rE rE � sJ �� �&