pyhocon icon indicating copy to clipboard operation
pyhocon copied to clipboard

Support updating value using full path and config['a.b.c'] = 5

Open darthbear opened this issue 7 years ago • 2 comments

darthbear avatar Sep 25 '18 14:09 darthbear

I have added an interface called add(key, value), where key can be dot separated strings. Does it solve this issue? I have tried to redefine __setattr__ or __setitem__, but it seems there is some subtle problem. I will come back to it when I am available.

chunyang-wen avatar Sep 28 '18 05:09 chunyang-wen

Currently config.put(key, value) seems to work, like config.put('a.b.c', 5), but not __setitem__.

elbakramer avatar Aug 10 '21 01:08 elbakramer