+
    Bi|!                     F   ^ RI t ^ RIHt ^ RIt]P                  t ! R R4      t ! R R]4      t ! R R] P                  4      t
 ! R	 R
4      t ! R R]] P                  4      t ! R R4      t ! R R]] P                  4      t ! R R]] P                  4      t ! R R]] P                  4      t ! R R]] P                  4      t ! R R]] P                  4      t ! R R] P                  4      t ! R R] P                  4      t]R8X  d   ] P,                  ! 4        R# R# )    N)supportc                   &   a  ] tR t^t o R tRtV tR# )newstylec                    V P                   # N)indselfs   &&/usr/lib/python3.14/test/test_index.py	__index__newstyle.__index__   s    xx     N__name__
__module____qualname____firstlineno__r   __static_attributes____classdictcell____classdict__s   @r   r   r      s      r   r   c                   &   a  ] tR t^
t o R tRtV tR# )TrapIntc                    \        V 4      # r   )intr	   s   &r   r   TrapInt.__index__   s    4yr   r   Nr   r   s   @r   r   r   
   s      r   r   c                   P   a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	tV tR
# )BaseTestCasec                B    \        4       V n        \        4       V n        R # r   )r   onr	   s   &r   setUpBaseTestCase.setUp   s    r   c                
   RV P                   n        ^V P                  n        V P                  \        P
                  ! V P                   4      R4       V P                  \        P
                  ! V P                  4      ^4       R#    N)r!   r   r"   assertEqualoperatorindexr	   s   &r   
test_basicBaseTestCase.test_basic   sR    

/4/3r   c                   ^V P                   n        ^V P                  n        \        V P                   V P                   V P                   4      p\        ^^^4      pV P	                  VP                  V P                   4      VP                  ^4      4       \        V P                  V P                  V P                  4      p\        ^^^4      pV P	                  VP                  V P                  4      VP                  ^4      4       R# )   N)r!   r   r"   slicer)   indices)r
   slc	check_slcs   &  r   
test_sliceBaseTestCase.test_slice   s    

DFFDFFDFF+!QN	TVV,i.?.?.BCDFFDFFDFF+!QN	TVV,i.?.?.BCr   c                   ^V P                   n        ^V P                  n        V P                  ^P	                  4       ^4       V P                  ^P	                  4       ) R4       V P                  V P                   P	                  4       ^4       V P                  V P                  P	                  4       ^4       V P                  RP	                  4       ^4       V P                  RP	                  4       ^ 4       R# )   TFNi)r!   r   r"   r)   r   r	   s   &r   test_wrappersBaseTestCase.test_wrappers#   s    

+!,,."-))+Q/))+Q/)1-*A.r   c                    \        \        ^
4      4      pV P                  V\        ^4      \        ^
4       VR,          4       V P                  \	        \        4       4      P                  ^ 4      R4       R# )
   :   r;   NN)r   r   r/   )listranger)   r   r0   r1   )r
   rs   & r   test_subclassesBaseTestCase.test_subclasses-   sT    rO71:gbk2AdG<wy)11!4g>r   c                   R V P                   n        RV P                  n        V P                  \        \
        P                  V P                   4       V P                  \        \
        P                  V P                  4       V P                  \        \        V P                   4      P                  ^ 4       V P                  \        \        V P                  4      P                  ^ 4       R# )dumbbadN)	r!   r   r"   assertRaises	TypeErrorr*   r+   r0   r1   r	   s   &r   
