AllenNeuralDynamics / AllenNeuralDynamics/ficus
Make deep-update and variants support sets and possibly lists
Offen
- Vorherrschende Sprache
- Python
- Sterne
- 1
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Currently, we can only deep update dictionaries into dictionaries.
Currently, if the dict value is a list or set, the new dict value wholesale replaces the old value.
In principle, though, it should be possible to merge sets if the old and new dict value contain sets. This gives us the ability to extend what was present rather than wholesale replace it.
There are a couple use cases where this would be huge nice-to-have. It would be worth supporting it as optional behaviors: `merge_sets` and `extend_iterables`
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.