alexferl / vyper

Python configuration with (more) fangs
MIT License
144 stars 21 forks source link

Fix for dict unfolding #3

Closed LaserPhaser closed 6 years ago

LaserPhaser commented 6 years ago

Dict unfolding (_search_dict function) now operates with array of items to search. Order of elements in list - is the order of unfolding the dicts. For example to unfold {'a':{'b':'c'}}, we must pass an array ['a','b'] Passing full path as aruments required for the following situation. test ={'root': {'x': {'test': True}, 'y': {'test': False} } } Before this path we passed only 'test' to the search_dict functino and first math has been returned. This was wrong for example for get('x.y.test') because True was returned.

Test added.

LaserPhaser commented 6 years ago

@admiralobvious , please have a look

alexferl commented 6 years ago

@ArseniyAntonov good catch, thank you. I will make a new release when I have moment.