| Server IP : 54.37.205.81 / Your IP : 216.73.216.76 Web Server : nginx/1.22.1 System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64 User : debian ( 1000) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/more_itertools/__pycache__/ |
Upload File : |
�
*B;a�� � � � d dl Z d dlmZmZmZmZ d dlmZ d dlm Z d dl
mZmZm
Z
d dlmZmZmZmZ d dlmZmZmZmZmZmZmZmZmZmZmZmZ d dl m!Z!m"Z"m#Z#m$Z$ d d l%m&Z&m'Z' d d
l(m(Z(m)Z)m*Z* d dl+m,Z,m-Z-m.Z.m/Z/m0Z0 d dl1m2Z2m3Z3 d d
l4m5Z5 ddl6m7Z7m8Z8m9Z9m:Z:m;Z;m<Z< g d�Z= e>� � Z?d�d�Z@e?fd�ZAe?fd�ZBe?fd�ZC G d� d� � ZDd� ZEd� ZFd� ZGd� ZHd� ZId�d�ZJd�d�ZKd�d�ZLd � ZMd�d!�ZNd"� ZOd�d#�ZP G d$� d%� � ZQd�d&�ZRd'� ZSd(� ZTd�d)�ZUd�d*�ZVd�d+�ZWd�d,�ZXd�d.�ZYd�d/�ZZd�d0�Z[d�d1�Z\d2� Z]d�d3�Z^d�d5�Z_d�d6�Z`d7� Zad�d9�Zb G d:� d;ec� � Zdd<� Zed=� Zfddd>�d?�Zgd�dA�ZhdB� ZidC� ZjekelffdD�Zmd�dE�Znd�dF�Zo G dG� dHej ejp � � Zqd�dI�ZrdJ� ZsetdfdK�ZudL� ZvdM� ZwdN� Zx G dO� dP� � ZydQ� ZzdR� Z{dS� fdT�Z|e.fddU�dV�Z} G dW� dXe� � Z~ G dY� dZ� � Z G d[� d\� � Z�etfd]�Z�d^� Z�d@d_�Z�d�d`�Z�etdfda�Z�d�db�Z�dc� Z�d�dd�Z� G de� df� � Z�d�dg�Z�dh� Z�di� Z�dj� Z�dk� Z�dl� fdm�Z�dn� Z�do� Z�d�dp�Z�d�dq�Z� G dr� dse�� � Z� G dt� du� � Z�dv� Z�d�dw�Z�dx� Z�dy� Z�dz� Z�d{� Z�d|� Z�d}� Z� G d~� d� � Z�d�� Z�d�� Z�d�� Z�ekelfdd��d��Z�dS )�� N)�Counter�defaultdict�deque�abc)�Sequence)�ThreadPoolExecutor)�partial�reduce�wraps)�merge�heapify�heapreplace�heappop)�chain�compress�count�cycle� dropwhile�groupby�islice�repeat�starmap� takewhile�tee�zip_longest)�exp� factorial�floor�log)�Empty�Queue)�random� randrange�uniform)�
itemgetter�mul�sub�gt�lt)�
hexversion�maxsize)� monotonic� )�consume�flatten�pairwise�powerset�take�unique_everseen)X�AbortThread�adjacent�always_iterable�always_reversible�bucket�
callback_iter�chunked�chunked_even�circular_shifts�collapse�collate�consecutive_groups�consumer� countable�count_cycle� mark_ends�
difference�distinct_combinations�distinct_permutations�
distribute�divide� exactly_n�
filter_except�first�groupby_transform�ilen�interleave_longest�
interleave�interleave_evenly�intersperse�islice_extended�iterate�ichunked� is_sorted�last�locate�lstrip�make_decorator�
map_except�map_if�
map_reduce�nth_or_last�nth_permutation�nth_product�
numeric_range�one�only�padded�
partitions�set_partitions�peekable�repeat_each�repeat_last�replace�rlocate�rstrip�
run_length�sample�seekable�SequenceView�side_effect�sliced�
sort_together�split_at�split_after�split_before�
split_when�
split_into�spy�stagger�strip�
substrings�substrings_indexes�time_limited�unique_to_each�unzip�windowed� with_iter�UnequalIterablesError� zip_equal�
zip_offset�windowed_complete�
all_unique�value_chain�
product_index�combination_index�permutation_index�
zip_broadcastFc �� ��� 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.
Nz*n must not be None when using strict mode.c 3 �b �K � �D ](} t | � � �k rt d� � �| V � �)d S )Nziterable is not divisible by n.��len�
ValueError)�chunk�iterator�ns ���5/usr/lib/python3/dist-packages/more_itertools/more.py�retzchunked.<locals>.ret� sI �� � � �!�
�
���u�:�:��?�?�$�%F�G�G�G������
�
� )�iterr r2 r� )�iterabler� �strictr� r� s ` @r� r: r: � sz ��� �&