def _get_args_for_controller(self, controller):
        """
        Retrieve the arguments we actually care about.  For Pecan applications
        that utilize thread locals, we should truncate the first argument,
        `self`.  For applications that explicitly pass request/response
        references as the first controller arguments, we should truncate the
        first three arguments, `self, req, resp`.
        """
        argspec = getargspec(controller)
        from pecan import request
        try:
            request.path
        except __HOLE__:
            return argspec.args[3:]
        return argspec.args[1:]
dataset/ETHPy150Open pecan/pecan/pecan/rest.py/RestController._get_args_for_controller