Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

accessing python dictionary values with dot

class dotdict(dict):
    """dot.notation access to dictionary attributes"""
    __getattr__ = dict.get
    __setattr__ = dict.__setitem__
    __delattr__ = dict.__delitem__
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #accessing #python #dictionary #values #dot
ADD COMMENT
Topic
Name
5+4 =