def setResultsName( self, name, listAllMatches=False ):
        newself = self.copy()
        newself.resultsName = name
        newself.modalResults = not listAllMatches
        return newself
Define name for referencing matching tokens as a nested attribute
dataset/ETHPy150Open ipython/ipython-py3k/IPython/external/pyparsing/_pyparsing.py/ParserElement.setResultsName