def _valid_param(param):
    """Check parameter are valid for _args_kwargs.

    * no space
    * a name before '='
    """
    if ' ' in param:
        raise ValueError('no space allowed')
    if param.startswith('='):
        raise ValueError("name required for kwarg '%s'" % param)
