[Python-Dev] dict(keys, values) (original) (raw)

George Sakkis george.sakkis at gmail.com
Thu Feb 1 07:10:43 CET 2007


Perhaps this has been brought up in the past but I couldn't find it in the archives: far too often I use the idiom dict(zip(keys,values)), or the same with izip. How does letting dict take two positional arguments sound ?

Pros:

Cons:

George



More information about the Python-Dev mailing list