3 ms·
defaultdict() has the annoying property that it easily creates erroneous keys (e.g. "key" and "keyy") rather than raising an exception. I avoid it for that reas
by musicale 7y ago
defaultdict() has the annoying property that it easily creates erroneous keys (e.g. "key" and "keyy") rather than raising an exception. I avoid it for that reason.