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

Brian Quinlan brian at sweetapp.com
Thu Feb 1 13:14:14 CET 2007


George Sakkis wrote:

Um, you do realize that dict(keys=keys, values=values) is already valid and quite different from dict(zip(keys, values)), don't you ? :)

Sorry, minor misreading on my part. Like that time in Sunday school when I missed the "not" in "Though shall not kill". That was a rough week for everyone involved.

OK, the non-zip variant saves you 5 characters i.e.

dict(zip(keys, values)) vs. dict(keys, values)

I still don't like it :-)

Cheers, Brian



More information about the Python-Dev mailing list