def currentframe(n=0):
    f = inspect.currentframe()
    for x in range(n + 1):
        f = f.f_back
    return f
In Python 3, L{inspect.currentframe} does not take a stack-level argument.
dataset/ETHPy150Open twisted/twisted/twisted/python/compat.py/currentframe