collections#
- merge(dest, source)#
Merges source into dest; entries in source take precedence over dest.
This routine may modify dest and should be assigned to dest, in case dest was None to begin with, e.g.:
dest = merge(dest, source)
In the result, elements from lists from
sourcewill appear before elements of lists fromdest. Likewise, when iterating over keys or items in mergedOrderedDictobjects, keys fromsourcewill appear before keys fromdest.Config file authors can optionally end any attribute in a dict with :: instead of :, and the key will override that of the parent instead of merging.
- contains_any(sequence: Iterable[Any], *args: Any) Any#