def command(self, name, *args):
        """Execute a raw command."""
        args = [name.encode('utf-8')] + [ (arg if type(arg) is bytes else str(arg).encode('utf-8'))
                for arg in args if arg is not None ] + [None]
        _mpv_command(self.handle, (c_char_p*len(args))(*args))
def command ( self , name , * args ) : args = [ name . encode ( 'utf-8' ) ] + [ ( arg if type ( arg ) is bytes else str ( arg ) . encode ( 'utf-8' ) ) for arg in args if arg is not None ] + [ None ] _mpv_command ( self . handle , ( c_char_p * len ( args ) ) ( * args ) )
Execute a raw command.