7 ms·
Have used all of the techniques in the article (plus dict/set comprehensions) but had never heard of dict views [1] until now. Good stuff! [1] http://docs.pyth
by dougws 14y ago
Have used all of the techniques in the article (plus dict/set comprehensions) but had never heard of dict views [1] until now. Good stuff!
[1] http://docs.python.org/2/library/stdtypes.html#dictionary-view-objects http://docs.python.org/2/library/stdtypes.html#dictionary-vi...