(self)
return []
Return the objects from my ultimate parent down to my immediate parent.

    Returns:
      (list) list of CodeObjects.
Return the objects from my ultimate parent down to my immediate parent.
Return the objects from my ultimate parent down to my immediate parent .
def ancestors(self):
    """Return the objects from my ultimate parent down to my immediate parent.

    Returns:
      (list) list of CodeObjects.
    """
    if self.parent:
      return self.parent.ancestors + [self.parent]
    return []
def ancestors ( self ) : if self . parent : return self . parent . ancestors + [ self . parent ] return [ ]