[Python-Dev] Any grammar experts?

Serhiy Storchaka storchaka at gmail.com
Mon Jan 26 21:47:16 CET 2015


On 25.01.15 17:08, Antoine Pitrou wrote:
> On Sat, 24 Jan 2015 21:10:51 -0500
> Neil Girdhar <mistersheik at gmail.com> wrote:
>> To finish PEP 448, I need to update the grammar for syntax such as
>> {**x for x in it}
> Is this seriously allowed by the PEP? What does it mean exactly?

I would understand this as

    {k: v for x in it for k, v in x.items()}




More information about the Python-Dev mailing list