[Python-Dev] Pre-PEP: Allow Empty Subscript List Without Parentheses

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Jun 10 12:57:42 CEST 2006


Ka-Ping Yee wrote:

> I think the whole discussion about the concept and meaning of
> zero-dimensional arrays is mostly irrelevant to the original
> issue.  The original issue is a *syntax* question: should
> x[()] be written as x[]?

But, at least as presented in the PEP, it's a
syntax that was motivated by a perceived need
for dealing with 0D arrays. So it seems relevant
to ask whether 0D arrays are really needed or not.

Does anyone have any other use case for this
syntax?

--
Greg


More information about the Python-Dev mailing list