(self)
Returns the real name (object name) of this identifier.
Returns the real name (object name) of this identifier.
Returns the real name ( object name ) of this identifier .
def get_real_name(self):
        """Returns the real name (object name) of this identifier."""
        # a.b
        dot = self.token_next_match(0, T.Punctuation, '.')
        if dot is None:
            return self.token_next_by_type(0, T.Name).value
        else:
            next_ = self.token_next_by_type(self.token_index(dot),
                                            (T.Name, T.Wildcard))
            if next_ is None:  # invalid identifier, e.g. "a."
                return None
            return next_.value
def get_real_name ( self ) : # a.b dot = self . token_next_match ( 0 , T . Punctuation , '.' ) if dot is None : return self . token_next_by_type ( 0 , T . Name ) . value else : next_ = self . token_next_by_type ( self . token_index ( dot ) , ( T . Name , T . Wildcard ) ) if next_ is None : # invalid identifier, e.g. "a." return None return next_ . value