[Python-ideas] Generator unpacking

Stephen J. Turnbull stephen at xemacs.org
Sun Feb 14 11:39:10 EST 2016


Nick Coghlan writes:
 > On 14 February 2016 at 07:40, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:

 > > Another possibility is
 > >
 > >    a, b, ... = value

+1

It may be TOOWTDI, I thought of it independently.

 > Although again, the main downside would be that "..." here means
 > something rather different from what it means as a subscript
 > element.

But not what it means in natural language, which is basically
"continues as expected".  That's somewhat different from "*" which has
no established meaning in natural language (except "note here"), and
which is already heavily used in Python.

Steve


More information about the Python-ideas mailing list