def __init__(self, request_description, is_active=lambda: True):
        """Initialize request with given description and network client

        Parameters
        ----------
        request_description : dict
           name : str
            KATCP name of the request
           description : str
            KATCP request description (as returned by ?help <name>)
           timeout_hint : float or None
            Request timeout suggested by device or None if not provided
        is_active : callable, optional
            Returns True if this request is active, else False

        """
        for required_description_key in ('name', 'description', 'timeout_hint'):
            if required_description_key not in request_description:
                raise ValueError(
                    'Required request_description key {!r} not present'
                    .format(required_description_key))
        self._request_description = dict(request_description)
        self.__doc__ = '\n'.join(('KATCP Documentation',
                                  '===================',
                                  self.description,
                                  'KATCPRequest Documentation',
                                  '==========================',
                                  self.__doc__ or ''))
        self._is_active = is_active
def __init__ ( self , request_description , is_active = lambda : True ) : for required_description_key in ( 'name' , 'description' , 'timeout_hint' ) : if required_description_key not in request_description : raise ValueError ( 'Required request_description key {!r} not present' . format ( required_description_key ) ) self . _request_description = dict ( request_description ) self . __doc__ = '\n' . join ( ( 'KATCP Documentation' , '===================' , self . description , 'KATCPRequest Documentation' , '==========================' , self . __doc__ or '' ) ) self . _is_active = is_active
Initialize request with given description and network client

        Parameters
        ----------
        request_description : dict
           name : str
            KATCP name of the request
           description : str
            KATCP request description (as returned by ?help <name>)
           timeout_hint : float or None
            Request timeout suggested by device or None if not provided
        is_active : callable, optional
            Returns True if this request is active, else False