Feb. 26, 2014
9:30 p.m.
Ron Adam wrote:
Dictionaries are pretty flexible on how they are initiated, so it's surprising we can't do this...
D = dict(keys=names, values=args)
All keywords are taken by the dict(name = value, ...) constructor, so this is not so surprising. But you can write that as D = dict(zip(names, values)) -- Greg