DEV Community

Discussion on: defaultdicts: Never Check If a Key is Present Again!

Collapse
 
rpalo profile image
Ryan Palo

Neat! My first thought was to wonder if it could be done with multiple inheritance between defaultdict and OrderedDict, but that seems like that could be a big nightmare, so your method is probably cleaner. :)