File: example.py

package info (click to toggle)
mergedeep 1.3.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 240 kB
  • sloc: python: 476; makefile: 71; sh: 16
file content (10 lines) | stat: -rw-r--r-- 191 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from mergedeep import merge

a = {"keyA": 1}
b = {"keyB": {"sub1": 10}}
c = {"keyB": {"sub2": 20}}

merged = merge({}, a, b, c)

print(merged)
# {"keyA": 1, "keyB": {"sub1": 10, "sub2": 20}}