a dictionary from a list

Dave Cook davecook at nowhere.net
Fri Jun 24 21:17:23 EDT 2005


On 2005-06-24, infidel <saint.infidel at gmail.com> wrote:

> dict((x, None) for x in alist)

Whoa, I thought dictionary comprehensions were still planned feature.  I
guess I gotta start paying closer attention.

Dave Cook



More information about the Python-list mailing list