Who calls my func?Source: https://stackoverflow.com/questions/2654113/how-to-get-the-callers-method-name-in-the-called-method import inspect def f1(): f2() def f2(): curframe = inspect.currentframe() calframe = inspect.getouterframes(curframe, 2) print('...1 min read·signal11.hashnode.devDec 12, 2023
Convert Python `OrderedDict` to standard `dict`Easy peasy import json to_dict = json.dumps(json.load(ordered_dict))1 min read·signal11.hashnode.devMay 18, 2022