On 2020-09-17, MRAB <pyt...@mrabarnett.plus.com> wrote: >> The only time the parentheses are required for tuple building is when >> they would otherwise not be interpreted that way: >> > They're needed for the empty tuple, which doesn't have a comma. > >> some_func('first', 'second') # some_func called with two str args >> >> some_func(('first', 'second')) # some_func called with one tuple arg
Yea, the syntax for tuple literals has always been a bit of an ugly spot in Python. If ASCII had only had one more set of open/close brackets... -- Grant -- https://mail.python.org/mailman/listinfo/python-list