nested
Deprecated (13 Aug 2006)
The nested module is accessible via the initools module.
Layers multiple dictionaries.
Nested dictionaries can be traversed, with each dictionary shadowing the previous dictionaries. So for example:
>>> d = NestedDict([{'foo': 'bar'}])
>>> d['foo']
'bar'
>>> d2 = d.clone(add_dict={'foo': 'bar2'})
>>> d2['foo']
'bar2'
>>> d2.getlist('foo')
['bar2', 'bar']
This works for deeply nested dictionaries, not just at the top level; each nested dictionary gets wrapped in a NestedDict as well.
Attributes
a __warningregistry__
{('initools.nested is not supported or recommended for use.', <class exceptions.DeprecationWarning at 0xb7d31efc>, 25): 1}
Classes
C NestedDict(...) ...
This class contains 17 members.
See the source for more information.