(self)
return seq_format.format(**seq_format_values) == self.name
Tells whether or not this element is the last one of the sequence chain.

        :return: True if it is the last element of the chain.
Tells whether or not this element is the last one of the sequence chain.
Tells whether or not this element is the last one of the sequence chain .
def _is_last_from_seq_chain(self):
        """Tells whether or not this element is the last one of the sequence chain.

        :return: True if it is the last element of the chain.
        """
        last_sequence = self._get_last_sequence(with_prefix=self.sequence_prefix)
        if not last_sequence:
            return True
        seq_format, seq_format_values = self._get_sequence_format_param(last_sequence)
        seq_format_values['seq'] += 1
        return seq_format.format(**seq_format_values) == self.name
def _is_last_from_seq_chain ( self ) : last_sequence = self . _get_last_sequence ( with_prefix = self . sequence_prefix ) if not last_sequence : return True seq_format , seq_format_values = self . _get_sequence_format_param ( last_sequence ) seq_format_values [ 'seq' ] += 1 return seq_format . format ( * * seq_format_values ) == self . name