Paul Rubin
2/1/2008 6:10:00 AM
"Daniel Fetchinson" <fetchinson@googlemail.com> writes:
> What does the author mean here? What's the Preferably One Way (TM) to
> do something analogous to a dict comprehension?
from itertools import izip
d = dict((k,v) for k,v in izip(keys, values))