Commit 981c0a29 authored by IlyaOvodov's avatar IlyaOvodov

AttrDict: dict -> OrderedDict

parent f1221f10
...@@ -2,8 +2,10 @@ import hashlib ...@@ -2,8 +2,10 @@ import hashlib
import json import json
import ast import ast
import os import os
from collections import OrderedDict
class AttrDict(dict):
class AttrDict(OrderedDict):
''' '''
dictionary allowing to access by dic[xxx] as well as dic.xxx syntax, including nested dictionaries: dictionary allowing to access by dic[xxx] as well as dic.xxx syntax, including nested dictionaries:
m = param.AttrDict(a = 1, b = {'b1': 2, 'b2':3}, c = 4) m = param.AttrDict(a = 1, b = {'b1': 2, 'b2':3}, c = 4)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment