Logo Search packages:      
Sourcecode: calibre version File versions

def calibre::utils::pyparsing::ParserElement::__xor__ (   self,
  other 
) [inherited]

Implementation of ^ operator - returns Or

Definition at line 1247 of file pyparsing.py.

01247                              :
        """Implementation of ^ operator - returns Or"""
        if isinstance( other, basestring ):
            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 ] )


Generated by  Doxygen 1.6.0   Back to index