(self, elements, sep="(\\s+|\\s*,\\s*)", name=None,
                 progressive=False)
:param elements: the sequence of sub-elements to parse.
        :param sep: a separator regular expression to match between elements,
            or None to not have separators.
        :param name: a name for this element (for debugging purposes only).
        :param progressive: if True, elements after the first do not need to
            match. That is, for elements (a, b, c) and progressive=True, the
            sequence matches like ``a[b[c]]``.
:param elements: the sequence of sub-elements to parse.
        :param sep: a separator regular expression to match between elements,
            or None to not have separators.
        :param name: a name for this element (for debugging purposes only).
        :param progressive: if True, elements after the first do not need to
            match. That is, for elements (a, b, c) and progressive=True, the
            sequence matches like ``a[b[c]]``.
: param elements : the sequence of sub - elements to parse . : param sep : a separator regular expression to match between elements or None to not have separators . : param name : a name for this element ( for debugging purposes only ) . : param progressive : if True elements after the first do not need to match . That is for elements ( a b c ) and progressive = True the sequence matches like a [ b [ c ]] .
def __init__(self, elements, sep="(\\s+|\\s*,\\s*)", name=None,
                 progressive=False):
        """
        :param elements: the sequence of sub-elements to parse.
        :param sep: a separator regular expression to match between elements,
            or None to not have separators.
        :param name: a name for this element (for debugging purposes only).
        :param progressive: if True, elements after the first do not need to
            match. That is, for elements (a, b, c) and progressive=True, the
            sequence matches like ``a[b[c]]``.
        """

        super(Sequence, self).__init__(elements, name)
        self.sep_pattern = sep
        if sep:
            self.sep_expr = rcompile(sep, re.IGNORECASE)
        else:
            self.sep_expr = None
        self.progressive = progressive
def __init__ ( self , elements , sep = "(\\s+|\\s*,\\s*)" , name = None , progressive = False ) : super ( Sequence , self ) . __init__ ( elements , name ) self . sep_pattern = sep if sep : self . sep_expr = rcompile ( sep , re . IGNORECASE ) else : self . sep_expr = None self . progressive = progressive