'Implementation of ^ operator - returns Or'

def __xor__(self, other):

    if isinstance(other, __BASE_STRING__):
        other = Literal(other)
    if (not isinstance(other, ParserElement)):
        warnings.warn(('Cannot    combine    element    of    type    %s    with    ParserElement' % type(other)), SyntaxWarning, stacklevel=2)
        return None
    return Or([self, other])
