Two variable dictionary comprehension

Terry Reedy tjreedy at udel.edu
Tue Apr 4 14:03:59 EDT 2017


On 4/3/2017 2:35 AM, Gregory Ewing wrote:
> Deborah Swanson wrote:
>
>> Oh, come on. That's a fairly obscure citation in the docs, one that
>> would take a good deal of experience and time reading through them to
>> know was there,

> Having said that, the index of the Python docs could be
> improved a bit in this area -- currently it only mentions
> "list" under "comprehension" (although the page it leads
> to discusses the other types as well).

I am sure that this is because list comprehensions were once thr only 
comprehensions and that the index was not updated when the syntax and 
code was.  I opened issue 29981 "Update Index for set, dict, and 
generator 'comprehensions'".

-- 
Terry Jan Reedy




More information about the Python-list mailing list