def merge(self, other):
for key, value in other.items():<EOL><INDENT>if key in self and (isinstance(self[key], Compound)<EOL>and isinstance(value, dict)):<EOL><INDENT>self[key].merge(value)<EOL><DEDENT>else:<EOL><INDENT>self[key] = value<EOL><DEDENT><DEDENT>
Recursively merge tags from another compound.