def update(self, sequence=None, **mapping):
if sequence is not None:<EOL><INDENT>if isinstance(sequence, dict):<EOL><INDENT>for slot in sequence:<EOL><INDENT>self[slot] = sequence[slot]<EOL><DEDENT><DEDENT>else:<EOL><INDENT>for slot, value in sequence:<EOL><INDENT>self[slot] = value<EOL><DEDENT><DEDENT><DEDENT>if mapping:<EOL><INDENT>for slot in sequence:<EOL><INDENT>self[slot] = sequence[slot]<EOL><DEDENT><DEDENT>
Add multiple elements to the fact.