test_errorBaseTestCase.test_error2   s    

)X^^TVV<)X^^TVV<)U466]%:%:A>)U466]%:%:A>r   c                    ! R  R\         4      pV! ^4      pVP                  4       p\        P                  ! V4      pV P	                  V^4       V P	                  V^4       V P                  \        V4      \         4       R# )c                   &   a  ] tR t^=t o R tRtV tR# )8BaseTestCase.test_int_subclass_with_index.<locals>.MyIntc                8    \        \        V 4      4      ^,           # )r/   )r   strr	   s   &r   r   BBaseTestCase.test_int_subclass_with_index.<locals>.MyInt.__index__>   s    3t9~))r   r   Nr   r   s   @r   MyIntrK   =   s     * *r   rO   N)r   r   r*   r+   r)   assertIstype)r
   rO   my_intdirect_indexoperator_indexs   &    r   test_int_subclass_with_index)BaseTestCase.test_int_subclass_with_index:   sh    	*C 	* q'')!/q)+d<(#.r   c                f    ! R  R4      p ! R R\         4      pV! 4       pV P                  \        4      ;_uu_ 4        \        P                  ! V4      pRRR4       V P                  X^4       V! 4       p\        P                  ! V4      pV P                  V^ 4       R#   + '       g   i     LS; i)c                   &   a  ] tR t^Kt o R tRtV tR# )<BaseTestCase.test_index_returns_int_subclass.<locals>.BadIntc                    R # Tr   r	   s   &r   r   FBaseTestCase.test_index_returns_int_subclass.<locals>.BadInt.__index__L       r   r   Nr   r   s   @r   BadIntrY   K         r   r^   c                   &   a  ] tR t^Ot o R tRtV tR# )=BaseTestCase.test_index_returns_int_subclass.<locals>.BadInt2c                    R # r[   r   r	   s   &r   r   GBaseTestCase.test_index_returns_int_subclass.<locals>.BadInt2.__index__P   r]   r   r   Nr   r   s   @r   BadInt2ra   O   r_   r   rd   N)r   assertWarnsDeprecationWarningr*   r+   r)   )r
   r^   rd   bad_intr"   s   &    r   test_index_returns_int_subclass,BaseTestCase.test_index_returns_int_subclassJ   s    	 		c 	 (011w'A 2A)NN7#A 21s   B  B0	)r"   r!   N)r   r   r   r   r#   r,   r4   r8   r@   rG   rU   rh   r   r   r   s   @r   r   r      s3     4D/?
?/  r   r   c                   P   a  ] tR t^]t o R tR tR tR tR tR t	R t
R tR	tV tR
# )SeqTestCasec                ~    \        4       V n        \        4       V n        \        4       V n        \        4       V n        R # r   )r   r!   r"   o2n2r	   s   &r   r#   SeqTestCase.setUp`   s&    **r   c                B   RV P                   n        ^V P                  n        V P                  V P                  V P                  ,          V P                  ^,          4       V P                  V P                  V P                   ,          V P                  R,          4       R# r&   r!   r   r"   r)   seqr	   s   &r   
test_indexSeqTestCase.test_indexf   sb    

$&&)488A;7$&&)488B<8r   c                   ^V P                   n        ^V P                  n        ^V P                  n        ^V P                  n        V P                  V P                  V P                   V P                   V P                  R,          4       V P                  V P                  V P                  V P                   V P                  R,          4       R# )r/   :r/      N:r'   r7   NN)r!   r   rm   r"   rn   r)   rr   r	   s   &r   r4   SeqTestCase.test_slicel   s    

$&&1488C=A$&&1488C=Ar   c                   \        V P                  4      p\        VR ,          4      V P                  n        V^,           V P
                  n        V P                  V P                  V P                  R V P                  R,          4       V P                  V P                  RV P                   V P                  4       V P                  V P                  V P
                  R V P                  R,          4       V P                  V P                  RV P
                   V P                  4       V) ^,
          V P                  n        \        VR ,          4      ) V P                  n        V P                  V P                  V P                  R V P                  4       V P                  V P                  RV P                   V P                  R,          4       V P                  V P                  V P                  R V P                  4       V P                  V P                  RV P                   V P                  R,          4       R# )g      ?N:r   r   N)	lenrr   r   r!   r   r"   r)   rm   rn   )r
   seqlens   & r   test_slice_bug7532SeqTestCase.test_slice_bug7532t   s   TXX#&
