parameters: (self, is_initialized=True, accept_self=True)
return_statement: return last_child
docstring: Finds the last element beneath this object to be parsed.
docstring_summary: Finds the last element beneath this object to be parsed.
docstring_tokens: Finds the last element beneath this object to be parsed .
function: def _last_descendant(self, is_initialized=True, accept_self=True):
          "Finds the last element beneath this object to be parsed."
          if is_initialized and self.next_sibling:
              last_child = self.next_sibling.previous_element
          else:
              last_child = self
              while isinstance(last_child, Tag) and last_child.contents:
                  last_child = last_child.contents[-1]
          if not accept_self and last_child == self:
              last_child = None
          return last_child
function_tokens: def _last_descendant ( self , is_initialized = True , accept_self = True ) : if is_initialized and self . next_sibling : last_child = self . next_sibling . previous_element else : last_child = self while isinstance ( last_child , Tag ) and last_child . contents : last_child = last_child . contents [ - 1 ] if not accept_self and last_child == self : last_child = None return last_child