7 lines
168 B
Python
7 lines
168 B
Python
|
class attrdict(dict):
|
||
|
def __init__(self, *args, **kwargs):
|
||
|
dict.__init__(self, *args, **kwargs)
|
||
|
|
||
|
def __getattr__(self, name):
|
||
|
return self[name]
|