(self, other)
return self.parent == other
Returns ``True`` if this token is a direct child of *other*.
Returns ``True`` if this token is a direct child of *other*.
Returns True if this token is a direct child of * other * .
def is_child_of(self, other):
        """Returns ``True`` if this token is a direct child of *other*."""
        return self.parent == other
def is_child_of ( self , other ) : return self . parent == other