aZ
$&&'*DHHSM:'466*DHH5$&&'*DHHSM:'466*DHH5gk6C<(($''(+TXX6(477+TXXc];$''(+TXX6(477+TXXc];r   c                :   ^V P                   n        ^V P                  n        V P                  V P                  V P                   ,          V P                  ^,          4       V P                  V P                  V P                  ,          V P                  ^,          4       V P                  V P                   V P                  ,          V P                  ^,          4       V P                  V P                  V P                  ,          V P                  ^,          4       R# )rv   Nrq   r	   s   &r   test_repeatSeqTestCase.test_repeat   s    

DFF*DHHqL9DFF*DHHqL9$((*DHHqL9$((*DHHqL9r   c                   ^V P                   n        ^V P                  n        V P                  V P                  P                  V P                   4      V P                  ^,          4       V P                  V P                  P                  V P                   4      V P                  ^,          4       V P                  V P                  P                  V P                   4      V P                  ^,          4       V P                  V P                  P                  V P                  4      V P                  ^,          4       V P                  V P                  P                  V P                  4      V P                  ^,          4       V P                  V P                  P                  V P                  4      V P                  ^,          4       R# )r7   N)r!   r   r"   r)   rr   __getitem____mul____rmul__r	   s   &r   r8   SeqTestCase.test_wrappers   s   

--dff5txx{C))$&&1488a<@**4662DHHqLA--dff5txx{C))$&&1488a<@**4662DHHqLAr   c                ~    V P                  V P                  \        4       ,          V P                  ^ ,          4       R# )r   N)r)   rr   r   r	   s   &r   r@   SeqTestCase.test_subclasses   s%    '),dhhqk:r   c                ^   R V P                   n        RV P                  n        R pV P                  \        WP                   V 4       V P                  \        WP                  V 4       R pV P                  \        W P                   V 4       V P                  \        W P                  V 4       R# )rC   rD   c                 (    VP                   V ,          # r   rr   xobjs   &&r   <lambda>(SeqTestCase.test_error.<locals>.<lambda>   s    #''!*r   c                      VP                   V R  # r   r   r   s   &&r   r   r      s    #''!"+r   N)r!   r   r"   rE   rF   )r
   indexobjsliceobjs   &  r   rG   SeqTestCase.test_error   sz    

,)Xvvt<)Xvvt<-)Xvvt<)Xvvt<r   )r"   rn   r!   rm   N)r   r   r   r   r#   rs   r4   r{   r~   r8   r@   rG   r   r   r   s   @r   rk   rk   ]   s4     9B<:B;= =r   rk   c                   4   a  ] tR t^t o . ROtR tR tRtV tR# )ListTestCasec                   RV P                   n        ^V P                  n        \        R4      pWP                    WP                   RWP                   &   RWP                  &   V P	                  V\        R4      4       . ROpVP                  V P                  R4       V P	                  V. R	O4       VP                  V P                  4       V P	                  V. R
O4       R# )r'   zab!cdefghi!jXY
abYdefghXjhereNr(   )r<            	   r;      )r<   r   r   r   r   r;   r   )r<   r   r   r   r;   r   )r!   r   r"   r=   r)   __setitem____delitem__)r
   lsts   & r   test_setdelitemListTestCase.test_setdelitem   s    

>"KKFFFFd<01%':;23r   c                   ^V P                   n        ^V P                  n        ^^.pWP                   ,          pV P                  V. RO4       WP                  ,          pV P                  V. RO^,          4       . ROpVP	                  V P                  4      pV P                  W!4       V P                  V. RO^,          4       R# )r'   N)r   r7   r   r7   )r<   r   r   r   r   r   )r!   r   r"   r)   __imul__rP   )r
   r   l2s   &  r   test_inplace_repeat ListTestCase.test_inplace_repeat   s    

!fvvl+vvlQ./!\\$&&!b1A56r   r   Nr   r;         (   2   )	r   r   r   r   rr   r   r   r   r   r   s   @r   r   r      s     
C4 7 7r   r   c                   H   a  ] tR t^t o R tR tR tR tR t]t	R t
RtV tR# )	NewSeqc                &    \        V4      V n        R # r   )r=   _list)r
   iterables   &&r   __init__NewSeq.__init__   s    (^
r   c                ,    \        V P                  4      # r   )reprr   r	   s   &r   __repr__NewSeq.__repr__   s    DJJr   c                     V P                   V8H  # r   r   )r
   others   &&r   __eq__NewSeq.__eq__   s    zzU""r   c                ,    \        V P                  4      # r   )ry   r   r	   s   &r   __len__NewSeq.__len__   s    4::r   c                F    V P                  V P                  V,          4      # r   )	__class__r   r
   r"   s   &&r   r   NewSeq.__mul__   s    ~~djjl++r   c                (    V P                   V,          # r   r   )r
   r+   s   &&r   r   NewSeq.__getitem__   s    zz%  r   r   N)r   r   r   r   r   r   r   r   r   r   r   r   r   r   s   @r   r   r      s-     $ #,H! !r   r   c                       ] tR t^tRtRtR# )TupleTestCaser   Nr   r   r   r   r   rr   r   r   r   r   r   r      s    
