| Server IP : 118.27.122.248 / Your IP : 216.73.217.50 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python27/lib64/python2.7/test/ |
Upload File : |
�
�q2_c @ sd d d l Z d d l m Z d d l Z d e j f d � � YZ d � Z e d k r` e � n d S( i����N( t test_supportt ComplexArgsTestCasec B sk e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d
� Z RS( c G s | j | | � | � d S( N( t assertEqual( t selft funct expectedt args( ( s; /opt/alt/python27/lib64/python2.7/test/test_complex_args.pyt check s c B s e j d � d Ud S( Ns�
def f(((((x))))): return x
self.check(f, 1, 1)
# Inner parens are elided, same as: f(x,)
def f(((x)),): return x
self.check(f, 2, 2)
( t textwrapt dedent( R ( ( s; /opt/alt/python27/lib64/python2.7/test/test_complex_args.pyt test_func_parens_no_unpacking s c B s e j d � d Ud S( Ns
def f(((((x),)))): return x
self.check(f, 3, (3,))
def f(((((x)),))): return x
self.check(f, 4, (4,))
def f(((((x))),)): return x
self.check(f, 5, (5,))
def f(((x),)): return x
self.check(f, 6, (6,))
( R R ( R ( ( s; /opt/alt/python27/lib64/python2.7/test/test_complex_args.pyt test_func_1 s c B s e j d � d Ud S( NsP
def f(((((x)),),)): return x
self.check(f, 2, ((2,),))
( R R ( R ( ( s; /opt/alt/python27/lib64/python2.7/test/test_complex_args.pyt test_func_2&