(self, handler, *args)
Sends a synchronous request (waits for the reply to arrive)
        
        :raises: any exception that the requets may be generated
        :returns: the result of the request
Sends a synchronous request (waits for the reply to arrive)
        
        :raises: any exception that the requets may be generated
        :returns: the result of the request
Sends a synchronous request ( waits for the reply to arrive ) : raises : any exception that the requets may be generated : returns : the result of the request
def sync_request(self, handler, *args):
        """Sends a synchronous request (waits for the reply to arrive)
        
        :raises: any exception that the requets may be generated
        :returns: the result of the request
        """
        seq = self._send_request(handler, args)
        while seq not in self._sync_replies:
            self.serve(0.1)
        isexc, obj = self._sync_replies.pop(seq)
        if isexc:
            raise obj
        else:
            return obj
def sync_request ( self , handler , * args ) : seq = self . _send_request ( handler , args ) while seq not in self . _sync_replies : self . serve ( 0.1 ) isexc , obj = self . _sync_replies . pop ( seq ) if isexc : raise obj else : return obj