def join(self, combiner, other): XPathExpr.join(self, combiner, other) self.post_condition = other.post_condition
def __str__(self): path = XPathExpr.__str__(self) if self.post_condition: path = '(%s)[%s]' % (path, self.post_condition) return path