[Python-ideas] Fwd: Fwd: Fwd: unpacking generalisations for list comprehension

Random832 random832 at fastmail.com
Mon Oct 17 13:49:22 EDT 2016


On Mon, Oct 17, 2016, at 13:32, Steven D'Aprano wrote:
> This isn't a small change: it requires not 
> insignificant changes to people's understanding of what list 
> comprehension syntax means and does.

Only if their understanding is limited to a sequence of tokens that it
supposedly expands to [except for all the little differences like
whether a variable actually exists] - like your argument that it should
just convert to a tuple because "yield x, y" happens to yield a tuple -
rather than actual operations with real semantic meaning.


More information about the Python-ideas mailing list