Two variable dictionary comprehension

Deborah Swanson python at
Tue Apr 4 18:34:11 EDT 2017

Terry Reedy wrote, on Tuesday, April 04, 2017 11:04 AM
> 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

Thanks Terry. I does seem strange that there are so many types of
comprehensions, yet under 'comprehensions' in the Index, you only see
'list'. And there are no entries for the other types, by their names.


More information about the Python-list mailing list