Source code for lib.util

import inspect

# Python execution stack analysis util - tells you who called current function etc.
[docs]def whosdaddy(): return inspect.stack()[2][3]
[docs]def whosgranddaddy(): return inspect.stack()[3][3]