github.com/cheshirekow/buildtools@v0.0.0-20200224190056-5d637702fe81/build/testdata/016.in (about)

     1  # 1-element tuple with trailing comma must preserve it.
     2  
     3  x = (1,)
     4  
     5  y = (
     6      1,
     7  )
     8  
     9  foo((1,))
    10  
    11  bar(1,)
    12  
    13  baz([1,])
    14  
    15  foo((1,
    16  ))
    17  
    18  bar(1,
    19  )
    20  
    21  baz([1,
    22  ])
    23  
    24  x = (1, 2, -3,)
    25  
    26  y = (
    27      1, 2, -3,
    28  )
    29  
    30  foo((1, 2,))
    31  
    32  bar(1, 2,)
    33  
    34  baz([1, 2,])
    35  
    36  foo((1, 2,
    37  ))
    38  
    39  foo((1, 2, [3]))
    40  
    41  bar(1, 2,
    42  )
    43  
    44  baz([1, 2,
    45  ])
    46  
    47  # Implicit tuples
    48  
    49  True,False=False,True
    50  
    51  (a,b),c=d
    52  
    53  c=d,(e,f)