Cr   r   c                   &    ] tR t^t]! R4      tRtR# )ByteArrayTestCase   this is a testr   N)r   r   r   r   	bytearrayrr   r   r   r   r   r   r      s    
%
&Cr   r   c                       ] tR t^tRtRtR# )BytesTestCaser   r   Nr   r   r   r   r   r      s    
Cr   r   c                       ] tR t^tRtRtR# )StringTestCasezthis is a testr   Nr   r   r   r   r   r      s    
Cr   r   c                   &    ] tR t^t]! R4      tRtR# )NewSeqTestCaser   Nr   )r   r   r   r   r   rr   r   r   r   r   r   r      s    
#
$Cr   r   c                   &   a  ] tR t^t o R tRtV tR# )RangeTestCasec                    \        4       p^Vn        V P                  \        ^^4      V,          ^4       V P                  \        ^^4      P	                  V4      ^4       R# )r<   N)r   r   r)   r>   r   r   s   & r   
test_rangeRangeTestCase.test_range   sK    Jq"a!,q"11!4a8r   r   N)r   r   r   r   r   r   r   r   s   @r   r   r      s     9 9r   r   c                   8   a  ] tR t^t o R tR tR tR tRtV t	R# )OverflowTestCasec                F    ^^d,          V n         V P                   ) V n        R# )r'   N)posnegr	   s   &r   r#   OverflowTestCase.setUp   s    c6HH9r   c                    V P                  V P                  P                  4       V P                  4       V P                  V P                  P                  4       V P                  4       R # r   )r)   r   r   r   r	   s   &r   test_large_longs!OverflowTestCase.test_large_longs   sD    ++-txx8++-txx8r   c                    ! R  R4      pV! 4       pV P                  W P                  ,          V P                  4       V P                  W P                  ,          V P                  4       V P                  W P                  V P                   P                  \        4      ^ \        ^34       V P                  W P                  V P                  ^1,          P                  \        4      ^ \        ^34       R# )c                   ,   a  ] tR tRt o R tR tRtV tR# ).OverflowTestCase.test_getitem.<locals>.GetItem   c                    R # r   r   r	   s   &r   r   6OverflowTestCase.test_getitem.<locals>.GetItem.__len__  s    r   c                    V# r   r   )r
   keys   &&r   r   :OverflowTestCase.test_getitem.<locals>.GetItem.__getitem__  s    
r   r   N)r   r   r   r   r   r   r   r   r   s   @r   GetItemr      s     > r   r   N)r)   r   r   r1   maxsize)r
   r   r   s   &  r   test_getitemOverflowTestCase.test_getitem   s    	 	
 I88dhh/88dhh/88DHH-55g>Wa	*88DHHQ./77@Wa	*r   c                p   a  S P                  \        V 3R  l4       S P                  \        V 3R l4       R# )c                  *   < R S P                   ,          # a)r   r	   s   r   r   7OverflowTestCase.test_sequence_repeat.<locals>.<lambda>      txxr   c                  *   < R S P                   ,          # r   )r   r	   s   r   r   r     r   r   N)rE   OverflowErrorr	   s   fr   test_sequence_repeat%OverflowTestCase.test_sequence_repeat  s%    -)?@-)?@r   )r   r   N)
r   r   r   r   r#   r   r   r   r   r   r   s   @r   r   r      s      9*A Ar   r   __main__)unittesttestr   r*   MAX_Py_ssize_tr   r   r   r   TestCaser   rk   r   r   r   r   r   r   r   r   r   r   mainr   r   r   <module>r      s     

 
  c L8$$ L^C= C=L7; 1 1 7D! !,K!2!2 'X%6%6 'K!2!2 [("3"3 %[("3"3 %
9H%% 9Ax(( A: zMMO r   