browson/node.py
def ancestors(self, include_self=False):
        """Yield transitive parents of this node."""
        if include_self:
            yield self
        if self.parent is not None:
            yield from self.parent.ancestors(include_self=True)
Yield transitive parents of this node.
Yield transitive parents of this node.
Yield transitive parents of this node .
def ancestors(self, include_self=False):
        if include_self:
            yield self
        if self.parent is not None:
            yield from self.parent.ancestors(include_self=True)
def ancestors ( self , include_self = False ) : if include_self : yield self if self . parent is not None : yield from self . parent . ancestors ( include_self = True )
Yield transitive parents of this node.
Yield transitive parents of this node .
"""Yield transitive parents of this node."""
self
include_self