Dict comprehensions - improvement to docs?

Frank Millman frank at chagford.com
Mon Mar 16 01:25:40 EDT 2015


Hi all
I like dict comprehensions, but I don't use them very often, so when I do I 
need to look up the format.
I always struggle to find the information in the Library Reference. The 
obvious location, Mapping Types, shows various constructors, but not the 
comprehension.
https://docs.python.org/3/library/stdtypes.html#mapping-types-dict
So I turn to Google. It shows a couple of StackOverflow questions, and then 
a link to the Data Structures section of the Tutorial, which explains it 
succinctly.
https://docs.python.org/3/tutorial/datastructures.html#dictionaries
I feel that the Library Reference should be updated to include dict 
comprehensions.
Just checking here first before I raise a Documentation issue.
Frank Millman


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /