# HG changeset patch # User Franz Glasner # Date 1639926280 -3600 # Node ID 328af767f5f890124ab12380089efcb770651a6f # Parent ad1e630ba736bddb2441683465d76dd24bc3c69e Implement Configuration.items() and Configuration.values() without interpolating the values diff -r ad1e630ba736 -r 328af767f5f8 configmix/config.py --- a/configmix/config.py Sun Dec 19 14:36:18 2021 +0100 +++ b/configmix/config.py Sun Dec 19 16:04:40 2021 +0100 @@ -380,6 +380,16 @@ """ return super(Configuration, self).__getitem__(key) + def items(self): + """Items without interpolation""" + for k in self: + yield (k, self.getitem_ns(k)) + + def values(self): + """Values without interpolation""" + for k in self: + yield self.getitem_ns(k) + def getvarl(self, *path, **kwds): """Get a variable where the hierarchy is given in `path` as sequence and the namespace is given in the `namespace` keyword argument.