Puzzling difference between lists and tuples

Ethan Furman ethan at stoneleaf.us
Thu Sep 17 14:03:48 EDT 2020


On 9/17/20 10:43 AM, MRAB wrote:
> On 2020-09-17 17:47, Ethan Furman 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.

Ah, right.  Thanks.

--
~Ethan~


More information about the Python-list mailing list