403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/__pycache__/test_itertools.cpython-315.pyc
R
>lqj��c�*�]PHs]PHs]PHs]QHGs]QHGsGs]QH
3]PH s]QH$G
s
]QH,Gs]PH4s
]PH8s]PH<s]PH@s]QHDGs]PHLs]PHPs]PHTs]PHXs\O.s\']*
sQsQsQ	sQ
sQsQsQ
s Qs!QQ2s"Qs#Qs$Qs%Qs&Qs'Qs(\)\OT]*2Tt,tFD	oU1QkMJ	tos+QQ\OX2s-QQ\OX2s.QQ\OX2s/QQ\OX2s0Q s1Q!Q"2s2Q#Q$2s3Q%Q&2s4Q'Q(2s5Q)Q*2s6Q+Q,2s7Q-Q.2s8Q/Q02s9Q1s:Q2Q3\OX2s;Q4Q5\OX2s<Q6Q7\OX2s=Q8Q9\OX2s>\O~Q:Q;\OX22s@Q<sA\BQ=6Xc\O�2P!P!ttoh)>�)�support)�threading_helper�
script_helper)�*)�Decimal)�Fraction)�reducec�*�[[U2!�N)�list�zip��argss*�(C:\Python315\\Lib\test\test_itertools.py�lziprs����T�
���c��]U*!)zTest function of one argument���xs&r�oneargrs���Q�3�Jrc��[g)z"Test function that raises an error)�
ValueErrorr
s*r�errfuncrs��
�rc#�. �QFDoUw�	J
	P!3h)zNon-restartable source sequence�r��r)�is r�gen3r"s���
