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
| *.c diff=cpp | |
| *.h diff=cpp | |
| *.c++ diff=cpp | |
| *.h++ diff=cpp | |
| *.cpp diff=cpp | |
| *.hpp diff=cpp | |
| *.cc diff=cpp | |
| *.hh diff=cpp | |
| *.m diff=objc | |
| *.mm diff=objc |
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
| """Utility functions""" | |
| from functools import reduce | |
| from operator import getitem | |
| from typing import Any, Mapping, Union | |
| def getdeep(data: Mapping, map_list: Union[list, str], default: Any = None) -> Any: | |
| """Iterate nested dictionary|list and can return default value if key not found |
OlderNewer