(expr)
return TokenConverter(expr).addParseAction(lambda t:t[0])
Helper to undo pyparsing's default grouping of And expressions,
    even if all but one are non-empty.
Helper to undo pyparsing's default grouping of And expressions,
    even if all but one are non-empty.
Helper to undo pyparsing s default grouping of And expressions even if all but one are non - empty .
def ungroup(expr):
    """Helper to undo pyparsing's default grouping of And expressions,
    even if all but one are non-empty.
    """
    return TokenConverter(expr).addParseAction(lambda t:t[0])
def ungroup ( expr ) : return TokenConverter ( expr ) . addParseAction ( lambda t : t [ 0 ] )