comparison configmix/config.py @ 443:23941c014130

FIX: Merge properly when the configuration's __getitem__ do now interpolate: prohibit duplicate interpolation and interpolation while merging
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 10 Dec 2021 09:27:47 +0100
parents 94cf5a8722d6
children b95c12781497
comparison
equal deleted inserted replaced
442:94cf5a8722d6 443:23941c014130
265 return False 265 return False
266 else: 266 else:
267 return True 267 return True
268 else: 268 else:
269 return super(Configuration, self).__contains__(key) 269 return super(Configuration, self).__contains__(key)
270
271 def getitem_ns(self, key):
272 """Just forward to the *original* :meth:`dict.__getitem__`.
273
274 No variable interpolation and key path access.
275
276 """
277 return super(Configuration, self).__getitem__(key)
270 278
271 def getvarl(self, *path, **kwds): 279 def getvarl(self, *path, **kwds):
272 """Get a variable where the hierarchy is given in `path` as sequence 280 """Get a variable where the hierarchy is given in `path` as sequence
273 and the namespace is given in the `namespace` keyword argument. 281 and the namespace is given in the `namespace` keyword argument.
274 282