Created
September 30, 2020 20:37
-
-
Save titovanton/144c6dd195d8a6509bd5b310f9c8d315 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict, OrderedDict | |
class DefaultOrderedDict(OrderedDict, defaultdict): | |
def __init__(self, default_factory=None, *args, **kwargs): | |
super(DefaultOrderedDict, self).__init__(*args, **kwargs) | |
self.default_factory = default_factory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment