def canParseNext(self, instring, loc):
        try:
            self.tryParse(instring, loc)
        except (ParseException, __HOLE__):
            return False
        else:
            return True

    # this method gets repeatedly called during backtracking with the same arguments -
    # we can cache these arguments and save ourselves the trouble of re-parsing the contained expression
dataset/ETHPy150Open pypa/pip/pip/_vendor/pyparsing.py/ParserElement.canParseNext