Logo Search packages:      
Sourcecode: calibre version File versions

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

Implementation of ^ operator when left operand is not a ParserElement

Definition at line 1257 of file pyparsing.py.

01257                               :
        """Implementation of ^ operator when left operand is not a ParserElement"""
        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 other ^ self


Generated by  Doxygen 1.6.0   Back to index