code: def _items(self):
          
          for name in self.declarations:
              yield name, self.declarations[name]
              for subkey, value in self.contexts[name].items():
                  yield self.join(name, subkey), value
docs: Extract a list of (key, value) pairs, suitable for our __init__.