dict comprehension

Daniel Fetchinson fetchinson at googlemail.com
Fri Feb 1 00:51:12 EST 2008


Hi folks,

There is a withdrawn PEP about a new syntax for dict comprehension:
http://www.python.org/dev/peps/pep-0274/ which says:

"Substantially all of its benefits were subsumed by generator
expressions coupled with the dict() constructor."

What does the author mean here? What's the Preferably One Way (TM) to
do something analogous to a dict comprehension?



More information about the Python-list mailing list