def __init__(self, exprs):
    super(ParseExpression, self).__init__()
    if isinstance(exprs, types.GeneratorType):
        exprs = list(exprs)
    if isinstance(exprs, six.text_type):
        self.exprs = [Word(exprs)]
    elif isinstance(exprs, collections.Sequence):
        if all((isinstance(expr, six.text_type) for expr in exprs)):
            exprs = map(Word, exprs)
        self.exprs = list(exprs)
    else:
        try:
            self.exprs = list(exprs)
        except TypeError:
            self.exprs = [exprs]
def __init__(self, exprs):
    super(ParseExpression, self).__init__()
    if isinstance(exprs, types.GeneratorType):
        exprs = list(exprs)
    if isinstance(exprs, six.text_type):
        self.exprs = [Word(exprs)]
    elif isinstance(exprs, collections.Sequence):
        if all((isinstance(expr, six.text_type) for expr in exprs)):
            exprs = map(Word, exprs)
        self.exprs = list(exprs)
    else:
        try:
            self.exprs = list(exprs)
        except TypeError:
            self.exprs = [exprs]