[Python-Dev] dict(keys, values) (original) (raw)
Brian Quinlan brian at sweetapp.com
Thu Feb 1 13:14:14 CET 2007
- Previous message: [Python-Dev] dict(keys, values)
- Next message: [Python-Dev] dict(keys, values)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] dict(keys, values)
- Next message: [Python-Dev] dict(keys, values)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]