Gives the current execution frame.

        :returns:
            The current execution frame that is actually executing this.

def current_frame(raw=False):
        '''
        Gives the current execution frame.

        :returns:
            The current execution frame that is actually executing this.
        '''

        # `import sys` is important here, because the `sys` module is special
        # and we will end up with the class frame instead of the `current` one.

        if NATIVE:
            import sys

            frame = sys._getframe()
        else:
            frame = _getframe()

        frame = frame.f_back

        if not raw:
            frame = Frame(frame)

        return frame