4 ms·
Oh, wow. I didn't know the dict comprehensions. Since when do they exist? I always used: d = dict((key(x), value(x)) for x in xs)
by panzi 12y ago
Oh, wow. I didn't know the dict comprehensions. Since when do they exist? I always used:
d = dict((key(x), value(x)) for x in xs)