Blog Archives

Dict (Dictionary) Comprehensions in Python

In my never ending quest to grok Python and do more while writing less code, I came across dict (dictionary) comprehensions. See PEP 274. Dict comprehensions are the dictionary analog to list comprehensions. This post provides a simple problem space,

Tagged with: , ,
Posted in Computing, Python