News for hackers. Stuff that matters.
Re:Python iteration by riobard on Wednesday April 25, 2012 @01:20PM (#3890034)
Quickly make a dict:

    >>> keys = ["foo", "bar", "spam", "egg"]
    >>> values = [1, 2, 3, 4]
    >>> dict(zip(keys, values))
    {'egg': 4, 'foo': 1, 'bar': 2, 'spam': 3}
Quite useful when you MGET from Redis.

There are no comments on this comment yet.