As someone who originally worked on implementing PEP 448, I wanted to chime
in that while I agreed with the decision to be conservative when adding new
features, I originally hoped that [*x for x in xs] would eventually make
its way into Python. To me, it seemed intuitive and I hoped people would
eventually come around to seeing things that way, and to Steven's similar
suggestion for dicts {**x for x in xs}.
However, I had never seen Serhiy and Guido's point about the similarity to
[a, b for a, b in abs]. I agree that the comparison makes sense, and that
that notation is really confusing. Maybe this should be added to the PEP
(https://www.python.org/dev/peps/pep-0448/) as a reminder?
Given the counterpoint, I don't have a strong opinion either way. Maybe
it's better to remain conservative and see where the language is at in
another few years?
On another tangent, I'd like to see array[*x, y] working one day. If I
remember correctly, that was an oversight. It regularly comes up when
indexing numpy arrays, and needs an ugly workaround.
Best,
Neil
>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/K7MYCJPHWMKW67XQAS244CJ4I22VHVSY/
Code of Conduct: http://python.org/psf/codeofconduct/