:
sample = """(test.function, arr(3,12),"combine,into one")"""
from pyparsing import (Suppress, removeQuotes, quotedString, originalTextFor,
OneOrMore, Word, printables, nestedExpr, delimitedList)
LPAR,RPAR = map(Suppress, "()")
quotedString.addParseAction(removeQuotes)
value = (quotedString
| originalTextFor(OneOrMore(Word(printables, excludeChars="(),")
| nestedExpr())))
expr = LPAR + delimitedList(value) + RPAR
print(expr.parseString(sample).asList())
:
['test.function', 'arr(3,12)', 'combine,into one']