(self)
return prev_.value
Return name of the parent object if any.

        A parent object is identified by the first occuring dot.
Return name of the parent object if any.
Return name of the parent object if any .
def get_parent_name(self):
        """Return name of the parent object if any.

        A parent object is identified by the first occuring dot.
        """
        dot = self.token_next_match(0, T.Punctuation, '.')
        if dot is None:
            return None
        prev_ = self.token_prev(self.token_index(dot))
        if prev_ is None:  # something must be verry wrong here..
            return None
        return prev_.value
def get_parent_name ( self ) : dot = self . token_next_match ( 0 , T . Punctuation , '.' ) if dot is None : return None prev_ = self . token_prev ( self . token_index ( dot ) ) if prev_ is None : # something must be verry wrong here.. return None return prev_ . value