This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def delete(key, dict_obj): | |
"""Deletes element from dict_obj accessing by complex key | |
Args: | |
key (str): Complex key to your value (separated by dots) | |
dict_obj (dict): Your dictionary | |
Raises: | |
KeyError: if object doesn't contain key |