[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Pythonic] Are empty tuple and array literals syntactically incompatible?
- From: Charles Heywood <vandor2012@...>
- Date: Fri, 6 Jul 2018 12:58:37 -0500
Sure, but I think the question would more accurately be, "would allowing _any kind_ of these literals introduce an ambiguity", as this is a case that might not have been considered.
On Jul 6, 2018, at 6:35 AM, Luiz Henrique de Figueiredo <firstname.lastname@example.org> wrote:
>> x = 
> x = [] is already a string, not a nested tuple. Requiring x = [ [x]
> ] seems weird.
In the statement x = [], the outer tuple is not empty. Therefore I do not think this presents a conflict.