Module Import alias ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam defaults vararg body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Exec Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr TupleLoad Str NameLoad TupleLoad Str NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A unittest test test_support N/A textwrap ComplexArgsTestCase N/A N/A unittest TestCase N/A check N/A N/A self func expected N/A args N/A N/A N/A N/A self assertEqual N/A func args expected N/A test_func_parens_no_unpacking N/A N/A self N/A N/A N/A N/A N/A textwrap dedent 
        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)
         N/A test_func_1 N/A N/A self N/A N/A N/A N/A N/A textwrap dedent 
        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,))
         N/A test_func_2 N/A N/A self N/A N/A N/A N/A N/A textwrap dedent 
        def f(((((x)),),)): return x
        self.check(f, 2, ((2,),))
         N/A test_func_3 N/A N/A self N/A N/A N/A N/A N/A textwrap dedent 
        def f((((((x)),),),)): return x
        self.check(f, 3, (((3,),),))
         N/A test_func_complex N/A N/A self N/A N/A N/A N/A N/A textwrap dedent 
        def f((((((x)),),),), a, b, c): return x, a, b, c
        self.check(f, (3, 9, 8, 7), (((3,),),), 9, 8, 7)

        def f(((((((x)),)),),), a, b, c): return x, a, b, c
        self.check(f, (3, 9, 8, 7), (((3,),),), 9, 8, 7)

        def f(a, b, c, ((((((x)),)),),)): return a, b, c, x
        self.check(f, (9, 8, 7, 3), 9, 8, 7, (((3,),),))
         N/A test_lambda_parens_no_unpacking N/A N/A self N/A N/A N/A N/A N/A textwrap dedent 
        f = lambda (((((x))))): x
        self.check(f, 1, 1)
        # Inner parens are elided, same as: f(x,)
        f = lambda ((x)),: x
        self.check(f, 2, 2)
         N/A test_lambda_1 N/A N/A self N/A N/A N/A N/A N/A textwrap dedent 
        f = lambda (((((x),)))): x
        self.check(f, 3, (3,))
        f = lambda (((((x)),))): x
        self.check(f, 4, (4,))
        f = lambda (((((x))),)): x
        self.check(f, 5, (5,))
        f = lambda (((x),)): x
        self.check(f, 6, (6,))
         N/A test_lambda_2 N/A N/A self N/A N/A N/A N/A N/A textwrap dedent 
        f = lambda (((((x)),),)): x
        self.check(f, 2, ((2,),))
         N/A test_lambda_3 N/A N/A self N/A N/A N/A N/A N/A textwrap dedent 
        f = lambda ((((((x)),),),)): x
        self.check(f, 3, (((3,),),))
         N/A test_lambda_complex N/A N/A self N/A N/A N/A N/A N/A textwrap dedent 
        f = lambda (((((x)),),),), a, b, c: (x, a, b, c)
        self.check(f, (3, 9, 8, 7), (((3,),),), 9, 8, 7)

        f = lambda ((((((x)),)),),), a, b, c: (x, a, b, c)
        self.check(f, (3, 9, 8, 7), (((3,),),), 9, 8, 7)

        f = lambda a, b, c, ((((((x)),)),),): (a, b, c, x)
        self.check(f, (9, 8, 7, 3), 9, 8, 7, (((3,),),))
         N/A N/A test_main N/A N/A N/A N/A N/A N/A N/A test_support check_py3k_warnings N/A tuple parameter unpacking has been removed SyntaxWarning N/A parenthesized argument names are invalid SyntaxWarning N/A N/A N/A N/A test_support run_unittest ComplexArgsTestCase N/A N/A N/A __name__ __main__ N/A N/A N/A test_main