Re: [Pythonic] Are empty tuple and array literals syntactically	incompatible?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [Pythonic] Are empty tuple and array literals syntactically	incompatible?
 
- From: Jay Mithani <jayvmithani@...>
 
- Date: Fri, 6 Jul 2018 13:31:05 -0400
 
On Jul 6, 2018, at 6:35 AM, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
>> x = []
> 
> x = [[1]] 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.