�������c��U]*]6H!�zTest predicaterrs&r�isEvenr#'����Q�3��6�Mrc��U]*]6H!r"rrs&r�isOddr&+r$rc��U!r
rr
s*r�tupleizer(/s���Krc#�@ �[U2FDoUw�	J
	P!3hr
��range)�nrs& r�iranger-2s���
�1�X�����s�c�2`�\sQs]6snQsQsQsQsUsP!)�StopNowz"Class emulating an empty iterable.c��U!r
r��selfs&r�__iter__�StopNow.__iter__8����rc��[gr
��
StopIterationr1s&r�__next__�StopNow.__next__:����rr)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r3r9�__static_attributes__�__classdictcell__��
__classdict__s@rr/r/6s����(���rr/c�,�[[V22!)zHConvenience function for partially consuming a long of infinite iterable)r�islice)r,�seqs&&r�takerH=s����s���rc�:�[[OU]2!�r)r�operator�mul��iterables&r�prodrOAs���(�,�,��!�,�,rc�<�[[]U]*22!)�	Factorial)rOr+�r,s&r�factrSDs����a��1��
��rc��U]*!�rr��rs&r�testRrXI����Q�4�Krc��U]*!�rrrVs&r�testR2r\LrYrc��U]
6!)�
rrs&r�undertenr_Os���R�4�Krc�X�[O[OV22!r
)�pickle�loads�dumps)�s�protos&&r�<lambda>rfRs�����V�\�\�!�5K�(Lrc�`�\sQs]UsnQ=QksQsQsQsQsQs	\
OQ2s\
OQ2Q	2sQ
s\
OQ2s\
OQ2Q2sQ
s\
OQ2s\
OQ2Q2sQsQsQsQs\O42Q>Qk2sQsQsQsQsQs Qs!Qs"Qs#\
OQ2Q2s$Qs%\
OQ2Q2s&Q s'Q!s(Q"s)Q#s*Q$s+Q%s,\
OQ&2s-\
OQ2Q'2s.Q(s/Q)s0Q*s1Q+s2Q,s3Q-s4Q.s5Q/s6Q0s7Q1s8Q2s9\O42Q32s:Q4s;\
OxQ52s=\
OxQ62s>\
OxQ72s?\
OxQ82s@\
OxQ92sA\
OxQ:2sB\
OxQ;2sCQ<sDUsEP!)?�TestBasicOpsc��``�QUU1Qkkn[OV!2o[OU2oUO[	U2[	U22RU2RU2q�UOV�2U%cRU2o
UOV�2[OU2o]o[U2FDo
[
U2U]*
oJ	[OV�2o[OU2oRU2RU2q�UOV�2U%cRV\P2o
UOV�2P!P![cK�h9h)zITest that an iterator is the same after pickling, also when part-consumedc	�:�U]
6�c[Q2g[U[2%cU![[	UR22oSTt,tFDoRV1]*2MJ	to![
cSt!h9httoh)r^zinfinite recursion encountered)�RuntimeError�
isinstance�strrrF�	TypeError)�itr�l�e�expand�stops&&  ��rrr�'TestBasicOps.pickletest.<locals>.expandYsu����2�v�"�#C�D�D��"�c�"�"��	�
����D�)�*��-.�.�A�q�F�1��c�N�A�.�.���
��	�
��.s�A#�A6�#	A3�-A3�2A3rU)rarcrb�assertEqual�typer+�nextr8)r2�protocolrorsrH�compare�dump�i2�a�b�c�i3�tookr�i4rrs&&&f&&         @r�
pickletest�TestBasicOps.pickletestWs%���
	/�
	/��|�|�B�)��
�\�\�$�
������b��4��8�,��b�z�6�"�:�1��������w��A����Q�"��\�\�$�
����	��4�[���R����	��!�
�|�|�B�)��
�\�\�$�
���b�z�6�"�:�1��������w�u�~�&�A����Q�"���
�	��	�s�7'E�	E�E�Ec���UO[[[]
222,QN2UO[[[]
2Q52,QN2[[
[[1FDOoUO[[[U[]
2222[[U,QN222JQ	UO[[Q22,QN2UO[[,22,2UO[[],22],2UO[[[]
2]]2UO[[2UO[[[]
2Q5UO[[[],,22,QNoUO[[U[22,QN2UO[[U[22,Q	N2UO[[U[O22,Q
N2UO[29^tt^2[[U[22PPP2UO[[,QNPQ52,QN2UO[[,QN]dQ52,Q
N2UO[[,]dQ52]d,2UO[29^tt^2[[]
],]d22PPP2P!)%fhK�9h)%fhP!9h)r^rM�abcr)�initial)
rr��r^����$�-)r|�abr�)
r��	��rr��rr�)
rrrrrrrrrr)
rr�r�r�r�r�r�r�r�r�)
r����i�rrrrr)r^r�r)r^r�r�)�d�n�s�t)rur�
accumulater+�int�complexrr�map�assertRaisesrn�min�maxrKrL�chr)r2�typrds&  r�test_accumulate�TestBasicOps.test_accumulate�se������j��r��3�4�>�	@�����j�%��)�<�=�>�	@����(�2�C�����Z��C��r�� 3�4�5��S��B�C�D�
F�3�	
����j��/�0�2D�E�����j��n�-�r�2�����j�!��o�.���4����)�Z��r��A�q�A����)�Z�0����)�Z�5��9��=����)�T�:�q�"�g�+>�?�*������j��C�0�1�7�	9�����j��C�0�1�7�	9�����j��H�L�L�9�:�?�	A�
�
�
�y�
)�
)���A�s�#�$�*�����j��T�B�C�\�R�����j��S�A�B�DX�Y�����j��S�9�:�S�E�B�
�
�
�y�
)�
)���R��H�c�*�+�*�
)�*�
)��
*�
)�
)�s$�2M�,M!�M	�M	�!M2	�*M2	c�`�UO[[Q]22,QN2UO[[Q]22,Q	N2UO[[Q]22,Q
N2UO[[Q]P	Q52,QN2UO[29^tt^2[[Q]P	Q52PPP2UO[
29^tt^2[[Q22PPP2UO[
29^tt^2[[Q]P22PPP2UO[
29^tt^2[[P]22PPP2UO[
29^tt^2[[QQ22PPP2UO[29^tt^2[[Q]22PPP2UO[29^tt^2[[QP22PPP2Qo[
]]2FCDZn[
[U22FCD<oUPUo[[UR22oUOURUQ59^tt^2UOPO[U2U2SO[9PIcQU2D%cJP
L	P	LQU222U%c�UO2oSO[9PIcU1QkU2D%cJP
L	P	LU1QkU222UO[U2R6*2UOU2PPP2CJ?	CJ]	P!)%fhCK�9h)%fhCK�9h)%fhCK�9h)%fhCKn9h)%fhCKG9h)%fhCK 9h)%fhCK�9h)%fhCJ�9h)�ABCDEFG�ABCDEF)�strict�hello�ABCDEFGHIJKLMNOPQRSTUVWXYZ)rdr,�batchesc3�P�SF �Do[U2[Iw�	J	P!3hr
)rv�tuple)�.0�batchs& r�	<genexpr>�,TestBasicOps.test_batched.<locals>.<genexpr>�s��'���'���U��u�(<�'�s�&c3�L:�SF �Do[U2R6Hw�	J	P!3hr
��len)r�r�r,s& �rr�r��s�������C��J�!�O��s�$))�A�B�C)�D�E�F��G)�r�r��r�r��r�r�r�))r�)r�)r�)r�)r�)r�r�)r�r�r�)rur�batchedr�rrnr+r��subTest�join�chain�
assertTrue�all�pop�append)r2�datarrdr��
last_batchr,s&     @r�test_batched�TestBasicOps.test_batched�s��������g�i��3�4�G�	I�����g�i��3�4�I�	K�����g�i��3�4�T�	V�����g�h��$�?�@�A�	C��
�
�z�
*�
*����A�d�3�4�+�
�
�
�y�
)�
)����#�$�*�
�
�
�y�
)�
)����A�t�,�-�*�
�
�
�y�
)�
)����q�!�"�*�
�
�
�y�
)�
)����G�,�-�*�
�
�
�z�
*�
*����A�&�'�+�
�
�
�z�
*�
*����B�'�(�+�,���q�!���A��3�t�9�%�%����!�H���w�q�!�}�-���\�\�A��G�\�<�<��$�$�R�W�W�U�G�_�%=�q�A��O�O�C�C�'R�'�'R�C�C�C�'R�'�'R�$R�S��%,�[�[�]�
������+Q��+Q����+Q��+Q�(Q�R�����J��1�(<�=����z�2�=�<�&��!+�
*�
*��
)�
)�
)��
)�
)�
)��
)�
)�
)��
)�
)�
)��
*�
*�
*��
*�
*�
*��=�<�<�s��>N0�;O�5O�1O,�,P�'P�"P(�"?P<
�"P<
�6P<
�%P<
�<P<
�A	P<
�0O	�9O	�O	�
O	�O)	�!O)	�,O=	�5O=	�P	�	P	�P%	�P%	�(P9	�1P9	�<Q�Qc��Qo[U1FD�oUO[UQQ22[Q22UO[UQ22[Q22UO[UP22,2UO[]UQQ22[Q22UO	[
[U]]22J�	P!)c7�B �SFDoSFDoUw�	J
	J	P!3h)zPure python version in the docsr)�	iterablesro�elements*  r�chain2�'TestBasicOps.test_chain.<locals>.chain2�s�����!�G�!�M� "� ���r��def�abcdef�abcd)r�rurrHr�rn)r2r�r~s&  r�
test_chain�TestBasicOps.test_chain�s���	"����A����T�!�E�5�/�2�D��N�C����T�!�E�(�^�T�%�[�9����T�!�B�%�[�"�-����T�!�Q�u�e�_�5�t�F�|�D����i��a��1�g�6�!rc
��UO[[OQQ,22[Q22UO[[OQ,22[Q22UO[[OP,22,2UO[	][OQQ,22[Q22UO[[[O]],22UO[[[O[[]222]22]],2P!)r�r�r�r�)
rurr��
from_iterablerHr�rnrF�repeatr+r1s&r�test_chain_from_iterable�%TestBasicOps.test_chain_from_iterable�s�������e�1�1�5�%�.�A�B�D��N�S�����e�1�1�5�'�:�;�T�%�[�I�����e�1�1�2�$�7�8�"�=�����a��!4�!4�e�U�^�!D�E�t�F�|�T����)�T�5�+>�+>��1�v�+F�G�����f�U�%8�%8���a��9I�%J�A�N�O�RS�UV�QW�Xrc�`
�UO[[Q2UO[[Q]]2UO[[P2UO[[QQ2QoQoQo[	]2FCDHo[	U2Tt,tFDo]U*]*
MJ	ton
[	U]*2FCDo[[R
U22oSO
[U2Vd6�c]L0[U2[U2*[VF*
2*2UO
[U2[[U222UO
U[U22SFD�oUO
[U2U2UO
[[U22U2UO
[U2[U22SO[9PIcU
1QkU2D%cJP
L	P	LU
1QkU222SO
[U2R
T	t,tFD
p�U7fJU	MJ	to	2J�	UO
U[UR
U222UO
U[UR
U222UO
U[UR
U222CJ	CJK	P!ttohtto	h)r�c3�L` �[U2n[R2oV6�cP![[U22o[9PIc,U1QkU2DMJ	3LU1QkU22w�	[	[U22FD oV4*VB*U*
6wfJL	P!V499*]*
tt$[U]*U2FDoV5]*
*]*V5$J	[9PIc,U1QkU2DMJ	3LU1QkU22w�	J�3h)�%Pure python version shown in the docsc3�B:�SF �DoRU*w�	J	P!3hr
r�r�r�pools& �rr��HTestBasicOps.test_combinations.<locals>.combinations1.<locals>.<genexpr>��������A��Q������c3�B:�SF �DoRU*w�	J	P!3hr
rr�s& �rr�r�����W���W��D��G�G�W�r��r�r�rr+�reversed)rNrWr,�indicesr�jr�s&&    @r�
combinations1�5TestBasicOps.test_combinations.<locals>.combinations1�s�������?�D��D�	�A��u���5��8�n�G��%�1��1�%�%�1��1�1�1��!�%��(�+�A��z�Q�U�Q�Y�.��,���
�a��
��q��s�A��A�!(�1����!1�G�J�'��e�5�W�5�e�e�5�W�5�5�5�s�D$� D$�AD$� AD$�9+D$c3�` �[U2n[R2o[[U2U2FDRo[	U2[U26XfJ[9PIc,U1QkU2DMJ	3LU1QkU22w�	JT	P!3h)r�c3�B:�SF �DoRU*w�	J	P!3hr
rr�s& �rr��HTestBasicOps.test_combinations.<locals>.combinations2.<locals>.<genexpr>�������A��Q����r�)r�r��permutationsr+�sortedr�rNrWr,r�r�s&&  @r�
combinations2�5TestBasicOps.test_combinations.<locals>.combinations2�s\������?�D��D�	�A�'��a��!�4���'�?�d�7�m�3��%�9��9�%�%�9��9�9�9�5���AB	�
B	�/B	c3�` �[U2n[R2o[[U2U2FDRo[[	U22U6XfJ[9PIc,U1QkU2DMJ	3LU1QkU22w�	JT	P!3h)zPure python version from cwr()c3�B:�SF �DoRU*w�	J	P!3hr
rr�s& �rr��HTestBasicOps.test_combinations.<locals>.combinations3.<locals>.<genexpr>r�r�)r�r��combinations_with_replacementr+�setr�s&&  @r�
combinations3�5TestBasicOps.test_combinations.<locals>.combinations3s^������?�D��D�	�A�8��q��1�E���s�7�|�$��)��%�9��9�%�%�9��9�9�9�F�r�c3�8:�SF �D
pR7w�	J	P!3hr
r�r�rq�valuess& �rr��1TestBasicOps.test_combinations.<locals>.<genexpr>���Q���Q��V��Q������)
r�rn�combinationsrr+rrur�rSr�r�r�r�)r2r�r�r�r,rrW�resultr~rqrs&         @r�test_combinations�TestBasicOps.test_combinations�s!������)�\�5�9����)�\�5�!�Q�?����)�\�4�8����*�l�E�2�>�	6�&	:�	:��q���A�&+�A�h�/�h��a��c�"�f�f�h�/�F��1�Q�3�Z�Z���l�6�1�5�6��� � ��V��1�3�a�D��G�d�1�g�<M�PT�UV�UX�PY�<Y�Z�� � ��V��c�#�f�+�.>�?�� � �����8��A��$�$�S��V�Q�/��$�$�S��Q��[�!�4��$�$�T�!�W�f�Q�i�8��O�O�C�C�'?�Q�'?�C�C�C�'?�Q�'?�$?�@��$�$�T�!�W�17�%B��A��6�a�a��%B�D� �� � ���m�F�A�.F�)G�H�� � ���m�F�A�.F�)G�H�� � ���m�F�A�.F�)G�H� ���/��&Cs�K�
K�Kc��UO[[129^tt^2[QQ2PPP2P!)%fhP!9h)�AAi )r��
OverflowError�MemoryErrorrr1s&r�test_combinations_overflow�'TestBasicOps.test_combinations_overflows1��
�
�
�
�{�;�
<�
<���u�%�=�
<�
<�
<���
<�A
	�A
	z"tuple reuse is specific to CPythonc�
�UO[[[[[Q]2222]2UO
[[[[[[Q]22222]2P!��abcde)rur�r�r��idr�assertNotEqualrr1s&r�test_combinations_tuple_reuse�*TestBasicOps.test_combinations_tuple_reuse"�W������S��R��g�q�)A�!B�C�D�a�H����C��C��D��g�q�1I�,J�$K� L�M�q�Qrc�`�[oUO[UQ2UO[UQ]]2UO[UP2UO[UQQ2QoQoQo[	]2FCDno[	U2Tt,tFDo]U*]*
MJ	ton[	U]*2FCD(o[URU22oUO
[U2UVW22UO
[U2[[U222UO
U[U22[[RU22o	U]6XfU]6:cUO
V�2L&UO[U2[U	26�2SFCDo
UO
[U
2U2[U
2TTt,tFDvq�UMJ		o
ooUO
[U
2[[U
222UO
[U
2[U
22SO[9PIcU1QkU
2D%cJP
L	P	LU1QkU
222SO
S
RTt,tFD
p�U
7fJUMJ	to2CJ	UO
U[URU222UO
U[URU222CJ+	CJq	P!ttohttoohttoh)r�c3��` �[U2n[R2oU%fU%cP!],U*o[9PIc,U1QkU2DMJ	3LU1QkU22w�	[[U22FDoV4*U]*
6wfJL	P!V4*]*,V*
*V4P#[9PIc,U1QkU2DMJ	3LU1QkU22w�	J�3h)r�c3�B:�SF �DoRU*w�	J	P!3hr
rr�s& �rr��PTestBasicOps.test_combinations_with_replacement.<locals>.cwr1.<locals>.<genexpr>6r�r�c3�B:�SF �DoRU*w�	J	P!3hr
rr�s& �rr�r>r�r�)r�r�r�r+)rNrWr,r�rr�s&&   @r�cwr1�=TestBasicOps.test_combinations_with_replacement.<locals>.cwr1.s�������?�D��D�	�A�����c�A�g�G��%�1��1�%�%�1��1�1�1��!�%��(�+�A��z�Q��U�*��,��&�z�A�~�.�!�%�8�����e�5�W�5�e�e�5�W�5�5�5�s"�C6�C6�C6�AC6�0C6�+C6c3�` �[U2n[R2o[[U2UQ5FDRo[	U2[U26XfJ[9PIc,U1QkU2DMJ	3LU1QkU22w�	JT	P!3h)r��r�c3�B:�SF �DoRU*w�	J	P!3hr
rr�s& �rr��PTestBasicOps.test_combinations_with_replacement.<locals>.cwr2.<locals>.<genexpr>Fr�r�)r�r��productr+r�rr�s&&  @r�cwr2�=TestBasicOps.test_combinations_with_replacement.<locals>.cwr2@s_������?�D��D�	�A�"�5��8�A�6�6���'�?�d�7�m�3��%�9��9�%�%�9��9�9�9�7�s�AB
�
B
�/B
c��U%f
U%c]!]![V*]*
2[U2*[U]*
2*!rU)rS)r,rWs&&r�numcombs�ATestBasicOps.test_combinations_with_replacement.<locals>.numcombsHs8����q�$�1�$����A��;��a��(�$�q��s�)�3�3rc3�8:�SF �D
pR7w�	J	P!3hr
rrs& �rr��BTestBasicOps.test_combinations_with_replacement.<locals>.<genexpr>arrr)r�r�rnrr+rrur�r�r�rr��groupbyr�)r2�cwrrr&r)r,rrWr�
regular_combsr~�k�v�norunsrqrs&              @r�"test_combinations_with_replacement�/TestBasicOps.test_combinations_with_replacement'sO���+�����)�S�%�0����)�S�%��A�6����)�S�$�/����*�c�5�"�5�	6�$	:�	4�
�q���A�&+�A�h�/�h��a��c�"�f�f�h�/�F��1�Q�3�Z�Z���c�&�!�n�-��� � ��V��h�q�n�=�� � ��V��c�#�f�+�.>�?�� � �����8� $�\�&�!�%<� =�
���6�Q�!�V��$�$�V�;��O�O�C��K�3�}�3E�$E�F��A��$�$�S��V�Q�/�+2�1�:�6�:�C�A�a�:�F�6��$�$�S��[�#�c�&�k�2B�C��$�$�T�!�W�f�Q�i�8��O�O�C�C�'?�Q�'?�C�C�C�'?�Q�'?�$?�@��$�$�V�17�%B��A��6�a�a��%B�D�
 �� � ���d�6�1�o�)>�?�� � ���d�6�1�o�)>�?�- ���/�� 7��
&Cs�
K2�K7�
K=�K=c��UO[[129^tt^2[QQ2PPP2P!)%fhP!9h)r�@)r�r
rr�r1s&r�+test_combinations_with_replacement_overflow�8TestBasicOps.test_combinations_with_replacement_overflowgs1��
�
�
�
�{�;�
<�
<�)�$��6�=�
<�
<�
<�rc�
�[oUO[[[	[
UQ]2222]2UO
[[[	[
[UQ]22222]2P!r)r�rur�r�r�rrr)r2r.s& r�.test_combinations_with_replacement_tuple_reuse�;TestBasicOps.test_combinations_with_replacement_tuple_reusemsZ��+������S��R��W�a��!9�:�;�Q�?����C��C��D��W�a��,A�$B� C�D�a�Hrc
�(`�UO[[2UO[[Q]]2UO[[P2UO[[QQ2UO	[[Q] 22,2UO[[QQ2UO	[[[
]2]22,QN2QQkoQQko[
]2FCDo[
U2Tt,tFDo]U*]*
MJ	ton[
U]*2FCD�o[[RU22oSO	[U2VS6�c]L [U2[V5*
2*2UO	[U2[[U222UO	U[U22SFD�oUO	[U2U2UO	[[U22U2SO[9PIcU1QkU2D%cJP
L	P	LU1QkU222J�	UO	U[URU222UO	U[URU222VS6XfCJ�UO	U[[RP222UO	U[[R222CJ�	CJ	P!ttoh)r�rdc3�` �[U2n[R2oUeSLSoV6�cP![[U22o[[V!*
]*U]*22PPP/*o[9PIc,U1QkUPU2DMJ	3LU1QkUPU22w�	U%c�[	[U22FD�oVE99*]*tt$VE*]6Xc*V5]*PV5U]**V5P#V%*
VE$JMVE*oV6'*V5*tV5$V6'$[9PIc,U1QkUPU2DMJ	3LU1QkUPU22w�	J�	P!P!3h)r�c3�B:�SF �DoRU*w�	J	P!3hr
rr�s& �rr��HTestBasicOps.test_permutations.<locals>.permutations1.<locals>.<genexpr>�s������A��Q����r�c3�B:�SF �DoRU*w�	J	P!3hr
rr�s& �rr�r?�s��[���[��D��G�G�[�r�r�)rNrWr,r��cyclesrr�r�s&&     @r�
permutations1�5TestBasicOps.test_permutations.<locals>.permutations1}s/������?�D��D�	�A��Y��A�A��u���5��8�n�G��%���A��q��s�+�,�T�r�T�2�F��%�5���!��5�%�%�5���!��5�5�5��!�%��(�+�A��I��N�I��y�A�~�&-��c�d�m�g��!��n�&D����$%�E��	�"�I��29�"�+�w�z�/��
�G�B�K�#�e�#A�W�R�a�[�#A�e�e�#A�W�R�a�[�#A�A�A��,���s)�E9�	E9�AE9�=6E9�48E9�-AE9�9E9c3�(` �[U2n[R2oUeSLSo[[U2UQ5FDRo[[	U22U6XfJ[9PIc,U1QkU2DMJ	3LU1QkU22w�	JT	P!3h)r�r"c3�B:�SF �DoRU*w�	J	P!3hr
rr�s& �rr��HTestBasicOps.test_permutations.<locals>.permutations2.<locals>.<genexpr>�r�r�)r�r�r%r+r�r�s&&  @r�
permutations2�5TestBasicOps.test_permutations.<locals>.permutations2�sk������?�D��D�	�A��Y��A�A�"�5��8�A�6�6���s�7�|�$��)��%�9��9�%�%�9��9�9�9�7�s�B�4B�
B�#/Bc3�8:�SF �D
pR7w�	J	P!3hr
rrs& �rr��1TestBasicOps.test_permutations.<locals>.<genexpr>�rrr)�rr�rr�rr�rr)rr)rrr
)
r�rnr�rrurr+r�rSr�r�r�r�)	r2rBrGr,rrWr�prs	&       @r�test_permutations�TestBasicOps.test_permutationsss5������)�\�2����)�\�5�!�Q�?����)�\�4�8����*�l�E�2�>�����l�5�"�5�6��;����)�\�5�#�>�����l�5��8�Q�7�8�+U�	W�	�0	:��q���A�&+�A�h�/�h��a��c�"�f�f�h�/�F��1�Q�3�Z�Z���l�6�1�5�6��� � ��V��1�3�a�D��G�d�1�3�i�<O�P�� � ��V��c�#�f�+�.>�?�� � �����8��A��$�$�S��V�Q�/��$�$�S��Q��[�!�4��O�O�C�C�'?�Q�'?�C�C�C�'?�Q�'?�$?�@� �� � ���m�F�A�.F�)G�H�� � ���m�F�A�.F�)G�H��6��$�$�V�T�,�v�t�2L�-M�N��$�$�V�T�,�v�2F�-G�H� ���/s�Lc��UO[[129^tt^2[QQ2PPP2P!)%fhP!9h)r�r6)r�r
rr�r1s&r�test_permutations_overflow�'TestBasicOps.test_permutations_overflow�s1��
�
�
�
�{�;�
<�
<���e�$�=�
<�
<�
<�rc�
�UO[[[[[Q]2222]2UO
[[[[[[Q]22222]2P!r)rur�r�r�rr�rrr1s&r�test_permutations_tuple_reuse�*TestBasicOps.test_permutations_tuple_reuse�rrc��[]2FCD�oQPUo[]2FCD�o[[V#Q52o[[V#22o[[	V#22o[[V#22oUO
[U2V*2SO
[U2U%c@[V*]*
2[U2*[U]*
2*LU%(2SO
[U2V16�c]L [U2[V*
2*2SO
[U2V16�c]L0[U2[U2*[V*
2*2UO
U[[U222UO
U[[U222UO
U[[U222UO
U[[U222SO
XTTt,tFD o[U2[U26XfJUMJ"	to2SO
XdTt,tFD o[[U22U6XfJUMJ"	to2SO
XvTt,tFD o[U2[U26XfJUMJ"	to2SO
XuTt,tFD o[[U22U6XfJUMJ"	to2UO
U[[[U2OU222UO
U[[[U2OU222UO
U[[U2[U2*22CJ�	CJ�	P!ttohttohttohttoh)r�r�r")
r+rr%r�r�rrur�rSr�r��filter�__contains__)	r2r,rdrWrOr.�perm�comb�ts	&        r�test_combinatorics�TestBasicOps.test_combinatorics�s����q���A��"�1�
�A��1�X�X���G�A�0�1���8��>�?���L��.�/���L��.�/��� � ��T��A�D�1�� � ��S��QR�D���Q��K�$�q�'�,A�4��!��9�,L�]^�Y^�`�� � ��T����A�$�q�'�D���I�:M�N�� � ��T����A�$�q�'�D��G�:K�d�ST�SV�i�:W�X�� � ��v�c�$�i�'8�9�� � ��f�S��X�&6�7�� � ��v�c�$�i�'8�9�� � ��v�c�$�i�'8�9�� � ��&M�$�Q�&��)�T�!�W�:L�q�q�$�&M�N�� � ��'J�4�a�3�s�1�v�;��>���4�'J�K�� � ��'N�4�a�6�!�9�d�1�g�;M���4�'N�O�� � ��'I�3�a�#�c�!�f�+�q�.���3�'I�J�� � ��t�F�3�s�8�3H�3H�$�,O�'P�Q�� � ��t�F�3�t�9�3I�3I�3�,O�'P�Q�� � ��v�c�#�h��T��.B�'C�D�3���*'N��'J��'N��'Is0�2O�O�/O
�O
�,O�O�)O�Oc	�Z�UO[[Q,QNQ52[Q22UO[[Q,QN22[Q22UO[[Q,QN22[P22UO[[Q,Q	N22[Q22UO[[Q,Q
N22[Q22UO[[Q,QN22[Q22Qo[O	[[
]2U22o[O	[Q22oUO[[V#22,Q
NU*2UO[[P[
]22UO[[[
]2P2UO[[[
]22UO[[[
]2P2P!)r�)r��	selectors�ACEF�AC�ABC�BC�'�rrrrrr)rrrrrr)rrrrrr�rrr)rrrrrrrK�rr�r�)	rur�compressr�r�r�r+r�rn)r2r,r�ras&   r�
test_compress�TestBasicOps.test_compress�su������h�H�
�N�O�QU�V\�Q]�^�����h�x��?�@�$�v�,�O�����h�x��?�@�$�r�(�K�����h�x��?�@�$�x�.�Q�����h�x��9�:�D��J�G�����h�u�m�<�=�t�D�z�J����"�"�6�%��(�A�#6�7���'�'��v��7�	�����h�t�7�8�'�A�+�F����)�X�t�U�1�X�>����)�X�u�Q�x��>����)�X�u�Q�x�8����)�X�u�Q�x��>rc���UO[Q[22,QN2UO[Q[]22,QN2UO[][Q[]222QQ,2UO[][	Q[P222QQ,2UO[][	Q[Q222QQ,2UO[[]]]2UO[[Q2UO[][[22[[]*[]*,2UO[]
[[]*
22[[[]*
[]*222UO[]
[[']*
22[[[']*
[']*222UO[][Q22,QN2UO[][Q22,QN2UO[][[Q222[Q2[Q2[Q2,2UO[][[]]222[]]2[]]2[]]2,2]Q*oUO[][U22V]*U]*,2[]2oUO[U2Q2[U2UO[U2Q2[Q2oUO[U2Q	2[U2UO[U2Q2UO[[Q
22Q2UO[[Q22Q
2UO[[[22Q[Q02[[]*
2oUO[U2Q[]*
Q02[U2UO[U2Q[Q02[U2UO[U2Q[]*Q02UO[[[Q222[2[ O']*
[ O']*QP]]
[ O]*
[ O]*1FD9o[[U22oQO#U2oUOVE2J;	[][]*2[ O$2P!) r�r|�
@�1.1z2.1z3.1��zcount(3)zcount(4)z	count(-9)g�$@zcount(10.25)g$@zcount(10.0)�count(�)z	count(%r)��r|r�r}r�r~r�r|r��r}r�)rwrx)r~r�)r|���)r}r���)r|rz)r}r)rng@g@�
@�)r{y@��@����i����i����)rur�countrHrr�rn�maxsizerr+rr�reprrwrv�float�sys�__mod__�exc_info)r2�BIGINTr~r�r1�r2s&     r�
test_count�TestBasicOps.test_count�s:������e�E�G�,�.L�M�����e�E�!�H�-�/M�N�����a��e�E�!�H�!5�6��8�8L�M�����a��U�5��9�!5�6��H�8M�N�����a��U�5��9�!5�6��I�8N�O����)�U�A�q�!�4����)�U�C�0�����a��w��0� �'�A�+�w��{�;�	=�����b�%���	�"2�3��e�G�A�I�w�q�y�9�:�	<�����b�%����
�"3�4��e�W�H�Q�J����
�;�<�	>�����a��t��-�/A�B�����a��w��0�2M�N�����a��w�u�~�!6�7�!�%�.�'�%�.�'�%�.�I�	K�����a��x��1�~�!6�7�"�1�a�.�(�1�a�.�(�1�a�.�I�	K��D�������a��v��/�&��(�F�1�H�1M�N��!�H������a��*�-��Q������a��*�-��"�I������a��+�.��Q������a��"�%�����e�E�l�+�^�<�����e�D�k�*�M�:�����e�G�n�-���y��/B�C��'�A�+�������a��F�7�Q�;�-�q�"9�:��Q������a��F�7�)�1�"5�6��Q������a��F�7�Q�;�-�q�"9�:�����d�5��;�/�0�%�8��;�;�,�q�.�3�;�;�,�q�.�#�r�1�b�#�+�+�a�-�QT�Q\�Q\�]^�Q^�_�A��e�A�h��B��$�$�Q�'�B����R�$�	`�	�a�����S�\�\�^rc�`�UO[Q[]]22,QN2UO[Q[]]Q52,QN2UO[Q[PQ52,QN2UO[[QQ2UO[Q[]]22,QN2UO[Q[]]22,QN2UO[Q[]]22,QN2UO[][[]*
]22[][[]*
[]d*]222UO[][[']*
]22[][[']*
[']d*]222UO[][]
[]*22[[]
]
][]***[]*222UO[][[]22[[]*[]*,2UO[][[[22[][*][*,2UO[][['[22['][,2UO[][]Q22,QN2UO[][]Q22,Q N2UO[][[Q2[Q222[Q2[Q2[Q	2,2UO[][[]]2[]]222[]]2[]]2[]]2,2]Q
*oUO[][UQ52]U]U*,2UO[[][]
Q222[,Q!N22[]]2oUO[U2Q2[U2UO[U2Q
2[Q"]2oUO[U2Q2[U2UO[U2Q2[Q"Q#2oUO[U2Q2[U2UO[U2Q2UO[U2Q2UO[[QQ22Q2UO[[Q]22Q2UO[[QQ22Q2UO[[]
Q22Q2[]
Q2oUO[[U22[2UO[[U22[2[[]*
]2oUO[U2Q[]*
Q02[U2UO[U2Q[Q02[U2UO[U2Q[]*Q02[[]*P2oUO[U2Q[]*Q02[U2UO[U2Q[Q02[U2UO[U2Q[]*
Q02P!)$r�r|r})�start�step�r�g�?roz.1z1.2z1.3rpg@zcount(3, 5)zcount(8, 5)zcount(-9, 0)z
count(-9, -3)zcount(-12, -3)g%@zcount(10.5, 1.25)zcount(10.5)g�?zcount(10.5, 1.0)zcount(10, 1.0)rqz, 2)z, -1))�r|r)r}r�)r~r�)rt)r}ry)r~r)r�)r}rrv)r�)r}r�)r~r�)rrng@r{)rr|y!@ �)r^g)@g.@r}rz)rurr~r�rnrHrr+rrrr�rwrvr�r�)r2r�r~s&  r�test_count_with_step�!TestBasicOps.test_count_with_steps�������e�E�!�A�J�/�1O�P�����e�E��q�$9�:�7�	9�����e�E�r�N�3�9�	;����)�U�C��5�����e�E�!�A�J�/�1O�P�����e�E�!�A�J�/�1O�P�����e�E�!�A�J�/�1O�P�����b�%���
�A�"6�7��b�%��PR�
�T[�\_�T_�ab�Bc�9d�e�����b�%�����Q�"7�8�$�r�5�'��RT��V]�U]�^a�Ua�cd�Ce�:f�g�����a��r�7�1�9�!5�6��e�B��1�g�a�i�=�(8�'�!�)�D�E�	G�����a��w��!2�3�!�7�Q�;��!��<�	>�����a��w��!8�9�!�1�w�;��G��<�	>�����a���x��!9�:�!��1�g�.�	0�����a��q�$��0�.�A�����a��q�'�!2�3�5I�J�����a��w�u�~�w�t�}�!E�F�!�%�.�'�%�.�'�%�.�I�	K�����a��x��!�}�h�q��m�!D�E�"�1�Q�-��"�R��(�2�b�/�J�	L��D�������a��F�!3�4�q�&�!�F�(�6K�L�����d�1�e�B��n�5�6��=M�8N�O��!�Q�K������a��-�0��Q������a��-�0��"�a�L������a��.�1��Q������a��.�1��"�b�M������a��/�2��Q������a��"2�3�����a��"2�3�����e�D�$�/�0�2E�F�����e�D�!�n�-�}�=�����e�D�$�/�0�2D�E�����e�B��o�.�0@�A��"�c�N������d�1�g���,�����d�1�g���.��'�1�*�a� ������a��F�7�Q�;�-�t�"<�=��Q������a��F�7�)�4�"8�9��Q������a��F�7�Q�;�-�t�"<�=��'�A�+�r�"������a��F�7�Q�;�-�u�"=�>��Q������a��F�7�)�5�"9�:��Q������a��F�7�Q�;�-�u�"=�>rc�Z``�Qn]
o[UQ5nUU1Qko,o[U2FD;o[OUQ5oUO	2UOU2J=	SFDoUO
2J	UO[R2RU*U*2P!)rfr�c�F:�[R2FDo[R2J	P!r
)r+rw)rr~�count_tos ��r�counting_thread�:TestBasicOps.test_count_threading.<locals>.counting_threadds����8�_���Q��%r)�target)	r~r+�	threading�Threadr�r�r�rurw)	r2r��num_threadsr��threadsr�threadr~r�s	&&     @@r�test_count_threading�!TestBasicOps.test_count_threading]s���������t���	����{�#�A��%�%�_�=�F��L�L�N��N�N�6�"�$��F��K�K�M������a��(�[�"8�4�"?�@rc�,�UO]Q5P!)r�r�)r�r1s&r�test_count_with_step_threading�+TestBasicOps.test_count_with_step_threadingps���!�!�q�!�)rc
��UO[]
[Q22[Q22UO[[P22,2UO	[
[2UO	[
[]2UO[[
[[22]
22,QN2P!)r^r��
abcabcabca)
rrrrrrrrrr)rurH�cyclerr�rnrFrr1s&r�
test_cycle�TestBasicOps.test_cycless������b�%��,�/��l�1C�D�����e�B�i��"�-����)�U�+����)�U�A�.�����f�U�4�6�]�2�6�7�9N�Orc�
``�UO,[[,222UO,[[,[Q522UO	[
[[Q,22UO	[
[P2UO	[
[QQ]
2,QNo,o[UQ2FD8vq4SFD,oUOV5]*2UO
U2J.	J:	UOV2,o[U[2FDjvq4[U[2FDPvqgSFDDoUOV5]*2UOVe]*2UO
U2JF	JR	Jl	UOV2[U[2TTt,tFDvq4UMJ		ooo[ST	t,tFDp�]*MJ
	to	2o
UO[U2U
2UO[U2[U
22[[Q[]	222o[U[2o[U2vq�[U2vq�[U2vq�UO[U
2,2UO[U2,2UO[U2Q2[U2UO[U2,2Qo[[U22TTt,tFDvq4UMJ		o	ooUOU	,QN2[[U22TTt,tFD%vq4[[U]]22%fJ#UMJ'	o	ooUOU	,QN2[[U22TTt,tFDvq4[[U22U1MJ	o	ooUOU	,QN2[[[U22TTt,tFDvq4[[U22U1MJ	tooP	Q5Q*o	UOU	,QN2QQ	[ 2nQU1Q
kkoP[1QkoUO	RUU]22UO	RUU]22U1QkQ
2oU2U2P,oUO	RUU[Q5UO	RUU2UU1Qkn]RmUO	RUP,R2]RmUO	RUPP,R2P!ttoohtto	httoohttoohttoohttooh)��keyr�c��U!r
rrs&rrf�+TestBasicOps.test_groupby.<locals>.<lambda>����arc��U]*!rUrrVs&rrfr������!�r�	AABBBAAAA�abracadabra��reverse�Nr�Nc��\sQsQsQsP!)�0TestBasicOps.test_groupby.<locals>.ExpectedError�r�r<r=r>r?rArrr�
ExpectedErrorr�����rr�c3�B: �[U2FDoQw�	J
	Rg3h��yor*�r,rr�s& �r�
delayed_raise�0TestBasicOps.test_groupby.<locals>.delayed_raise�������1�X���
������c�\�[V2TTt,tFD
vq4UU2MJ	too!ttoohr
)r-)rN�keyp�funcr0�gs&&&  r�gulp�'TestBasicOps.test_groupby.<locals>.gulp�s'��(/��(?�@�(?���D��G�(?�@�@��@s�(c�0:`�\sQsQsnU1QksQsUsP!)�+TestBasicOps.test_groupby.<locals>.DummyCmp��c�
:�Rgr
r�r2�dstr�s&&�r�__eq__�2TestBasicOps.test_groupby.<locals>.DummyCmp.__eq__��	���#�#rr�r<r=r>r?r�rArB�rDr�s@�r�DummyCmpr�������
$�
$rr��r�c�b:�RO]6�cR9O]*tmU!RgrU��skip��objr��keyfuncs&��rr��*TestBasicOps.test_groupby.<locals>.keyfunc��(����|�|�a������!���
�#�#r�)rr^�)r�r�)r�r�)r�
r�)r��)rr�r�)r�r��)r��r��r�r��r|r}r~�drW�r|r}rW��r�r|�rr})rr~)rr��rrW�r�r�r�rU)rurr-rr�rnr�rXr\r�r�rr+rwr�rF�	Exceptionr�)r2rd�dupr0r��elem�ik�ig�keysrW�expectedkeysro�_�g1�g2�g3r�r�r�r�r�s&                  @@r�test_groupby�TestBasicOps.test_groupbyzsK�������T�'�"�+�.�/�����T�'�"�"�"5�6�7����)�T�7�5�"�+=�>����)�W�d�3����)�W�e�Z��D�
.�����A�}�-�D�A���� � ���G�,��
�
�4� ��.�	
���� ����A�u�%�D�A�!�!�V�,����D��$�$�Q�Q��0��$�$�R�a��1��J�J�t�$��-�&�	
���� �&�a��/�0�/�d�a��/��0��!�,�!�Q�a�D�D�!�,�-������T��L�1�����T��C��$5�6�
��[�%��(�+�,��
�Q��
���R�����R�����R��������b��2�&�����b��2�&�����b��8�,��R������b��2�&�
��"�6�!�9�-�.�-�4�1�Q�-��.�����5�6�"�6�!�9�-�E�-�4�1��f�Q�q��m�1D�Q�Q�-��E�����O�,�+2�6�!�9�+=�>�+=�4�1�c�$�q�'�l�A�
�+=��>�����N�O��7�6�!�9�3E�F�3E�4�1�S��a��\�A�&�3E�F�PT�U�VX�Y������:�;�	�I�	�	 �!%�4�	A�	
���-��}�Q�/?�@����-��}�Q�/?�@�	$�	$��Z���T�*��	
���-��q�r��:����-��q�1�	$�������-���v�w�?�������-���d�|�W�E��O1��,��(
/��
F��
?��Gs*�5T�T#�T(�"T.�/T.�"#T4�7#T:
c�``�U1QkQ2nU1Qko[OPP,U2O2n[R2[R2P!)c�6:`�\sQsQsnQsU1QksQsUsP!)�BTestBasicOps.test_groupby_reentrant_eq_does_not_crash.<locals>.Key��c��VmP!r
��
do_advance�r2rs&&r�__init__�KTestBasicOps.test_groupby_reentrant_eq_does_not_crash.<locals>.Key.__init__����",�rc�^:�UO%cP
Um[R2[!P
!�F)rrw�NotImplemented)r2�otherr�s&&�rr��ITestBasicOps.test_groupby_reentrant_eq_does_not_crash.<locals>.Key.__eq__�s#����?�?�?�&+�D�O���G�)�)�rr�r<r=r>r?rr�rArB)rDr�s@�r�Keyr��s����
-�
�
rr
c3�>: �RP	2w�	RP
2w�	P!3h�Tr)r
s�rr��CTestBasicOps.test_groupby_reentrant_eq_does_not_crash.<locals>.keys�s�����d�)�O��e�*��s�)�	itertoolsr-�sendrw)r2r�r
r�s& @@r�(test_groupby_reentrant_eq_does_not_crash�5TestBasicOps.test_groupby_reentrant_eq_does_not_crash�s>���		�		�	�
���t�T�l�D�F�K�K�8���Q���Q�rc��``�PnU1QkQ2nU1Qko[O[]2U2o[U2von[	R2oUO[
U2]2P!)Nc�::`�\sQsQsnPsQsU1QksQsUsP!)�BTestBasicOps.test_grouper_reentrant_eq_does_not_crash.<locals>.Key�c��VmP!r
rrs&&rr�KTestBasicOps.test_grouper_reentrant_eq_does_not_crash.<locals>.Key.__init__�rrc�:�UO%c$P
UmRd[R2[![!P	![c	[!h9hr)rrwr8r	)r2r
�grouper_iters&&�rr��ITestBasicOps.test_grouper_reentrant_eq_does_not_crash.<locals>.Key.__eq__�sP����?�?�?�&+�D�O�#�/�!� ��.�*�)�>�)��� -�!� �)�)�!�s�:�	A
�A
�A
r)	r<r=r>r?�__hash__rr�rArB)rDrs@�rr
r�s�����H�
-�

�

rr
c�8:�U]6Xc
RP	Q5!RP
Q5!)rrr)r�r
s&�rr��FTestBasicOps.test_grouper_reentrant_eq_does_not_crash.<locals>.keyfuncs ����!�|��d�+�+��%�(�(r)rr-r+rwrrur�)r2r�r�r��itemsr
rs&    @@r�(test_grouper_reentrant_eq_does_not_crash�5TestBasicOps.test_grouper_reentrant_eq_does_not_crash�s[�����	�	�$	)�

���e�A�h��0�� ��G���\��\�"������U��Q�'rc�j�UO[[[[	]222,QN2UO[[P,QN22]],2UO[[[
,QN22]],2UO[
][[[222,QN2UO[[2UO[[Q2UO[[Q[	]2]2UO[[[]2UO[[[[	]2[	]222,QNo[[[	]22oUO[[OU22U2[[[	]22oUO[[OU22U2[	[O]*2FD�o[[[	]22oUO[[O[O V#222U2[U2UO[[O[O V#222UQ*2J�	[	[O]*2FD-o[[[	]22oUO#V22J/	P!)r�c��U!r
rrs&rrf�*TestBasicOps.test_filter.<locals>.<lambda>���arc��U!r
rrs&rrfr&r'r�rNN)rrr��rrrrr)rrr�r�)rurrYr#r+�boolrHr~r�rnrw�copy�deepcopyra�HIGHEST_PROTOCOLrbrcr�)r2�ansr~res&   r�test_filter�TestBasicOps.test_filters������f�V�U�1�X�6�7��A�����f�T�;�7�8�1�Q�%�@�����f�T�;�7�8�1�Q�%�@�����a�����!8�9�9�E����)�V�,����)�V�Z�8����)�V�Z��q��1�E����)�V�V�Q�7����)�T�6�%��(�E�!�H�+E�F����6�5��8�$������d�i�i��l�+�S�1��6�5��8�$������d�m�m�A�.�/��5��6�2�2�Q�6�7�E��v�u�Q�x�(�A����T�&�,�,�v�|�|�A�/E�"F�G��M���G����T�&�,�,�v�|�|�A�/E�"F�G��R��Q�	8�
�6�2�2�Q�6�7�E��v�u�Q�x�(�A��O�O�E�%�8rc
���UO[[[[	]222,QN2UO[[P,QN22,QN2UO[[[
,QN22,QN2UO[
][[[222,QN2UO[[2UO[[Q2UO[[Q[	]2]2UO[[[]2UO[[[[	]2[	]222P!)r�c��U!r
rrs&rrf�/TestBasicOps.test_filterfalse.<locals>.<lambda>6���1rc��U!r
rrs&rrfr47r5rrir*�rrr)rr�r�r�)rur�filterfalser#r+r+rHr~r�rnrwr1s&r�test_filterfalse�TestBasicOps.test_filterfalse0s�������k�&�%��(�;�<�g�F�����k�$��<�=�w�G�����k�$��<�=�w�G�����a��V�U�W�!=�>�	�J����)�[�1����)�[�*�=����)�[�*�e�A�h��J����)�[�&�!�<����)�T�;�u�Q�x��q��+J�Krc�V�[Q[22TTt,tFDvqV1MJ
	oooUOU,QN2UO[[Q[	]222[Q[	]222UO[[Q[	]222[Q[	]222UO[
][Q[222[Q[	]222UO[[Q22[Q22UO[[22[22UO[[]2UO[[[	]2]2SO[QQ2Tt,tFDo[[U22MJ	to[QQ22SO[QQ2Tt,tFDpDMJ	to[QQ22P!ttoohttohttoh)r�r�r�rs)
rr~rurr+rrHr�rnr�)r2r�yr/�pairs&    r�test_zip�TestBasicOps.test_zip;s���!$�U�5�7�!3�4�!3����u�!3��4�����<�=�����c�%��q��2�3�T�%��q��5J�K�����c�(�E�!�H�5�6��X�u�Q�x�8P�Q�����a��H�e�g� 6�7��h��a��9Q�R�����c�(�m�,�d�8�n�=�����c�e��d�f�-����)�S�!�,����)�S�%��(�A�6�����E�5�8I�J�8I��%��T�
�+�8I�J��e�U�+�	-����3�u�e�+<�=�+<�4�$�+<�=��e�U�+�	-��5��K��=s�H�2H!�;H&c�\�[[[[QQ222oUO	[U2[
U22[[[[[QQ2222oUO	[[OU22[U22P!�r�r�)
rr�rrrur�r�r��dict�fromkeys�r2�idss& r�test_zip_tuple_reuse�!TestBasicOps.test_zip_tuple_reuseKsq���3�r�3�u�e�,�-�.������S��3�s�8�,��3�r�4��E�5� 1�2�3�4������T�]�]�3�/�0�#�c�(�;rc��Q[]2,[]2Q,[Q2[QQ2[QQ2,[Q2[]2[QQ2[Q2[Q2,[Q2[]2[QQ2[Q2[Q2[]2,1FCDo[[[[U222TTt,tFD6o[	STt,tFDp2[U26c	V2*LPMJ	to2MJ8	oooUO[
[U2U2UO[
[U--@2U2STt,tFD.o[9PIc,QU2DMJ	3LQU22MJ0	ooUO[
[U-[Q	Q
5@2U2CJ	UO[][Q[222[
[Q[]2222UO[
[22[
[222UO[
[,22[
[,222UO[
[Q22[
[Q222UO[
[Q--@2[
[[
Q2P,*Q222UO[[]2UO[[[]2]2QFD9o[U[2[!22UO#Q
U*2J;	SO[QQ2Tt,tFDo[	[
U22MJ	to[
[QQ222SO[QQ2Tt,tFDpwMJ	to[
[QQ222P!ttohttoohttoh[cJ�h9httohttoh)r�rp��i4i�i�i�i�c3�\�SF �DpPI9%cQ9%fSw�	J	P!3h)N�Xr)r�rqs& rr��/TestBasicOps.test_ziplongest.<locals>.<genexpr>^s%��a���a��$�Y�.�.�3�3�3�!�3�a�s�,�	,�,rK��	fillvaluer��defgzDid not raise Type in:  r�)r�rO)zzip_longest('abc', fv=1)z3zip_longest('abc', fillvalue=1, bogus_keyword=None))r+r�r�r�r�rur�zip_longestrBrHr~rr�rn�eval�globals�locals�fail)r2rr�argr�r]�stmtr=s&       r�test_ziplongest�TestBasicOps.test_ziplongestRsG����a��!��q��5�!��t��e�D��.��d�4�0@�A��t��e�A�h��d�4�(8�%��+�u�T�{�S��t��e�A�h��d�4�(8�%��+�u�T�{�TY�Z[�T\�]��D� %�S��S�$��%8�9�;�9�!���N��#�3�s�8�|�S�V��=��N�O�9�
�;����T�+�t�"4�5�v�>����T�+�t�":�r�":�;�V�D�JP�Q�&�Q�e�e�@�a�@�e�e�@�a�@�@�&�F�Q����T�+�t�"K�t�c�7J�"K�L�f�U��	
����a��H�e�g� >�?��c�(�TY�Z[�T\�F]�A^�_�����k�m�,�d�3�5�k�:�����k�"�o�.��S��W�
�>�����k�(�3�4�d�3�x�=�6I�J�����k�>�2�>�?��c�$�u�+�t�f�"4�f�=�>�	@����)�[�!�4����)�[�%��(�A�>�
�D�
=��T�7�9�f�h�/��	�	�4�t�;�<�
�	
����E�5�8Q�R�8Q��%��T�
�+�8Q�R��c�%��/�0�	2����;�u�e�+D�E�+D�4�$�+D�E��c�%��/�0�	2��?O��;��R��(�
��
��
S��EsN�P
�'P�=P�P
�$P!�6$P!�
P&�P8�-P=�P
�&	P5�0P5�4P5c�\�[[[[QQ222oUO	[U2[
U22[[[[[QQ2222oUO	[[OU22[U22P!rA)
rr�rrPrur�r�r�rBrCrDs& r�test_zip_longest_tuple_reuse�)TestBasicOps.test_zip_longest_tuple_reuse|sq���3�r�;�u�e�4�5�6������S��3�s�8�,��3�r�4��E�5� 9�:�;�<������T�]�]�3�/�0�#�c�(�;rc�`�[2nU1QkQ2oUO[29^tt^2o[U22PPP2UOWOR2P!)%fhK.9h)c�0:`�\sQsQsnU1QksQsUsP!)�?TestBasicOps.test_zip_longest_bad_iterable.<locals>.BadIterable�c�
:�Rgr
r)r2�	exceptions&�rr3�HTestBasicOps.test_zip_longest_bad_iterable.<locals>.BadIterable.__iter__�s����rr)r<r=r>r?r3rArB)rDras@�r�BadIterabler^�s����
 �
 rrc)rnr�rP�assertIsra)r2rc�cmras&  @r�test_zip_longest_bad_iterable�*TestBasicOps.test_zip_longest_bad_iterable�sU����K�	�	 �	 ��
�
�y�
)�
)�R���
�&�*�	
�
�
�b�l�l�I�.�*�
)�s�A.�.A>	�7A>	c��QQ2oU]][2oU]][2oQoUOUV#2,QN2U]][2oU]][2o[V#]Q5oUO[	U2Q2UO[	U2Q2UO[	U2Q2UO[[U2P!)c�4`�\sQsQsnQsQsQsQsUsP!)�,TestBasicOps.test_bug_7244.<locals>.Repeater�c�@�Vm[U2UmV0mP!r
)�or�r]rq)r2rmr]rqs&&&&rr�5TestBasicOps.test_bug_7244.<locals>.Repeater.__init__�s�����Q�����rc��U!r
rr1s&rr3�5TestBasicOps.test_bug_7244.<locals>.Repeater.__iter__�����rc��UO]6�c&U9O]*tmUO!UOgrU)r]rmrqr1s&rr9�5TestBasicOps.test_bug_7244.<locals>.Repeater.__next__�s,���6�6�A�:��F�F�a�K�F��6�6�M��&�&�Lr)rqrmr]�	r<r=r>r?rr3r9rArBrCs@r�Repeaterrj�s����
�
�
!�
!rruc	���,o[V]Q5FDJvq4[OQ29^tt^2[V412PPP2UO	V412JL	U!)%fhK(9h)rrM�stdout)rPr�captured_output�printr�)r�r�rrr�s&&   r�run�'TestBasicOps.test_bug_7244.<locals>.run�sZ���F�#�B�a�8�8����,�,�X�6�6��1�&�M�7��
�
�q�f�%�9��M�7�6�s�
A"	�"A2
�+A2
rMrN)rNrNrNrL)r8rurkrPrwr�)r2rur�r�rzros&     r�
test_bug_7244�TestBasicOps.test_bug_7244�s���
	!�
	!�"�a��M�
*��
�a��M�
*��	�	
����R��&B�C��a��L�
)��
�a��M�
*��
��1�
-������b��6�*�����b��6�*�����b��6�*����,��b�1rc��UO[[P22,2UO[[Q22,2UO[[Q22Q,21UO[[Q22,QN2UO[[[Q222[[	[Q2[]Q2222UO[29^tt^2[2PPP2UO[29^tt^2[Q]
2PPP2UO[29^tt^2[QQ5PPP2UO[29^tt^2[P2PPP2P!)%fhK�9h)%fhK�9h)%fhKi9h)%fhP!9h)	�r|r�rrfr�rM�r|r})r�)r}r~�r~r�)r�rq)rur�pairwiser+rr�rnr1s&r�
test_pairwise�TestBasicOps.test_pairwise�sJ������h�r�l�+�R�0�����h�s�m�,�b�1�����h�t�n�-�)�l�	,�	-�����h�w�/�0�N�	P�����h�u�V�}�5�6��c�%��-��q�&�1A�B�C�	E��
�
�y�
)�
)��J�*�
�
�
�y�
)�
)��U�B��*�
�
�
�y�
)�
)��e�$�*�
�
�
�y�
)�
)��T�N�*�
)�
*�
)��
)�
)��
)�
)��
)�
)�
)�sH�F0�6
G�(
G�G)�0G	�9G	�G	�G	�G&	�G&	�)G:	�2G:	c��`�U1QkoU].],],1],1],],1,2U].],],],11],],1],1],],1,2U].],],1],],],11],],1],1],],1,2U]].],],1],1],1],],1,2U]].],],],11],1],],1,2U]].],],1],],1],11],],1],1],1],],1,2U]].],],],],111],],],11],1],],1,2P!)c�:``�UU1QkQ2o[U22nSFDoRO[R2U2J 	P!)c�<:`�\sQsQsn]sQsUU1QksQsUsP!)�<TestBasicOps.test_pairwise_reenter.<locals>.check.<locals>.I��c��U!r
rr1s&rr3�ETestBasicOps.test_pairwise_reenter.<locals>.check.<locals>.I.__iter__�����Krc�:�U9O]*
tmUOR7c[R2!UO,!rJ)r~rw)r2ro�
reenter_ats&��rr9�ETestBasicOps.test_pairwise_reenter.<locals>.check.<locals>.I.__next__�s1����J�J��N�J��z�z�Z�/�#�B�x�� �J�J�<�'rr�	r<r=r>r?r~r3r9rArB)rDror�s@��r�Ir��s������ �(�(rr�)r�rurw)r��expectedr��itemror2sf&  @�r�check�1TestBasicOps.test_pairwise_reenter.<locals>.check�s8���
(�
(��!�#��B� ��� � ��b��4�0�!rr�r2r�sf r�test_pairwise_reenter�"TestBasicOps.test_pairwise_reenter�s����
	1�	�q�c��c�A�3�Z�!����S�1�#�J�
�	�	�q�c��S�A�3���*���c�A�3�Z�!����S�1�#�J�
�	�
	�q�c��S�1�#�J��S�A�3���*���c�A�3�Z�!����S�1�#�J�	
�	�	�q�!�f��s�Q�C�j�1�#�
���$��S�1�#�J�
�	�	�q�!�f��c�Q�C�!��:�
���$��S�1�#�J�
�	�	�q�!�f��c�A�3�Z�A�3���*�q�c�*�+��s�Q�C�j�1�#�
���$��S�1�#�J�
�	�
	�q�!�f��S�A�3�!��q�c�
�#�$��c�Q�C�!��:�
���$��S�1�#�J�
�	rc�n`�U1QkoU],2U],2U],2U]],],1],1,2P!)c�:``�UU1QkQ2o[U22nRO[R2U2P!)c�<:`�\sQsQsn]sQsUU1QksQsUsP!)�=TestBasicOps.test_pairwise_reenter2.<locals>.check.<locals>.I�c��U!r
rr1s&rr3�FTestBasicOps.test_pairwise_reenter2.<locals>.check.<locals>.I.__iter__r�rc�:�UOR6�c[gU9O]*
tmUO]6Xc
[RP2!UO,!rJ)r~r8rw)r2ro�maxcounts&��rr9�FTestBasicOps.test_pairwise_reenter2.<locals>.check.<locals>.I.__next__sE����z�z�X�-�+�+��J�J��N�J��z�z�Q��#�B��~�-� �J�J�<�'rrr�)rDror�s@��rr�r��s������ �(�(rr�)r�rur)r�r�r�ror2sf& @�rr��2TestBasicOps.test_pairwise_reenter2.<locals>.check�s.���

(�

(��!�#��B����T�"�X�x�0rrr�sf r�test_pairwise_reenter2�#TestBasicOps.test_pairwise_reenter2�sA���	1� 	�a���
�a���
�a���
�a�Q�C�!��:��s�#�$�%rc��,Q,1Q,Q	Q
,1[]2[]2,,QN1[]2[]2[]2,,1[]2[]2[]2,,1[]2[]2[]2,,11FD�vqUO[[U2U2[]2FDIoUO[[V*2[[U-[	UQ5@22JK	J�	UO[[[[]2,]*22Q2UO
[[[]2P2QoQ]-QkoPQP[]2[]2[	]]]Q5[Q2[]2[[]
22,	o[]d2FCD*o[[O]22Tt,tFDo[OU2MJ	oo[[[
U22o	UO[[[U22U	2UO[[U2[UU22UO[[U2[UU22[[U2oUO[[[U22U	2CJ-	P!ttoh)
r�r"c	?� �[[[U22UOQ]2*o[	U2oU]6XcQw�	P![
9PIcQU2D%fJP	L	P
LQU22%cP!],U*o[9PIc,Q[
V$22DMJ	3LQ[
V$222w�	[[U22FD�oVE*[	V%*2]*
6XcJ(VE99*]*
tt$[U]*U2FDo]VF$J		[9PIc,Q[
V$22DMJ	3LQ[
V$222w�	J�	P!3h)r�c3�J�SF �Do[U2]6Hw�	J	P!3hrUr�)r�r�s& rr��>TestBasicOps.test_product.<locals>.product1.<locals>.<genexpr>(s��e���e�d�3�t�9��>�e�s�#c3�B�SF �DvqV*w�	J	P!3hr
r�r�r�rs&  rr�r�+s��/B���/B�G�D����/B���c3�B�SF �DvqV*w�	J	P!3hr
rr�s&  rr�r�3s��7J���7J�G�D����7J�r�r)	rr�r��getr��anyrr�r+)r�kwds�poolsr,r�rr�s*,     r�product1�+TestBasicOps.test_product.<locals>.product1"s�����U�D�)�*�T�X�X�h��-B�B�E��E�
�A��A�v�����s�4�e�4�s�s�s�4�e�4�4�4���c�A�g�G��%�C�s�5�/B�C�%�%�C�s�5�/B�C�C�C��!�%��(�+�A��z�S���]�Q�%6�6� ��J�!�O�J�"�1�Q�3��]��%&��
�+��%�K�s�5�7J�K�%�%�K�s�5�7J�K�K�K��,��s1�AF�F�F�,F�F�A0F�?F�=Fr�c7�" �U]6c[Q2gSTt,tFDo[U2MJ	toU*o,,oSFD'oSTTt,tFDpRFDpeU,*MJ	J	oooJ)	SFDo[U2w�	J	P!ttohttooh3h)z Pure python version used in docsz"repeat argument cannot be negative)rr�)r�r�r�r�rrr<rOs$*      r�product2�+TestBasicOps.test_product.<locals>.product28s������z� �!E�F�F�-6�7�Y�T�U�4�[�Y�7�&�@�E��T�F���)/�>��A��A�Q�C�%�%��%���>������D�k�!���
8��?�s �B�B�B�B�B	
�#,Br�)r|r}r~�abcdefgr)r|)r}))rrrKrLrM)rrrNi��)r+rurr%rBr�r�rnr�r��random�	randrange�choicerOr��iter)
r2rrrWr�r��argtypesrr��expected_lens
&         r�test_product�TestBasicOps.test_products\��
�"��J��V�f�f�%�&��A�h��a��
!�#M�N��A�h��a��%��(�
+�R�0��A�h��a��%��(�
+�R�0��A�h��a��%��(�
+�R�0�
�L�D�
���T�'�4�.�1�6�:��1�X��� � ��g���&8�!9�!%�g�t�&F�t�1�~�&F�!G�I���	
����T�'�E�!�H�:�a�<�"8�9�:�D�A����)�W�e�A�h��=�	�,	"��	"���r�5��8�U�1�X�t�a�1��7J��	�N�E�"�I�u�U�2�Y�/?�A���s���A�5:�6�;K�;K�A�;N�5O�P�5O��F�M�M�(�+�5O�D�P���C���/�L����S��g�t�n�!5�6��E����T�'�4�.�1�4��$��3H�I����T�'�4�.�1�4��$��3H�I��t�T�?�D����S��g�t�n�!5�6��E���Ps�9!Lc��UO[[129^tt^2[Q,] *QQ-PPP2P!)%fhP!9h)r�r�i)r�r
rr%r1s&r�test_product_overflow�"TestBasicOps.test_product_overflowPs:��
�
�
�
�{�;�
<�
<��t�f�T�k�1�5�1�=�
<�
<�
<�s�A�A	�
A	c�
�UO[[[[[QQ2222]2UO
[[[[[[QQ22222]2P!rA)rur�r�r�rr%rrr1s&r�test_product_tuple_reuse�%TestBasicOps.test_product_tuple_reuseUsW������S��R����)>�!?�@�A�1�E����C��C��D����1F�,G�$H� I�J�A�Nrc	�t�UO[[Q]Q52,QN2UO[[	]2[Q22,QN2UO[[Q]22,QN2UO[][Q22,QN2UO[[Q]22,2UO[[QQ22,2UO
[[2UO
[[P]]2UO
[[PQ2[Q2oUO[U2Q2[Q]2oUO[U2Q2[U2UO[U2Q2P!)	r|)�object�timeszrepeat((1+0j))zrepeat((1+0j), 5)zrepeat((1+0j), 0))r|r|r|))rr|�rr|)rr|rzy�?)	rurr�rr+rHr�rnr�)r2rWs& r�test_repeat�TestBasicOps.test_repeatZs@������f�C�q�9�:�O�L�����e�A�h�v�c�{�3�7�	9�����f�S�!�n�-��?�����a����-��?�����f�S�!�n�-�r�2�����f�S�"�o�.��3����)�V�,����)�V�T�1�a�8����)�V�T�3�7��4�L������a��"2�3��4��O������a��"5�6��Q������a��"5�6rc	�4�UO[[QP22Q2UO[[QQ22Q2UO[[QPQ52Q2UO[[QQQ52Q2P!)r|zrepeat('a', 0)�r�r)rur�r�r1s&r�test_repeat_with_negative_times�,TestBasicOps.test_repeat_with_negative_timeslst������f�S�"�o�.�0@�A�����f�S�"�o�.�0@�A�����f�S��3�4�6F�G�����f�S��3�4�6F�Grc�>�UO[[[O[]2[]]222,QN2UO[[[Q[]222,QN2UO[[[Q[222,QN2UO[][[Q[222QQ,2UO[[[O,22,2UO[[2UO[[[P[]2[]222UO[[[O2UO[[[]
[]222UO[[[[],],22UO[[[[],],22P!)r�r��rrr�rtrurs)rurr�rK�powr+r(r~rHr�rn�negrwrrrr1s&r�test_map�TestBasicOps.test_maprsg������c�(�,�,��a��%��!�*�E�F�+�	-�����c�(�E�5��8�<�=�2�	4�����c�(�E�5�7�;�<�2�	4�����a��H�e�U�W� =�>�!�'�*�	,�����c�(�,�,��3�4�b�9����)�S�)����)�T�3�t�U�1�X�u�Q�x�+H�I����)�S�(�,�,�7����)�T�3�r�5��8�+<�=����*�d�C��!��q�c�,B�C����)�T�3�v��s�Q�C�+@�Arc��UO[[[O[[
]2[
]]2222,QN2UO[][[O[[2[]2222,QN2UO[[[O,22,2UO[[[O[]],2,22Q,2UO[[[[OP,22UO[[2UO[[[OQ,Q2UO[[[]
Q,22UO[[[[Q,22UO[[[[Q,22P!)r��extrar���r�r�)rur�starmaprKr�rr+rHr~r�r�rnrwrrrr1s&r�test_starmap�TestBasicOps.test_starmap�sP������g�h�l�l�C��a��%��!�*�4M�N�O�+�	-�����a�����s�5�7�E�!�H�7M�!N�O�+�	-�����g�h�l�l�B�7�8�"�=�����g�h�l�l�T�1�Q�%�[�M�B�C�d�V�L����)�T�7�8�<�<�$��+H�I����)�W�-����)�W�h�l�l�U�G�W�M����)�T�7�2��w�+?�@����*�d�G�G�e�W�,E�F����)�T�7�6�E�7�+C�Drc��QFDDoUO[[[]d2,UN32[[U22JF	QFDFvqUO[[[]d2,UN32[[U22JH	UO[[[]
2P22[[]
222UO[[[]
2PP22[[]
222UO[[[]
2PPP22[[]
222UO[[[]
2]P22[[]]
222UO[[[]
2]P]22[[]]
]222[	[]
22oUO[[U]22[[]222UO[U2[[]]
222[	[]
22oUO[[U]]22,2UO[U2[[]]
222[]
2oUO[[U2UO[[U]]]]2UO[[UQ]
]2UO[[U]QP2UO[[U]]
P2UO[[U]]
]2UO[[UQ2UO[[UQ]2UO[[U]Q2UO[[UQ]]2UO[[U]Q]2UO[[[[2]]
[222]2[2oUO[[U]]]222],2UO[U2]2QQ2o[OU2o[U]2oUOU22[U2[O 2UO#U22QQ[$2oUO[[[]d2U]
222[[]
222UO[[[]d2U]
2U]2222[[]
]2222UO[[[]d2U]
2U]22U]222[[]
]2]222P!)	r^r|c3�0�SF �Dpw�	J		P!3hr
r)r�rs& rr��+TestBasicOps.test_islice.<locals>.<genexpr>�s������A�a��s�c�.`�\sQsQsnQsQsQsUsP!)�)TestBasicOps.test_islice.<locals>.IntLikei�c��VmP!r
��val�r2r�s&&rr�2TestBasicOps.test_islice.<locals>.IntLike.__init__�s���rc��UO!r
r�r1s&r�	__index__�3TestBasicOps.test_islice.<locals>.IntLike.__index__�s���x�x�rr�)r<r=r>r?rr�rArBrCs@r�IntLiker��s����
�
 �
 rr�))r^r�r�)r^r�r�)r^r�)r^r^�r^r�)r�)))r^r�r�)r^r�r�))r^r�)r^r�))r�)r����rN)rurrFr+r�r�rnrr�r~rrw�weakref�ref�assertIsNotNoner�
gc_collect�assertIsNoner�)r2r�tgtargsro�rar~�wrr�s&       r�test_islice�TestBasicOps.test_islice�so���D�
���T�&��s��";�d�";�<�!�%��,�/�
1���M�D�

���T�&��s��";�d�";�<�!�%��/�2�
4��	
����f�U�2�Y��5�6��U�2�Y��H�����f�U�2�Y��d�;�<�d�5��9�o�N�����f�U�2�Y��d�D�A�B�D��r��O�T�����f�U�2�Y��4�8�9�4��a���;M�N�����f�U�2�Y��4��;�<�d�5��B�PQ�?�>S�T��%��)�_������f�R��m�,�d�5��8�n�=�����b��4��a���#5�6�
�%��)�_������f�R��A�.�/��4�����b��4��a���#5�6��2�Y�����)�V�R�0����)�V�R��A�q�!�<����*�f�b�"�b�!�<����*�f�b�!�R��<����*�f�b�!�R��<����*�f�b�!�R��;����*�f�b�#�6����*�f�b�#�q�9����*�f�b�!�S�9����*�f�b�#�q�!�<����*�f�b�!�S�!�<�����T�&���!�R��"A�B�C�Q�G�
�G������f�Q��1�b�1�2�Q�C�8�����a��!�$�!��
 ��
�[�[��_��
�B��]�����R�T�"��R���������"�$��	 �f�	 �
	
����f�U�3�Z����=�>��U�2�Y��P�����f�U�3�Z����g�b�k�J�K��e�B��m�,�	.�����f�U�3�Z����g�b�k�7�ST�:�V�W��e�B�r�!�n�-�	/rc���,QNoUO[[[U22,QN2UO[[[,22,2UO	[
[2UO	[
[[O2UO	[
[[OQ,Q2UO	[
[[]
Q,22UO	[[[[Q,22[[,QN2oUO[U2,QN2UO	[[U2P!)rr��rr�r�r�rr�r�r�rir�)rrrrrr�rrr)
rur�	takewhiler_r�rnrKr�rwrrr+r8)r2r�r]s&  r�test_takewhile�TestBasicOps.test_takewhile�s���(������i��$�7�8�)�D�����i��"�5�6��;����)�Y�/����)�Y����=����)�Y����u�g�w�O����)�T�9�R�%��+A�B����*�d�I�g��w�,G�H��d�.�/������a��)�,����-��q�1rc�6�,QNoUO[[[U22,QN2UO[[[,22,2UO	[
[2UO	[
[[O2UO	[
[[OQ,Q2UO	[
[[]
Q,22UO	[[[[Q,22P!)rr�r�)r�rr�r�r�r�)rur�	dropwhiler_r�rnrKr�rwrr)r2r�s& r�test_dropwhile�TestBasicOps.test_dropwhile�s���(������i��$�7�8�:J�K�����i��"�5�6��;����)�Y�/����)�Y����=����)�Y����u�g�w�O����)�T�9�R�%��+A�B����*�d�I�g��w�,G�Hrc��]�o[,2vq#UO[U2,2UO[U2,2[[U22vq#UO[	V#2[	[U2[U222[[U22vq#UO[U2[[U222UO[U2[[U222[[U22vq#[]d2FDoUO[
U2U2J 	=UO[U2[[U222[[U22vq#[]d2FDoUO[
U2U2J 	=UO[U2[[]dU222[]2FD�o],U*],U**o[OU2,,1o[[U22oSFD+o[
V�*2o	Vt*OU	2J-	UOU]*[[U222UOU]*[[U222J�	UO[[2UO[[]2UO[[]],Q2UO[[]],]Q2[Q2vq#[U2Q2o
UO[U
2[Q22[[Q2]2vq#o
[]d2FDoUO[
U2U2J 	UO[U2[[Q222UO[
U
2[
U
2,[[]222UO[U2[[]dQ222UO[U
2[[]Q222UO[[QQ2UO[[,P2[]2FD�o[QU2oUO[U2[2UO[U2U2SOSTt,tFDo[U2MJ	to[Q2,U*2J�	[Q2vq#[U2vq�[U
2vq�UO![V#V�V�.2]6H2[Q2voo[U2oUO[U2UO[U]
2UU2oSO![U2[U2t96H9%c&[U2t96H9%c[Q26HLt2[[]
22vq#["O$U2oUO['UQ2[U22=[(O*2UO[,[&UQ2[Q2o[[Q22o[Q2vq#UO[[.O.U22U2UO[[.O.U22U2[[[Q222vq#UO[[.O.U22U2UO[[.O.U22U2[Q2vq#[1]U2[1]U2UO[[.O.U22UQ*2UO[[.O.U22UQ	*2UO[U2UQ*2UO[U2UQ	*2[[Q22vq#[1]dU2[1]<U2UO[[.O.U22UQ
*2UO[[.O.U22UQ*2UO[U2UQ
*2UO[U2UQ*2P!ttoh)��rr�r�rI�invalid�	__class__rf:rNNr):r�NN:�<NN)�teerurr-rr+rwr��shuffler�r�rnrvrr�r�r�r��proxy�getattrrr��ReferenceErrorr,rH)r2r,r|r}rr��order�lists�its�valuer~rrr�rq�f�t1�t2�tnew�t3rOr/�long_anss&                      r�test_tee�TestBasicOps.test_tee�s������2�w�������a��"�%�����a��"�%��6�!�9�~�������a��D��q��5��8�$<�=��6�!�9�~�������a��$�u�Q�x�.�1�����a��$�u�Q�x�.�1��6�!�9�~����s��A����T�!�W�a�(��
�����a��$�u�Q�x�.�1��6�!�9�~����s��A����T�!�W�a�(��
�����a��$�u�S�!�}�"5�6��q��A��C��E�Q�C��E�M�E��N�N�5�!���H�E��f�Q�i�.�C����S�V��������&��
���U�1�X�t�E�!�H�~�6����U�1�X�t�E�!�H�~�6��	
���)�S�)����)�S�!�,����)�S�1�Q�%��5����)�S�1�Q�%��C�8��5�z�����G�E�N������a��$�u�+�.��e�D�k�1�%���a��s��A����T�!�W�a�(������a��$�u�T�{�"3�4����$�q�'�4��7�+�T�%��(�^�<�����a��$�u�S���"7�8�����a��$�u�Q�t�}�"5�6�	
���)�S�%��;����*�c�2�r�2��q��A����]�F����T�&�\�5�1����S��[�!�,����v�6�v�!�d�1�g�v�6��e��
�a��H�	��5�z����1�v����1�v�������Q�1��.�/�1�4�5��U����B��B�x�����)�T�*����)�T�2�.�
�"�X������R��D��H�G�G��R��G�G�D��K�G�H��5��9�~����M�M�!��������K�0�$�q�'�:�
��������.�'�1�k�B��5�k����e��%���5�z�������d�i�i��l�+�S�1�����d�i�i��l�+�S�1��4��e��%�&�������d�i�i��l�+�X�6�����d�i�i��l�+�X�6��5�z����Q��
��Q��
�����d�i�i��l�+�S��W�5�����d�i�i��l�+�S��W�5�����a��#�b�'�*�����a��#�b�'�*��5��<� ����S�!���R�������d�i�i��l�+�X�d�^�<�����d�i�i��l�+�X�c�]�;�����a��(�4�.�1�����a��(�3�-�0��c7s�!e?c�:�Qo[OQU2P!)zHimport typing, copyreg, itertools; copyreg.buggy_tee = itertools.tee(())z-c)r�assert_python_ok)r2�scripts& r�test_tee_dealloc_segfault�&TestBasicOps.test_tee_dealloc_segfaultjs��
4�	�	�&�&�t�V�4rc�`�[[PQ22vq[U2=P!==g9h)Ni-1)rr�r�)r2�forward�backwards&  r�test_tee_del_backward�"TestBasicOps.test_tee_del_backwardss4����t�X� 6�7���	���L���	����s�(�-c��`�U1QkQ2o[U22vonUO[Q29^tt^2[U2PPP2P!)%fhP!9h)c�::`�\sQsQsnP	sQsU1QksQsUsP!)�(TestBasicOps.test_tee_reenter.<locals>.Ii}c��U!r
rr1s&rr3�1TestBasicOps.test_tee_reenter.<locals>.I.__iter__rqrc�V:�UOoP
UmU%c[R2!P!r)�firstrw)r2r'r}s& �rr9�1TestBasicOps.test_tee_reenter.<locals>.I.__next__�s$����
�
��"��
����7�N�r)r')	r<r=r>r?r'r3r9rArB)rDr}s@�rr�r#}s�����E�
�
#�
#rr�r)r�assertRaisesRegexrkrw)r2r�r|r}s&  @r�test_tee_reenter�TestBasicOps.test_tee_reenter|sG���	#�	#��1�3�x���1�
�
#�
#�L�%�
8�
8���G�9�
8�
8�
8�s�A�A(	� A(	c�0``�[O2n[O2nUU1QkQ2o[U22vq#[O[U,Q5oUO2RO
2UO[Q29^tt^2[	U2PPP2RO2UO2P!)%fhK29hRO2SO2h9h)c�8:`�\sQsQsnQsUU1QksQsUsP!)�+TestBasicOps.test_tee_concurrent.<locals>.Ii�c��U!r
rr1s&rr3�4TestBasicOps.test_tee_concurrent.<locals>.I.__iter__�rqrc�J:�RO2RO2P!r
)r��wait)r2�finishr�s&��rr9�4TestBasicOps.test_tee_concurrent.<locals>.I.__next__�s����	�	�����
rr)r<r=r>r?r3r9rArB)rDr3r�s@��rr�r.�s����
�
�
rr�)r�rr)r��Eventrr�rwr�r2r)rkr�r�)r2r�r|r}r�r3r�s&    @@r�test_tee_concurrent� TestBasicOps.test_tee_concurrent�s�������!�����"��	�	��1�3�x����!�!��Q�C�8������	��J�J�L��'�'��e�<�<��Q��=�
�J�J�L��K�K�M�	=�<��
�J�J�L��K�K�M�s*�<.C3�*C �6C3� C0	�)C0	�+C3�3"Dc��UO[[[22[[
[[1FDMoUO[[U,22UO[[U[222JO	UO[[[,P22UO[[[[2P22[,2vq#UO[[U2UO[[U2[[22vq#UO[[U2UO[[U2UO[[[P]22[[[[[[ 1FDQoUO[[UQ,22UO[[UQ[222JS	P!)Nc��U!r
rrs&rrf�1TestBasicOps.test_StopIteration.<locals>.<lambda>�r�rc��U!r
rrs&rrfr:�r�r)r�r8rwrr�r�r-r/rFrr�rYr8r�r�r�r�)r2rrO�qs&   r�test_StopIteration�TestBasicOps.test_StopIteration�sQ�����-��s�u�5����W�-�A����m�T�1�R�5�9����m�T�1�W�Y�<�@�.�	
���-��v�b�$�/?�@����-��v�g�i��/F�G��2�w������-��q�1����-��q�1��7�9�~������-��q�1����-��q�1����-��v�d�A��?��+�s�I�y�'�J�A����m�T�1�Z��3D�E����m�T�1�Z���3K�L�Krc��[P,,]2o[U2[O2UO	[O
[U222P!r
)rrw�gc�collectr��
is_tracked�r2ros& r�test_combinations_result_gc�(TestBasicOps.test_combinations_result_gc�s?��
�4��*�a�
(���R��
�
�
��	
����
�
�d�2�h�/�0rc��[P,,]2o[U2[O2UO	[O
[U222P!r
)r�rwr@rAr�rBrCs& r�,test_combinations_with_replacement_result_gc�9TestBasicOps.test_combinations_with_replacement_result_gc�s=��+�D�"�:�q�
9���R��
�
�
������
�
�d�2�h�/�0rc��[P,,]2o[U2[O2UO	[O
[U222P!r
)r�rwr@rAr�rBrCs& r�test_permutations_result_gc�(TestBasicOps.test_permutations_result_gc�s=���4��*�a�
(���R��
�
�
������
�
�d�2�h�/�0rc��[P,,2o[U2[O2UO	[O
[U222P!r
)r%rwr@rAr�rBrCs& r�test_product_result_gc�#TestBasicOps.test_product_result_gc�s;���d�B�Z�
 ���R��
�
�
������
�
�d�2�h�/�0rc��[,,2o[O2UO[O[U222P!r
)rPr@rAr�rBrwrCs& r�test_zip_longest_result_gc�'TestBasicOps.test_zip_longest_result_gc�s2���"��
��
�
�
������
�
�d�2�h�/�0rc��[PP,2o[O2UO[O[U222P!r
)r�r@rAr�rBrwrCs& r�test_pairwise_result_gc�$TestBasicOps.test_pairwise_result_gc�s4���t�T�l�
#��
�
�
������
�
�d�2�h�/�0rc���]QHGoGoGo[[
[[[[[[[[[U[[ ["[$[&[([*UU[,1oSFDToUO/UQ59^tt^2UO1[2Q29^tt^2]UmPPP2PPP2JV	P!)%fhK9h)%fhJ~9h)r)�_grouper�_tee�_tee_dataobject)�tp�	immutable)rrVrWrXr�r�r�rr�rjr~r�r�r8r-rFr�r�r%r�r�r�rPr�r)rn�foobar)r2rVrWrX�datasetrYs&     r�test_immutable_types�!TestBasicOps.test_immutable_types�s���=�=�����)������������������-
��0�B������$�$��+�+�I�{�C�C� !�B�I�D�%�$��C�C��%�$�$�s0�C 	�/C

�7C 	�
C�C�C 	� C1
�)C1
r)r�rNrJ)Fr<r=r>r?r�r�r�r�r�r	r�bigaddrspacetestr�impl_detailrr3r7r:rPrSrVr^rkr�r�r�requires_working_threadingr�r�r�r�rr"r0r9r>rFrWrZrfr|r�r�r�r�r�r�r�r�r�r�r�r�r�rrrr*r6r=�cpython_onlyrDrGrJrMrPrSr]rArBrCs@rrhrhUs����'$�R,�@(3�T
7�Y�9I�v
���&��&�

���=�>�R�?�R�>@�@
���7��7�

���=�>�I�?�I�
:I�x
���%��%�
���=�>�R�?�R�E�B?� 1,�f>?�@�0�0�2�A�3�A�$*�P�dF�L�*(�@&�6	L�-� 
���=�>�<�?�<�(2�T
���=�>�<�?�<�
/�&2�P�&0�d&�,<F�|
���2��2�
���=�>�O�?�O�7�$H�B�"E�M/�^2�I�q1�f5��
��0�0�2��3��*M�.
���
1��
1�
���1��1�
���1��1�
���1��1�
���1��1�
���1��1�
���"��"rrhc�`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsQsQsQsUsP!)�TestExamplesic�X�UO[[,QN22,QN2P!�r)rrr�r�r�)rr�r�r^r�)rurr�r1s&rr��TestExamples.test_accumulates������j��5�6�8I�Jrc�^�UOPO[QQ22Q2P!�rrd�DEFr�)rur�r�r1s&rr��TestExamples.test_chains"���������u�e�!4�5�x�@rc�t�UOPO[OQQ,22Q2P!ri)rur�r�r�r1s&rr��%TestExamples.test_chain_from_iterables*���������!4�!4�e�U�^�!D�E�x�Prc	��UO[[Q]22,QN2UO[[[]2]22,QN2P!)�ABCD)r��r�r�)r�r��r�r�)r�r�r�)r)rrr�)rrr��rrr�)rurrr+r1s&rr	�TestExamples.test_combinationssE������l�6�1�5�6�[�	]�����l�5��8�Q�7�8�=�	?rc�V�UO[[Q]22,QN2P!)rd))r�r�r�rp)r�r�rq)r�r�)rurr�r1s&rr3�/TestExamples.test_combinations_with_replacements#������;�E�1�E�F�[�	]rc	�h�UO[[Q,QN22[Q22P!)r�rbrg)rurrjr1s&rrk�TestExamples.test_compress!s"������h�x��?�@�$�v�,�Orc	�h�UO[[[]
2]22,QN2P!)r^)r^r�r�r�r�)rurrFr~r1s&rr��TestExamples.test_count$s#������f�U�2�Y��2�3�5I�Jrc	�v�UO[[[Q2]22[Q22P!)ro�ABCDABCDABCD)rurrFr�r1s&rr��TestExamples.test_cycle's'������f�U�6�]�B�7�8�$�~�:N�Orc	�\�UO[[Q,QN22,QN2P!)c��U]6!�r�rrs&rrf�-TestExamples.test_dropwhile.<locals>.<lambda>+���!�A�#r�rr�r�r�r)r�r�r)rurr�r1s&rr��TestExamples.test_dropwhile*s������i�
�{�C�D�g�Nrc
�T�SO[Q2TTt,tFDvqUMJ		too[Q22SO[Q2TTt,tFDvq[U2MJ	too[Q2[Q2[Q2[Q2,2P!ttoohttooh)�AAAABBBCCDAABBB�ABCDAB�
AAAABBBCCD�AAAA�BBB�CCr�)rur-r)r2r0r�s&  rr��TestExamples.test_groupby-s�������0A�(B�C�(B���!�(B�C��h��	)������0E�F�0E���4��7�0E�F��v�,��U��T�$�Z��c��K�	M��D��Fs�B
�B$
c
�j�UO[[Q[]
222,QN2P!)c��U]*!r[rrs&rrf�*TestExamples.test_filter.<locals>.<lambda>4s��q��sr)rr�r�r�r�)rurrYr+r1s&rr0�TestExamples.test_filter3s"������f�]�E�"�I�>�?��Mrc
�j�UO[[Q[]
222,QN2P!)c��U]*!r[rrs&rrf�/TestExamples.test_filterfalse.<locals>.<lambda>7s��A�a�Cr)rrr�r�r�)rurr8r+r1s&rr9�TestExamples.test_filterfalse6s"������k�-��r��C�D�k�Rrc	�`�UO[[[QQ22,QN2P!)r)rr�r^)r�rr��� r�rp)rurr�r�r1s&rr��TestExamples.test_map9s ������c�#�x��9�:�M�Jrc
��UO[[Q]22[Q22UO[[Q]]22[Q22UO[[Q]P22[Q22UO[[Q]P]22[Q22P!�r��AB�CD�CDEFG�ACEG)rurrFr1s&rr��TestExamples.test_islice<s�������f�Y��2�3�T�$�Z�@�����f�Y��1�5�6��T�
�C�����f�Y��4�8�9�4��=�I�����f�Y��4��;�<�d�6�l�Krc�V�UO[[QQ22QQ,2P!)ro�xy�r�r�r�r<)rurrr1s&rr>�TestExamples.test_zipBs#������c�&�$�/�0�:�z�2J�Krc
�Z�UO[[QQQQ52,QN2P!)ror��-rM)r�r�)r�r�)r�r�)rurrPr1s&r�test_zip_longest�TestExamples.test_zip_longestEs$������k�&�$�#�F�G�I�	Krc
��UO[[Q]22[[[QO2222UO[[[
]222,QN2P!)roz#AB AC AD BA BC BD CA CB CD DA DB DC)r)rrr)rrr)rrr)rrr)rrr)rurr�r�r��splitr+r1s&rrP�TestExamples.test_permutationsIsZ������l�6�1�5�6��c�%�)N�)T�)T�)V�W�X�	Z�����l�5��8�4�5�O�	Qrc
��UO[[QQ22[[[QO2222UO[[[
]2]Q52,QN2P!)ror�zAx Ay Bx By Cx Cy Dx Dyr")r7)rrr)rrr)rrr)rrrrh)rrrr�)rurr%r�r�r�r+r1s&rr��TestExamples.test_productOs]������g�f�d�3�4��c�%�)B�)H�)H�)J�K�L�	N�����g�e�A�h�q�9�:�=�	>rc�V�UO[[]
]22,QN2P!)r^)r^r^r^)rurr�r1s&rr��TestExamples.test_repeatVs������f�R��m�,�l�;rc	�b�UO[[[,QN22,QN2P!)r))rr��r�rr�r�)rurr�r�r1s&r�test_stapmap�TestExamples.test_stapmapYs"������g�c�+A�B�C�&�	(rc	�\�UO[[Q,QN22]],2P!)c��U]6!rrrs&rrf�-TestExamples.test_takewhile.<locals>.<lambda>^r�rr�)rurr�r1s&rr��TestExamples.test_takewhile]s"������i�
�{�C�D�q��e�Lrr)r<r=r>r?r�r�r�r	r3rkr�r�r�r�r0r9r�r�r>r�rPr�r�r�r�rArBrCs@rrdrds�����K�A�Q�?�]�P�K�P�O�M�N�S�K�L�L�K�Q�>�<�(�M�Mrrdc�J`�\sQsQsnQsQs\Q2sQsQs	Qs
UsP!)�TestPurePythonRoughEquivalentsiac���Qo[,QN,QN2FDsvq#UOV#Q59^tt^2P[[V#22qTP[UV#22q�UO
VX2UO
VG2PPP2Ju	P![co[S2PqTPo=K_Po=hh9h[co[S2Pq�Po=KpPo=hh9h)%fhJ�9h)c3� �U]6c[Q2g[U2o[[V!229o%cUw�	J#P!3h)zBBatch data into tuples of length n. The last batch may be shorter.zn must be at least one)rr�r�rF)rNr,ror�s&&  r�batched_recipe�JTestPurePythonRoughEquivalents.test_batched_recipe.<locals>.batched_recipedsA����1�u� �!9�:�:��h��B� ����/�/�%�/���0�s�A�1A�	A)rNr,)	rr|r�r�r�rr�r�N)ryrrrr�r�r�r�r�r�r�N)r%r�rr�r�rvru)	r2r�rNr,�e1r�rq�e2r�s	&        r�test_batched_recipe�2TestPurePythonRoughEquivalents.test_batched_recipecs���	�#�R�8�:�K�H����x��5�5�+�!�4���(<�#=��+�!�4��x�(C�#D��� � ��(�� � ��(�6�5�:��!�+�!�!�W�d���+��!�+�!�!�W�d���+��6�5�5�sj�C	�B�
B3�"C	�	B0�B0�B+�&C	�+B0�0C	�3	C�=C�>C�
C	�C�C	�C(
� C(
c�
```�QQknUO,[R,222UO,[R,[Q522UO[[RQ,22UO[RQQ]
2,QNo,oRUQ2FD8vq4SFD,oUOV5]*2UOU2J.	J:	UOV2,oRU[2FDgvq4RU[2FDPvqgSFDDoUOV5]*2UOVe]*2UOU2JF	JR	Ji	UOV2RU[2TTt,tFDvq4UMJ		ooo[ST	t,tFDp�]*MJ
	to	2o
UO[U2U
2UO[U2[U
22[[Q[]	222oRU[2o[U2vq�[U2vq�[U2vq�UO[U
2,2UO[U2,2UO[U2Q2[U2UO[U2,2QoR[U22TTt,tFDvq4UMJ		o	ooUOU	,QN2R[U22TTt,tFD%vq4[[U]]22%fJ#UMJ'	o	ooUOU	,QN2R[U22TTt,tFDvq4[[U22U1MJ	o	ooUOU	,QN2[R[U22TTt,tFDvq4[[U22U1MJ	tooP	Q5Q	*o	UOU	,QN2Q
Q[2nQU1QkkoP[1U1Q
kkoUORUU]22UORUU]22U1QkQ2oU2U2P,oUORUU[Q5UORUU2UU1Qkn]RmUORUP,R2]RmUORUPP,R2P!ttoohtto	httoohttoohttoohttooh)Nc3�````	`
 �UeQLSn
[U2n	P
nUUUU	U
1Qko[R	2nR
R2nR%f'RoUU2oRU1w�	RU6XfJ"SFDoJ	J.P![cP!h9h3h)Nc��U!r
rrs&rrf�UTestPurePythonRoughEquivalents.test_groupby_recipe.<locals>.groupby.<locals>.<lambda>�s��rc3�d: �Rw�	RFDnRR2nRU6wcP!Rw�	J	P	nP!3hr
r)�
target_key�curr_key�
curr_value�	exhausted�iteratorr�s&�����rrV�UTestPurePythonRoughEquivalents.test_groupby_recipe.<locals>.groupby.<locals>._grouper�s8���� � �"*�J�&�z�2�H��:�-��$�$�	#+�
!�	�s�0�0)r�rwr8)rNr�rVr��
curr_groupr�r�r�r�r�r�s&&    @@@@@rr-�CTestPurePythonRoughEquivalents.test_groupby_recipe.<locals>.groupby�s�����(+�{�{��G��H�~�H��I�
!�
!�
�!�(�^�
��z�*�H��%�
�%�j�1�
��
�*�*��z�)�'���(� ��	!�
��
�s>�A?�A?�A-�A?�A?�A?�-	A<�7A<�8A?�;A<�<A?r�r�c��U!r
rrs&rrf�DTestPurePythonRoughEquivalents.test_groupby_recipe.<locals>.<lambda>�r�rc��U]*!rUrrVs&rrfr��r�rr�r�r�r�c��\sQsQsQsP!)�ITestPurePythonRoughEquivalents.test_groupby_recipe.<locals>.ExpectedErrori�rr�rrrr�r��r�rr�c3�B: �[U2FDoQw�	J
	Rg3hr�r*r�s& �rr��ITestPurePythonRoughEquivalents.test_groupby_recipe.<locals>.delayed_raise�r�r�c�X:�RV2TTt,tFD
vq4UU2MJ	too!ttoohr
r)rNr�r�r0r�r-s&&&  �rr��@TestPurePythonRoughEquivalents.test_groupby_recipe.<locals>.gulp�s(���(/��(?�@�(?���D��G�(?�@�@��@s�&c�0:`�\sQsQsnU1QksQsUsP!)�DTestPurePythonRoughEquivalents.test_groupby_recipe.<locals>.DummyCmpi�c�
:�Rgr
rr�s&&�rr��KTestPurePythonRoughEquivalents.test_groupby_recipe.<locals>.DummyCmp.__eq__�r�rrr�r�s@�rr�r��r�rr�r�c�b:�RO]6�cR9O]*tmU!RgrUr�r�s&��rr��CTestPurePythonRoughEquivalents.test_groupby_recipe.<locals>.keyfunc�r�rr
r�r�r�r�r�r�rU)rurrr�rnr�rXr\r�r�rr+rwr�rFr�r�)r2rdr�r0r�r�r�r�r�rWr�ror�r�r�r�r�r�r�r�r-r�s&                  @@@r�test_groupby_recipe�2TestPurePythonRoughEquivalents.test_groupby_recipe}sF���	�F	
����T�'�"�+�.�/�����T�'�"�"�"5�6�7����)�T�7�5�"�+=�>��	
���)�W�e�Z��D�
.�����A�}�-�D�A���� � ���G�,��
�
�4� ��.�	
���� ����A�u�%�D�A�!�!�V�,����D��$�$�Q�Q��0��$�$�R�a��1��J�J�t�$��-�&�	
���� �&�a��/�0�/�d�a��/��0��!�,�!�Q�a�D�D�!�,�-������T��L�1�����T��C��$5�6�
��[�%��(�+�,��
�Q��
���R�����R�����R��������b��2�&�����b��2�&�����b��8�,��R������b��2�&�
��"�6�!�9�-�.�-�4�1�Q�-��.�����5�6�"�6�!�9�-�E�-�4�1��f�Q�q��m�1D�Q�Q�-��E�����O�,�+2�6�!�9�+=�>�+=�4�1�c�$�q�'�l�A�
�+=��>�����N�O��7�6�!�9�3E�F�3E�4�1�S��a��\�A�&�3E�F�PT�U�VX�Y������:�;�	�I�	�	 �!%�4�	A�	
���-��}�Q�/?�@����-��}�Q�/?�@�	$�	$��Z���T�*��	
���-��q�r��:����-��q�1�	$�������-���v�w�?�������-���d�|�W�E��O1��,��(
/��
F��
?��Gs*�S$�"S*�S/�"S5�9S5�)#S;�;#T
c'� �[UoUOe]LUOoUOoUOe]LUOoU]6fUdU]6fU]6:c[gUe[2L[
[V422oSo[V`2FDvq�V�6XfJ
U	w�	Vu*
oJ	P!3hr
)	�slicer�rsr�rr~r+r�r)
rNrrdr�rsr�r��next_irr�s
&*        rrF�%TestPurePythonRoughEquivalents.islices����
�4�L���W�W�_��!�'�'���v�v���F�F�N�q������1�9��)�d�Q�h�4�1�9���!�\�%�'�u�S��5E�/F�����g�0�J�A��{��
����1�s4�C�'C�C�C�C�$C�+	C�54C�.Cc
�0�UO[UOQ]22[Q22UO[UOQ]]22[Q22UO[UOQ]P22[Q22UO[UOQ]P]22[Q22[[	]
22oUO[UOU]22[[	]222UO[U2[[	]]
222[[	]
22oUO[UOU]]22,2UO[U2[[	]]
222[2oUO[UOU]]]222],2UO[
U2]2P!r�)rurrFr�r+r~rw)r2ror~s&  r�test_islice_recipe�1TestPurePythonRoughEquivalents.test_islice_recipe s}������d�k�k�)�Q�7�8�$�t�*�E�����d�k�k�)�Q��:�;�T�$�Z�H�����d�k�k�)�Q��=�>��W�
�N�����d�k�k�)�Q��a�@�A�4��<�P�
�%��)�_������d�k�k�"�a�0�1�4��a��>�B�����b��4��a���#5�6�
�%��)�_������d�k�k�"�a��3�4�b�9�����b��4��a���#5�6��G������d�k�k�!�Q��2�6�7�!��=�����a��!�$rc��
`�QU1QkkoU1QkQ2n]�oU,2vq4UO[U2,2UO[U2,2U[U22vq4UO[V42[[	U2[	U222U[U22vq4UO[U2[[	U222UO[U2[[	U222U[U22vq4[	]d2FDoUO[U2U2J 	=UO[U2[[	U222U[U22vq4[	]d2FDoUO[U2U2J 	=UO[U2[[	]dU222[	]2FD�o],U*],U**o[OU2,,1oU[U22o	SFD+o[V�*2o
V�*OU
2J-	UOU]*[[	U222UOU]*[[	U222J�	UO[U2UO[U]2UO[U]],Q2UO[U]],]Q2UQ2vq4[U2Q2oUO[U2[Q22U[	Q2]2vq4o[	]d2FDoUO[U2U2J 	UO[U2[[	Q222UO[U2[U2,[[	]222UO[U2[[	]dQ222UO[U2[[	]Q222UO[UQQ2UO[U,P2[	]2FD�oUQU2oUO[U2[2UO[U2U2SOST
t,tFDo
[U
2MJ	to
[Q2,U*2J�	UQ2vq4UU2vq�UU2vooUO[V4V�UU.2]6H2UQ2voo[U2oUO[U2UO[U]
2UU2oSO[U2[U2t96H9%c&[U2t96H9%c[Q26HLt2U[	]
22vq4[ O"U2oUO[%UQ	2[U22=[&O(2UO[*[$UQ	2[Q2o[[	Q
22oU[1PQ22voo[3U2=P!tto
h==g9h)rc�:�U]6c[gU]6XcQ!RU2oU,o[U]*
2FDoUORU22J	[U2!)rr)rr+r�r�)rNr,r�rr�rWs&&   �rr�;TestPurePythonRoughEquivalents.test_tee_recipe.<locals>.tee6sX����1�u� � ��A�v��	��H�~�H��Z�F��1�q�5�\���
�
�d�8�n�-�"���=� rc�<:`�\sQsQsnU1QksQsQsQsUsP!)�<TestPurePythonRoughEquivalents.test_tee_recipe.<locals>._teeiAc�:�[U2o[UR2%c%UOUmUOUmP!V mPP,UmP!r
)r�rlr��link)r2rNrorWs&& �rr�ETestPurePythonRoughEquivalents.test_tee_recipe.<locals>._tee.__init__Cs?����(�^���b�$�'�'�$&�K�K�D�M� "���D�I�$&�M�!%�t��D�Irc��U!r
rr1s&rr3�ETestPurePythonRoughEquivalents.test_tee_recipe.<locals>._tee.__iter__Lrqrc��UOoU]*e [UO2U]$PP,U]$Uvp mU!rJ)r�rwr�)r2r�rs&  rr9�ETestPurePythonRoughEquivalents.test_tee_recipe.<locals>._tee.__next__OsB���y�y����7�?�"�4�=�=�1�D��G�#�T�l�D��G�#'� ��y��r)r�r�rt)rDrWs@�rrWr�As����
-�
�
�
rrWrr�r�rIrrrfr[)rurr-rr+rwr�rr�r�rnrvrr�r�r�r�rr	r@rAr
r,rHr�r�)r2rr,r|r}rr�rrr
rr~rrr�rqrrrrrrOr/rrrrWs&                         @r�test_tee_recipe�.TestPurePythonRoughEquivalents.test_tee_recipe2sM���		!�	�	�0
���2�w�������a��"�%�����a��"�%��6�!�9�~�������a��D��q��5��8�$<�=��6�!�9�~�������a��$�u�Q�x�.�1�����a��$�u�Q�x�.�1��6�!�9�~����s��A����T�!�W�a�(��
�����a��$�u�Q�x�.�1��6�!�9�~����s��A����T�!�W�a�(��
�����a��$�u�S�!�}�"5�6��q��A��C��E�Q�C��E�M�E��N�N�5�!���H�E��f�Q�i�.�C����S�V��������&��
���U�1�X�t�E�!�H�~�6����U�1�X�t�E�!�H�~�6��	
���)�S�)����)�S�!�,����)�S�1�Q�%��5����)�S�1�Q�%��C�8��5�z�����G�E�N������a��$�u�+�.��e�D�k�1�%���a��s��A����T�!�W�a�(������a��$�u�T�{�"3�4����$�q�'�4��7�+�T�%��(�^�<�����a��$�u�S���"7�8�����a��$�u�Q�t�}�"5�6�	
���)�S�%��;����*�c�2�r�2��q��A����]�F����T�&�\�5�1����S��[�!�,����v�6�v�!�d�1�g�v�6��e��
�a��H�	��5�z����1�v����1�v���1�����Q�1��A�.�/�1�4�5��U����B��B�x�����)�T�*����)�T�2�.�
�"�X������R��D��H�G�G��R��G�G�D��K�G�H��5��9�~����M�M�!��������K�0�$�q�'�:�
�
�
�
�����.�'�1�k�B��5�k����e��%���4 ��t�T� 2�3����	���L���s7��t	����s�[�["�"['r)r<r=r>r?r�r��staticmethodrFr�r�rArBrCs@rr�r�as7����)�4KF�\����(%�$c�crr�c�`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsQsQsQsQsQsQsQsUsP!)�TestGCi�c�D�UOU2[U2==P!r
)r�rw)r2r��	containers&&&r�	makecycle�TestGC.makecycle�s������"��X���xrc�J�,oUO[]]U],2U2P!rJ)r�r��r2r|s& rr��TestGC.test_accumulate�s"�������z�1�Q�q��)�,�a�0rc�L�,oUO[]]U],]2U2P!rJ)r�r�r�s& rr��TestGC.test_batched�s$�������w��!�A�a�y�!�,�a�0rc�B�,oUO[U2U2P!r
)r�r�r�s& rr��TestGC.test_chain�s�������u�Q�x��#rc�X�,oUO[OU,2U2P!r
)r�r�r�r�s& rr��TestGC.test_chain_from_iterable�s"�������u�*�*�A�3�/��3rc�L�,oUO[]]U],]2U2P!rJ)r�rr�s& rr	�TestGC.test_combinations��$�������|�Q�q��1�I�q�1�1�5rc�L�,oUO[]]U],]2U2P!rJ)r�r�r�s& rr3�)TestGC.test_combinations_with_replacement�s%�������4�a��!�A�Y��B�A�Frc�H�,oUO[Q,QN2U2P!)r�)rrrrrr)r�rjr�s& rrk�TestGC.test_compress�s�������x��-�8�!�<rc��,o[Q[1[UQ52oUO[	U]2U]22U2P!)�Intr)rvr�rBr�r~)r2r|rs&  rr��TestGC.test_count�s8�����5�3�&�$��)�,�����u�S��V�S��V�,�a�0rc�R�,oUO[U,]*2U2P!r[)r�r�r�s& rr��TestGC.test_cycles�������u�a�S��U�|�Q�'rc�P�,oUO[[]V,2U2P!rU)r�r�r+r�s& rr��TestGC.test_dropwhiles �������y���1�y�1�1�5rc�V�,oUO[U,]*Q2U2P!)rc��U!r
rrs&rrf�%TestGC.test_groupby.<locals>.<lambda>
s��qr)r�r-r�s& rr��TestGC.test_groupbys"�������w��s�1�u�j�1�1�5rc��]
oQo[[U2UQ5FD0vq4UOOQ,2O	U2J2	P!)r^c��U!r
rrs&rrf�'TestGC.test_issue2246.<locals>.<lambda>s��Arr�r)r-r+�__dict__�
setdefaultr�)r2r,r�rr�s&    r�test_issue2246�TestGC.test_issue2246sG�������E�!�H�'�2�2�D�A����'�'��B�/�6�6�q�9�3rc�V�,oUO[QU,]*2U2P!)c��P	!rrrs&rrf�$TestGC.test_filter.<locals>.<lambda>s��tr)r�rYr�s& rr0�TestGC.test_filters"�������v�m�a�S��U�3�Q�7rc�F�,oUO[QU2U2P!)c��P
!rrrs&rrf�)TestGC.test_filterfalse.<locals>.<lambda>s��Er)r�r8r�s& rr9�TestGC.test_filterfalses�������{�>�1�5�q�9rc�d�,oUO[U,]*U,]*2U2P!r[)r�rr�s& rr>�TestGC.test_zips(�������s�A�3�q�5�1�#�a�%�(�!�,rc���,oUO[U,]*U,]*2U2UP,oUO[U,]*U,]*UQ5U2P!)rrM)r�rP)r2r|r}s&  rr��TestGC.test_zip_longestsT�������{�A�3�q�5�1�#�a�%�0�!�4�
��I�����{�A�3�q�5�1�#�a�%�1�=�q�Arc�V�,oUO[QU,]*2U2P!)c��U!r
rrs&rrf�!TestGC.test_map.<locals>.<lambda>'s��Ar)r�r�r�s& rr��TestGC.test_map%s"�������s�:��s�1�u�-�q�1rc�T�,oUO[U,]*P2U2P!r[)r�rFr�s& rr��TestGC.test_islice)s"�������v�q�c�!�e�T�*�A�.rc�R�,oUO[U,]*2U2P!r)r�r�r�s& rr��TestGC.test_pairwise-s�������x���A����*rc�L�,oUO[]]U],]2U2P!rJ)r�r�r�s& rrP�TestGC.test_permutations1rrc�N�,oUO[]]U],]Q5U2P!)rr")r�r%r�s& rr��TestGC.test_product5s$�������w��!�A�a�y��3�Q�7rc�B�,oUO[U2U2P!r
)r�r�r�s& rr��TestGC.test_repeat9s�������v�a�y�!�$rc�X�,oUO[QV1,]*2U2P!)c��U!r
r)r]s*rrf�%TestGC.test_starmap.<locals>.<lambda>?s��!r)r�r�r�s& rr��TestGC.test_starmap=s$�������w�|�q�e�W�Q�Y�7��;rc	�R�,oUO[[]]V,2U2P!rJ)r�r�r+r�s& rr��TestGC.test_takewhileAs"�������y���1�a�|�4�a�8rr)r<r=r>r?r�r�r�r�r�r	r3rkr�r�r�r�rr0r9r>r�r�r�r�rPr�r�r�r�rArBrCs@rr�r��s����� �
1�1�$�4�6�G�=�1�
(�6�6�:�8�:�-�B�2�/�+�6�8�%�<�9�9rr�c#�. �SFDoUw�	J
	P!3h)zRegular generatorr��seqnrs& r�Rr@Es���
�����r c�2`�\sQsQsnQsQsQsQsUsP!)r�iJzSequence using __getitem__c��VmP!r
�r?�r2r?s&&rr�
G.__init__Ls���	rc�*�UOU*!r
rC)r2rs&&r�__getitem__�
G.__getitem__Ns���y�y��|�rrC)	r<r=r>r?r@rrGrArBrCs@rr�r�Js���� ���rr�c�8`�\sQsQsnQsQsQsQsQsUs	P!)r�iQz Sequence using iterator protocolc�"�Vm]UmP!rUr>rDs&&rr�
I.__init__S����	���rc��U!r
rr1s&rr3�
I.__iter__Vr5rc���UO[UO26�c[gUOUO*oU9O]*
tmU!rJ�rr�r?r8�r2r1s& rr9�
I.__next__X�?���6�6�S����^�#�=�%8��I�I�d�f�f������!����r�rr?�
r<r=r>r?r@rr3r9rArBrCs@rr�r�Qs����&����rr�c�2`�\sQsQsnQsQsQsQsUsP!)�Igi^z9Sequence using iterator protocol defined with a generatorc�"�Vm]UmP!rUr>rDs&&rr�Ig.__init__`rLrc#�B �UOFDoUw�	J
	P!3hr
rCr�s& rr3�Ig.__iter__cs����9�9�C��I��r�rT�	r<r=r>r?r@rr3rArBrCs@rrWrW^s����?���rrWc�2`�\sQsQsnQsQsQsQsUsP!)rKigz Missing __getitem__ and __iter__c�"�Vm]UmP!rUr>rDs&&rr�
X.__init__irLrc���UO[UO26�c[gUOUO*oU9O]*
tmU!rJrPrQs& rr9�
X.__next__lrSrrT)	r<r=r>r?r@rr9rArBrCs@rrKrKgs����&���rrKc�2`�\sQsQsnQsQsQsQsUsP!)�NirzIterator missing __next__()c�"�Vm]UmP!rUr>rDs&&rr�
N.__init__trLrc��U!r
rr1s&rr3�
N.__iter__wr5rrTr\rCs@rrcrcrs����!���rrcc�8`�\sQsQsnQsQsQsQsQsUs	P!)r�izzTest propagation of exceptionsc�"�Vm]UmP!rUr>rDs&&rr�
E.__init__|rLrc��U!r
rr1s&rr3�
E.__iter__r5rc��]]*P!�r�rr1s&rr9�
E.__next__�s��	�Q��rrTrUrCs@rr�r�zs����$����rr�c�8`�\sQsQsnQsQsQsQsQsUs	P!)�E2i�z3Test propagation of exceptions after two iterationsc�"�Vm]UmP!rUr>rDs&&rr�E2.__init__�rLrc��U!r
rr1s&rr3�E2.__iter__�r5rc��UO]6Xc[gUOUO*oU9O]*
tmU!r[)r�ZeroDivisionErrorr?rQs& rr9�E2.__next__�s7���6�6�Q�;�#�#��I�I�d�f�f������!����rrTrUrCs@rrqrq�s����9����rrqc�8`�\sQsQsnQsQsQsQsQsUs	P!)�Si�zTest immediate stopc��P!r
rrDs&&rr�
S.__init__�s��rc��U!r
rr1s&rr3�
S.__iter__�r5rc��[gr
r7r1s&rr9�
S.__next__�r;rrrUrCs@rrzrz�s�����
���rrzc�f�[[Q[[[	U22222!)z Test multiple tiers of iteratorsc��U!r
rrs&rrf�L.<locals>.<lambda>�s��ar)r�r�r@rWr�rCs&r�Lr��s ����Z��2�a��g�;��0�1�1rc�`�\sQsQsnQsQsQsQsQsQs	Qs
Q	sQ
sQs
QsQ
sQsQsQsQsQsQsQsUsP!)�TestVariousIteratorArgsi�c��,QNo,QNo[U2o[[[[[
1FD-oUO
[[UU222U2J/	UO
[[[U222,2UO[[[U22UO[[[U22UO[[[[U222P!rf)r�r�r�rWr�r@rurr�rzr�rnrKrcrwr��r2rdrWr,r�s&    rr��'TestVariousIteratorArgs.test_accumulate�s���������F���Q��A�q�!�A����T�*�Q�q�T�"2�3�Q�7�"�����j��1��.�/��4����)�Z��1��6����)�Z��1��6����+�T�:�a��d�3C�Drc
���Qo,QNo]o[[[[[1FDQoUOUQ59^tt^2UO
[[UU2U22U2PPP2JS	UO
[[[U2]22,2UO[[[U2]2UO[[[U2]2UO[[[[U2]22UO[[[[!U2]22P!)%fhCJ=9h)r)r�)r�r�)rq)r�r�rWr�r@r�rurr�rzr�rnrKrcrwr�rqr�s&    rr��$TestVariousIteratorArgs.test_batched�s�����,��
���Q��A�q�!�A������"�"�� � ��g�a��d�A�&6�!7��;�#�"�"�	
����g�a��d�A�.�/��4����)�W�a��d�A�6����)�W�a��d�A�6����+�T�7�1�Q�4��3C�D����+�T�7�2�a�5�!�3D�E�
#�"�"�s�,E	�E#
�E#
c���QP[Q2Q[QQ]21FCDBo[[[[[
[1FD�oUO[[UU222[UU222UO[[UU2UU222[UU22[UU22*2J�	UO[[[[U222UO[[[[U222UO[[[[U222CJE	P!��123rprI���dog333333�?)r+r�r�rWrzr�r@rurr�r�rnrKrcrwr��r2rdr�s&  rr��"TestVariousIteratorArgs.test_chain�s�����U�4�[�+�u�T�$�q�7I�J�A���B��1�a�(��� � ��e�A�a�D�k�!2�D��1��J�?�� � ��e�A�a�D�!�A�$�&7�!8�$�q��t�*�T�!�A�$�Z�:O�P�)�
���i��u�Q�q�T�{�;����i��u�Q�q�T�{�;����/��u�Q�q�T�{�C�
Krc�d�QP[Q2Q[QQ]21FCD
o[U2o[[[[
[[1FDFoUO[[UU2[]222[UU222JH	UO[[[U2[]22UO[[[U2[]22UO[ [[[#U2[]222CJ	P!r�)r+r�r�r�rWrzr�r@rurrjr�r�rnrKrcrwr�)r2rdr,r�s&   rrk�%TestVariousIteratorArgs.test_compress�s�����U�4�[�+�u�T�$�q�7I�J�A��A��A���B��1�a�(��� � ��h�q��t�V�A�Y�&?�!@�$�q��t�*�M�)����i��1�Q�4����C����i��1�Q�4����C����/��x��!��f�Q�i�7P�Q�
Krc	�&�QP[Q2Q[QQ]21FDooUO[[[	U22UO[[[U22UO[[[U22Jq	P!r�)r+r�rnr%rKrcrwr�)r2rds& rr��$TestVariousIteratorArgs.test_product�sh����U�4�[�+�u�T�$�q�7I�J�A����i��!�A�$�7����i��!�A�$�7����/��!�A�$�?�Krc
�J�QP[Q2Q[QQ]21FCDo[[[[[
[1FDbo[U2]*o[UU22]*o[[[UU22U22oUOVT2Jd	UO[[[U22UO[[[U22UO[ [[[#U222CJ	P!r�)r+r�r�rWrzr�r@r�rrFr�rur�rnrKrcrwr�)r2rdr��tgtlenr��actuals&     rr��"TestVariousIteratorArgs.test_cycle�s�����U�4�[�+�u�T�$�q�7I�J�A���B��1�a�(���Q��!�����!��:�a�<���f�U�1�Q�4�[�&�9�:��� � ��2�	)�

���i���!��5����i���!��5����/��u�Q�q�T�{�C�Krc
�B�[]
2[]2[Q2Q[QQ]21FD�o[[[[[
[1FDHoSO[UU22TTt,tFDvq4UMJ		too[UU222JJ	UO[[[U22UO[[[U22UO[[[[U222J�	P!ttooh�r^rprIr��r�r�)r+r�r�rWrzr�r@rur-rr�rnrKrcrwr�)r2rdr�r0�sbs&    rr��$TestVariousIteratorArgs.test_groupby�s�����)�U�1�X�u�T�{�F�E�$�t�A�<N�O�A���B��1�a�(��� � ���1���!?����!��!?��a��d��L�)����i��!�A�$�7����i��!�A�$�7����/��w�q��t�}�E�P��!?s�5Dc��[]
2[]2[Q2Q[QQ]21FCD	o[[[[[
[1FD\oSO[[[UU222UU2Tt,tFDo[U2%fJUMJ	to2J^	UO[[[[U22UO[[[[U22UO[[[[[!U222CJ	P!ttohr�)r+r�r�rWrzr�r@rurrYr#r�rnrKrcrwr��r2rdr�rs&   rr0�#TestVariousIteratorArgs.test_filter�s�����)�U�1�X�u�T�{�F�E�$�t�A�<N�O�A���B��1�a�(��� � ��f�V�Q�q�T�&:�!;�-.�q�T�!?�T��V�A�Y�!�!�T�!?�A�)�
���i����1��>����i����1��>����/��v�f�a��d�7K�L�
P��"@��
E�$Ec��[]
2[]2[Q2Q[QQ]21FCD	o[[[[[
[1FD\oSO[[[UU222UU2Tt,tFDo[U2%fJUMJ	to2J^	UO[[[[U22UO[[[[U22UO[ [[[[#U222CJ	P!ttohr�)r+r�r�rWrzr�r@rurr8r#r&r�rnrKrcrwr�r�s&   rr9�(TestVariousIteratorArgs.test_filterfalse�s�����)�U�1�X�u�T�{�F�E�$�t�A�<N�O�A���B��1�a�(��� � ��k�&�!�A�$�&?�!@�-.�q�T�!>�T��U�1�X�!�!�T�!>�@�)�
���i��f�a��d�C����i��f�a��d�C����/��{�6�1�Q�4�7P�Q�
P��"?r�c��QP[Q2Q[QQ]21FCD!o[[[[[
[1FD�oUO[[UU222[UU222UO[[UU2UU222[UU2UU222J�	UO[[[U22UO[[[U22UO[[[[!U222CJ$	P!r�)r+r�r�rWrzr�r@rurrrr�rnrKrcrwr�r�s&  rr>� TestVariousIteratorArgs.test_zip�s�����U�4�[�+�u�T�$�q�7I�J�A���B��1�a�(��� � ��c�!�A�$�i��$�q��t�*�=�� � ��c�!�A�$��!��o�!6��Q�q�T�1�Q�4�8H�I�)�
���i��a��d�3����i��a��d�3����/��s�1�Q�4�y�A�
Krc��QP[Q2Q[QQ]21FCD3o[[[[[
[1FD�oUO[[UU222[[UU2222UO[[UU2UU222[[UU2UU2222J�	UO[[[U22UO[[[U22UO[[[[!U222CJ6	P!r�)r+r�r�rWrzr�r@rurrPrr�rnrKrcrwr�r�s&  rrW�'TestVariousIteratorArgs.test_ziplongest	s�����U�4�[�+�u�T�$�q�7I�J�A���B��1�a�(��� � ��k�!�A�$�&7�!8�$�s�1�Q�4�y�/�J�� � ��k�!�A�$��!��&=�!>��S��1��q�QR�t�_�@U�V�)�
���i��a��d�;����i��a��d�;����/��{�1�Q�4�7H�I�
Krc�:�[]
2[]2[]d2Q[]]2]21FCD\o[[[[[
[1FD�oSO[[[UU222UU2Tt,tFDo[U2MJ	to2SO[[[OUU2UU222UU2Tt,tFDp3U*MJ
	to2J�	UO[[[[U22UO[[[[!U22UO["[[[[%U222CJ_	P!ttohttoh�r^r�)r+r�r�rWrzr�r@rurr�rrKr�r�rnrKrcrwr�r�s&   rr�� TestVariousIteratorArgs.test_map		s����)�U�1�X�u�S�z�6�5��B�q�>�J�A���B��1�a�(��� � ��c�&�!�A�$�&7�!8�56�q�T�!:�T��&��)�T�!:�<�� � ��c�(�,�,��!��a��d�&C�!D�01�!��!5��1�Q�$�$��!5�7�)�

���i��f�a��d�;����i��f�a��d�;����/��s�6�1�Q�4�7H�I�K��";��!5s�
F�*Fc��QP[Q2Q[QQ]21FD�o[[[[[
[1FDFoUO[[UU2]P]22[UU22Q*2JH	UO[[[U2]
2UO[[[U2]
2UO[[[[U2]
22J�	P!)�12345rprIr�:rNrr�)r+r�r�rWrzr�r@rurrFr�rnrKrcrwr�r�s&  rr��#TestVariousIteratorArgs.test_islice	s����2�u�T�{�K��t�D��9K�L�A���B��1�a�(��� � ��f�Q�q�T�!�D��&;�!<�d�1�Q�4�j��>N�O�)����i���1��r�:����i���1��r�:����/��v�a��d�B�7G�H�Mrc�6�QP[Q2Q[QQ]21FD�o[[[[[
[1FDZo[UU22o[[V3Q*22o[[UU222oUOVT2J\	UO[[[U22UO[[[U22UO[[[[!U222J�	P!)r�rprIr�r)r�)r+r�r�rWrzr�r@rrr�rur�rnrKrcrwr�)r2rdr�rGr�r�s&     rr��%TestVariousIteratorArgs.test_pairwise	s�����U�4�[�+�u�T�$�q�7I�J�A���B��1�a�(���1�Q�4�j����C�R�� 1�2���h�q��t�n�-��� � ��2�	)�

���i��1�Q�4�8����i��1�Q�4�8����/��x��!��~�F�Krc���[]
2[]2[]d2Q[]]2]21FCD/o[[[[[
[1FDdo[V2oSO[[[OUU222UU2Tt,tFDpDU*MJ
	to2Jf	UO[[[O[W22UO[[[O[!U22UO["[[[O[%U222CJ2	P!ttohr�)r+r�r�rWrzr�r@rrurr�rKr�r�rnrKrcrwr�)r2rdr��ssrs&    rr��$TestVariousIteratorArgs.test_starmap'	s�����)�U�1�X�u�S�z�6�5��B�q�>�J�A���B��1�a�(���!�Z��� � ��g�h�l�l�A�b�E�&B�!C�01�!��!5��1�Q�$�$��!5�7�)�
���i��(�,�,��"��F����i��(�,�,��"��F����/��w�x�|�|�Q�r�U�7S�T�K��"6s�E&c��[]
2[]2[Q2Q[QQ]21FCDo[[[[[
[1FDio,oUU2FD(o[U2%fLUOU2J*	UO[[[UU222U2Jk	UO[[[[U22UO[[[[U22UO[ [[[[#U222CJ	P!r�)r+r�r�rWrzr�r@r#r�rurr�r�rnrKrcrwr��r2rdr��tgtr�s&    rr��&TestVariousIteratorArgs.test_takewhile1	s�����)�U�1�X�u�T�{�F�E�$�t�A�<N�O�A���B��1�a�(�����a�D�D�!�$�<�<���J�J�t�$�!�� � ��i���!��&=�!>��D�)�
���i��F�A�a�D�A����i��F�A�a�D�A����/��y���1��7N�O�Prc��[]
2[]2[Q2Q[QQ]21FCDo[[[[[
[1FDpo,oUU2FD/oU%f[U2%cJUOU2J1	UO[[[UU222U2Jr	UO[[[[U22UO[[[[U22UO[ [[[[#U222CJ 	P!r�)r+r�r�rWrzr�r@r&r�rurr�r�rnrKrcrwr�r�s&    rr��&TestVariousIteratorArgs.test_dropwhile=	s�����)�U�1�X�u�T�{�F�E�$�t�A�<N�O�A���B��1�a�(�����a�D�D��5��;�;���J�J�t�$�!�� � ��i��q��t�&<�!=�s�C�)�
���i��E�1�Q�4�@����i��E�1�Q�4�@����/��y���!��7M�N�Prc�h�QP[Q2Q[QQ]21FCDo[[[[[
[1FDjo[UU22vq4UO[U2[UU222UO[U2[UU222Jl	UO[[[U22UO[[[U22UO[[[[U22]*2CJ	P!r�)r+r�r�rWrzr�r@rrurr�rnrKrcrwr�)r2rdr��it1�it2s&    rr� TestVariousIteratorArgs.test_teeI	s�����U�4�[�+�u�T�$�q�7I�J�A���B��1�a�(���q��t�9���� � ��c��D��1��J�7�� � ��c��D��1��J�7�)�
���i��a��d�3����i��a��d�3����/��s�1�Q�4�y��|�D�Krr)r<r=r>r?r�r�r�rkr�r�r�r0r9r>rWr�r�r�r�r�r�rrArBrCs@rr�r��sw����	E�F�D�R�@�	D�F�M�R�B�J�	J�I�	G�U�
P�
O�E�Err�c�.`�\sQsQsnQsQsQsUsP!)�LengthTransparencyiS	c�(�UO[O[P]222]22UO[O[P]22]2UO[O[P2]2]2P!r
�rurK�length_hintr�r1s&rr��LengthTransparency.test_repeatU	sf������-�-�f�T�2�.>�?��D�����-�-�f�T�1�o�>��B�����-�-�f�T�l�B�?��Drc	��UO[O[PP22]2UO[O[PQ22]2UO[O[PPQ52]2UO[O[PQQ52]2P!)Nr�rr�r1s&rr��2LengthTransparency.test_repeat_with_negative_timesZ	s�������-�-�f�T�2�.>�?��C�����-�-�f�T�2�.>�?��C�����-�-�f�T��.D�E�q�I�����-�-�f�T��.D�E�q�Irr)r<r=r>r?r�r�rArBrCs@rr�r�S	s����E�
J�Jrr�c�`�\sQsQsnQsQs\O\OQ2Q22s	Qs
QsQsUs
P!)	�RegressionTestsi`	c�v`�QoU1Qko,nUQUQ2[[2oUORU2P!)c�``�],1UU1Qkko[U2o[U2UQ$[V42o[U,[U2*n[	R2P!)rc�B:�U%cUQR[R22U!�:NNN�rw)rr'r�zs&&��rr��@RegressionTests.test_sf_793826.<locals>.mutatingtuple.<locals>.gi	s�����a���d�1�g�J��r:rrN)rr�rr�rw)�tuple1r�tuple2r�r!�genr�s&f&   @r�
mutatingtuple�5RegressionTests.test_sf_793826.<locals>.mutatingtuplee	sQ���!"�s�
�
�
��L�E��f��E�#�J��a�-�C��c�U�3�v�;�&�'�A���Grc�2:�Ur[[2RQ$P!r�)�Tr)r]r's&�rr�)RegressionTests.test_sf_793826.<locals>.ft	s����A��A�w�E�!�Hrrr)r�r�r�)rr�ru)r2r�r�secondr's&   @r�test_sf_793826�RegressionTests.test_sf_793826b	s9���
	�	�
���g�q�'�*��a��������'rc
�`�U1QkoU1Qko,nUO[[[U2UP
222UO	R]],2,nUO[[[U2UP	222UO	R]],2,nUO[[[U222UO	R]],2P!)c3�h: �RO]2]w�	RO]2[g3hrU)r��AssertionError)�hists�r�gen1�,RegressionTests.test_sf_950057.<locals>.gen1�	s'�����K�K��N��G��K�K��N� � �s�/2c3�`: �RO]2]w�	RO]2P!3hrn)r�)rr�s&�r�gen2�,RegressionTests.test_sf_950057.<locals>.gen2�	s!�����K�K��N��G��K�K��N�s�+.)r�r�rr�rur�)r2r�r�r�s&  @r�test_sf_950057�RegressionTests.test_sf_950057	s����	�	�
�����.�$��d�f�d�5�k�0J�K������!�u�%������.�$��d�f�d�4�j�0I�J������!�u�%������.�$��d�f�
�>������!�u�%r�cpuc���[OQ[Q222oUO[29^tt^2[U2PPP2P!)%fhP!9h)c3�2�SF �DoQw�	J
	P!3h)Nrr)r��unuseds& rr��ERegressionTests.test_long_chain_of_empty_iterables.<locals>.<genexpr>�	s��/���/���/�s�i���)r�r�r+r�r8rwrCs& r�"test_long_chain_of_empty_iterables�2RegressionTests.test_long_chain_of_empty_iterables�	sE���
 �
 � B�%��/� B�
B��
�
�
�}�
-�
-���H�.�
-�
-�
-�s�A�A*	�"A*	c�l`�U1Qko[[]
2U2FDvon[R2J	P!)c�4:�U]6Xc[R2U]6g!r)r)r,r}s&�rr�,RegressionTests.test_issue30347_1.<locals>.f�	s����A�v��Q����6�Mr)r-r+r)r2rr0r}s&  @r�test_issue30347_1�!RegressionTests.test_issue30347_1�	s*���	��e�B�i��+�F�Q����G�,rc�``�UU1QkQ2o]n[[[]
2U22]*n[]2FDo[RP2J	P!)c�8:`�\sQsQsnQsUU1QksQsUsP!)�,RegressionTests.test_issue30347_2.<locals>.Ki�	c��P!r
rrQs&&rr�5RegressionTests.test_issue30347_2.<locals>.K.__init__�	s��rc�B:�R]*
nR]6Xc
[RP2P	!rJr�)r2r
r�rs&&��rr��3RegressionTests.test_issue30347_2.<locals>.K.__eq__�	s����Q�����6���D�M�rrr)rDr�rs@��r�Kr��	s����
�
�
rr�)rwr-r+)r2r�r�r�rs&  @@r�test_issue30347_2�!RegressionTests.test_issue30347_2�	sE���	�	�
�����r��A�&�'��*���q��A���D�M�rr)r<r=r>r?r�r�r�skip_if_pgo_task�requires_resourcer�r�r�rArBrCs@rr�r�`	sK����(�:&�8
������u�%��&����
�
rr�c�(`�\sQsQsnQsQsUsP!)�SubclassWithKwargsTesti�	c�B�[Q]],1[]],Q1QQ,1[P]],1],1[P]],1],1[]],]],1,QN1[
[]],1QQ,1[[OQ1]]	,1[,QN]]1]],1[[,QN1],1[[,QN1]],1[]],1,QN1[Q,QN1QQ,1,oSFD�vq#oUO!U29^tt^2QQU2oUUoUO#[%U2U2UO'[)[U]]22U2UO+[,29^tt^2UUQ	]-PPP2PPP2J�	SFD�vq#oU[[[
[17cJ#UO!U29^tt^2Q
QU2oUUQ	]-oUO#[%U2U2UO'[)[U]]22U2UO'UO.]2PPP2J�	SFD�vq#oUO!U29^tt^2QQ
U2oUUQ	]-oUO#[%U2U2UO'[)[U]]22U2UO'UO.]2PPP2J�	P!)%fhCK|9h)%fhCJ39h)%fhCJ�9h)%fhJ�9h)rr��1�2rdr�r�c��\sQsQsQsP!)�BSubclassWithKwargsTest.test_keywords_in_subclass.<locals>.subclassi�	rr�rrr�subclassr�	s��rr�newargc�0`�\sQsQsnQP-QksQsUsP!)�LSubclassWithKwargsTest.test_keywords_in_subclass.<locals>.subclass_with_initi�	rc��VmP!r
�r)r2rrs&$*rr�USubclassWithKwargsTest.test_keywords_in_subclass.<locals>.subclass_with_init.__init__�	s��&,�rr)r<r=r>r?rrArBrCs@r�subclass_with_initr	�	s����-�T�-�-rr
c�<``�\sQsQsnQP-U1QkksQsUsU9s!)�KSubclassWithKwargsTest.test_keywords_in_subclass.<locals>.subclass_with_newi�	rc�<:�[RU_U,UN3oVmU!r
)�super�__new__r)�clsrrr2rs&$* �rr�SSubclassWithKwargsTest.test_keywords_in_subclass.<locals>.subclass_with_new.__new__�	s ���$�w��s�:�T�:��&,��#�rr)r<r=r>r?rrArB�
__classcell__)rrDs@@r�subclass_with_newr�	s����$�4�$�$rrrNr�r�rr))rr�r�)rrr�r�)rr�r�)rrrrh)r�rrYr8r�r�rmr�rKr�rFr�r#r�r�rjr�rdrvrurr�rnr)	r2�	testcasesrrrr�ur
rs	&        r�test_keywords_in_subclass�0SubclassWithKwargsTest.test_keywords_in_subclass�	s����V�a��V�$�
�A�q�6�4�.�8�X�"6�7�
�d�Q��F�^�a�S�)�
�4�!�Q��.�1�#�.�
�a��V�a��V�$�i�0�
�3��A��-�#�s��,�
�x�|�|�%5�6��A��?�
�l�A�q�)�A�q�6�2�
���+�a�S�1�
���+�a��V�4�
�a��V�I�y�)�
��y�)�C��:�6�

�	�"+��C�v����c�"�"��s���d�O���
�
�d�1�g�x�0�� � ��f�Q��1�o�!6��?��&�&�y�1�1��d�-�1�-�2�
#�"�"+�"+��C�v��v�s�C��2�2�����c�"�"�-��-�'��7�Q�7���
�
�d�1�g�'9�:�� � ��f�Q��1�o�!6��?�� � ����1�-�#�"�
"+�"+��C�v����c�"�"�$��$�
&�t�6�A�6���
�
�d�1�g�'8�9�� � ��f�Q��1�o�!6��?�� � ����1�-�#�"�"+�%2�1�1��
#�"�"��#�"�"��#�"�"�sW�!A1K#	�
K
�K#	�/A2K8	�A2L
	�K �K �	K#	�#K5
�,K5
�8L

�L

�
L
�L
r)r<r=r>r?rrArBrCs@rrr�	s����3.�3.rrc�X`�\sQsQsnQs\OsQsQsQs	Qs
QsUsP!)�
SizeofTesti�	c�>�[OQ2UmP!rR)�struct�calcsize�ssize_tr1s&r�setUp�SizeofTest.setUp�	s�����s�+��rc���[OQ2oUOoU[QQ2U]UO**2U[QU]
UO**2P!)�3Pir��12)
r�r�r�r�r�r�r�r�r�r�)r�calcobjsize�check_sizeofr%r �r2�basesizer�s&  r�test_product_sizeof�SizeofTest.test_product_sizeof�	sY���&�&�u�-���!�!��
�g�d�D�!�8�a�$�,�,�.>�#>�?�
�g�
�'��B����4E�)E�Frc�
�[OQ2oUOoU[Q]2U]UO**2U[[]
2]2U]UO**2P!��3Pnir�)rr&r'rr r+r(s&  r�test_combinations_sizeof�#SizeofTest.test_combinations_sizeof
s_���&�&�v�.���!�!��
�l�6�1�%�x�!�d�l�l�2B�'B�C�
�l�5��9�a�(�(�Q����5E�*E�Frc�
�[o[OQ2oUOoUUQ]2U]UO**2UU[]
2]2U]UO**2P!r-)r�rr&r'r r+)r2r.r)r�s&   r�)test_combinations_with_replacement_sizeof�4SizeofTest.test_combinations_with_replacement_sizeof
sc��+���&�&�v�.���!�!��
�c�&�!�n�h��T�\�\�)9�9�:�
�c�%��)�Q���A����,<�!<�=rc�t�[OQ2oUOoU[Q2U]UO**]UO**2U[Q]2U]UO**]UO**2U[Q]2U]UO**]UO**2U[[]
2]2U]
UO**]UO**2P!)�4Pnir�r)rr&r'r�r r+r(s&  r�test_permutations_sizeof�#SizeofTest.test_permutations_sizeof
s����&�&�v�.���!�!��
�l�6�"���T�\�\�)�)�A����,<�<�	>�
�l�6�1�%���T�\�\�)�)�A����,<�<�	>�
�l�7�A�&���T�\�\�)�)�A����,<�<�	>�
�l�5��9�a�(���d�l�l�*�*�Q����-=�=�	?r)r )
r<r=r>r?r!rr'r*r/r2r6rArBrCs@rrr�	s2����,��'�'�L�G�G�>�
?�
?rrc�Z�UO[O[22U!r
)�addTest�doctest�DocTestSuiter)�loader�tests�patterns&&&r�
load_testsr?
s��	�M�M�'�&�&�y�1�2��Lr�__main__)Dr:�unittestr�testr�test.supportrrr��decimalr�	fractionsrrKr�r,ra�	functoolsrr�rr�r@�MAX_Py_ssize_tr�minsizerrrrr#r&r(r-r/rHrOrSrXr\r_r+r.�
picklecopiers�TestCaserhrdr�r�r@r�r�rWrKrcr�rqrzr�r�r�r�rrbrr?r<�main)res0r�<module>rLs%������8������
��
��
�
��	�
�
 �
 ���(�1�*������
������ �-��
���$�F�$;�$;�a�$?�@�B�@�U�"'�L�@�B�
�t"�8�$�$�t"�n-RM�8�$�$�RM�jt�X�%6�%6�t�nk9�X�
�
�k9�Z�
������	�	���������2�
qE�h�/�/�qE�fJ��*�*�J�Z�h�'�'�Z�z4.�X�.�.�4.�n	���#?��"�"�#?��#?�L�
�z���M�M�O���]NBs�;H

Youez - 2016 - github.com/yon3zu
LinuXploit