gitmyhub

d1ct

Python ★ 2 updated 4y ago

hybrid object/mapping. d1ct is : attribute-accessible, eg: d.x == d['x'], recursive, nested dicts will become d1cts too, so you can access d.x.a[0].b and have autocompletion too!, json serializable, eg: json.dumps(d), ** unpackable, ior-able, eg: d | otherdict, d |= otherdict , subclassable, metaclassable, interchangable with dict and back.

No plain-English explanation yet — one is being written right now. Check back in a minute.