()
return sys._getframe(1) if hasattr(sys, "_getframe") else None
Return the frame of the caller or None if this is not possible.
Return the frame of the caller or None if this is not possible.
Return the frame of the caller or None if this is not possible .
def currentframe():
    """Return the frame of the caller or None if this is not possible."""
    return sys._getframe(1) if hasattr(sys, "_getframe") else None
def currentframe ( ) : return sys . _getframe ( 1 ) if hasattr ( sys , "_getframe" ) else None