def replaceWith(replStr):
    #def _replFunc(*args):
    #    return [replStr]
    #return _replFunc
    return functools.partial(next, itertools.repeat([replStr]))
Helper method for common parse actions that simply return a literal value.  Especially
dataset/ETHPy150Open pypa/pip/pip/_vendor/pyparsing.py/replaceWith