Answers for "access dict elements with dot"

0

access dict elements with dot

class dotdict(dict):
    """dot.notation access to dictionary attributes"""
    __getattr__ = dict.get
    __setattr__ = dict.__setitem__
    __delattr__ = dict.__delitem__
Posted by: Guest on May-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language