(self, other)
return And( [ self, And._ErrorStop(), other ] )
Implementation of - operator, returns And with error stop
Implementation of - operator, returns And with error stop
Implementation of - operator returns And with error stop
def __sub__(self, other):
        """Implementation of - operator, returns And with error stop"""
        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 And( [ self, And._ErrorStop(), other ] )
def __sub__ ( self , other ) : 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 And ( [ self , And . _ErrorStop ( ) , other ] )