Dict comprehensions - improvement to docs?

Paul Rubin no.email at nospam.invalid
Mon Mar 16 02:55:31 EDT 2015


"Frank Millman" <frank at chagford.com> writes:
> If you did not know about dict comprehensions, there is nothing to tell you 
> that they even exist. I feel that it should be mentioned.

Yeah, the library reference should treat list and dict comprehensions
the same way.  I would have thought neither of them belongs in the
library reference, but if listcomps are there then dictcomps should also
be there.  Probably a case of the manual not being updated when
dictcomps were added.



More information about the Python-list mailing list