Get the current function's name Published: 2022-06-02 Updated: 2023-11-08 Source: https://stackoverflow.com/questions/5067604/determine-function-name-from-within-that-function-without-using-traceback inspect.currentframe().f_code.co_name