low-level python hacker and author of RPyC,Construct and Plumbum. writes
about python, algorithms,
software architecture and whatever else comes to mind.
A dictionary that can be accessed with the attribute notation, as well as the item notation:
using AttrDict, a.b is the same as a["b"]. Also, iterating over an AttrDict
yields (key, value) pairs (instead of only keys, as in dicts).
Note, however, that because of the unification of getattr and getitem, you cannot access
the type’s methods, such as get or keys. You can however use the more explicit notation -
AttrDict.<<method>>(<<instance>>, params...).