def getlineno(frame):
    # FrameType.f_lineno is now a descriptor that grovels co_lnotab
    return frame.f_lineno
Get the line number from a frame object, allowing for optimization.
dataset/ETHPy150Open cournape/Bento/bento/compat/inspect.py/getlineno