Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dict to attr python

class AttrDict(dict):
    def __init__(self, *args, **kwargs):
        super(AttrDict, self).__init__(*args, **kwargs)
        self.__dict__ = self
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dict #attr #python
ADD COMMENT
Topic
Name
3+2 =