def __setitem__(self, key, value):
        "Sets key with value if key does not exist."
        assert key not in self, 'Key already exists!'
        super().__setitem__(key, value)
Sets key with value if key does not exist.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py