Python 3.3 introduced the __qualname__ attribute for function objects and class objects.
It's easy to get the (unqualified) name and a code object for the currently executing function.
But how to get the qualified name for the currently executing function?
__qualname__.__name__?inspect.stack()[0][0].f_code.co_name.c1.c2.f1.<locals>.f2. For me even better would be:c1.c2.f1.f2.