(self)
return [label_edit.text() or "C{}".format(next(class_count))
                for label_edit, _ in self.line_edits]
Construct a list of class labels. Empty labels are replaced with
        C1, C2, C3. If C<n> already appears in the list of values given by
        the user, the labels start at C<n+1> instead.
Construct a list of class labels. Empty labels are replaced with
        C1, C2, C3. If C<n> already appears in the list of values given by
        the user, the labels start at C<n+1> instead.
Construct a list of class labels . Empty labels are replaced with C1 C2 C3 . If C<n > already appears in the list of values given by the user the labels start at C<n + 1 > instead .
def class_labels(self):
        """Construct a list of class labels. Empty labels are replaced with
        C1, C2, C3. If C<n> already appears in the list of values given by
        the user, the labels start at C<n+1> instead.
        """
        largest_c = max((int(label[1:]) for label, _ in self.active_rules
                         if re.match("^C\\d+", label)),
                        default=0)
        class_count = count(largest_c + 1)
        return [label_edit.text() or "C{}".format(next(class_count))
                for label_edit, _ in self.line_edits]
def class_labels ( self ) : largest_c = max ( ( int ( label [ 1 : ] ) for label , _ in self . active_rules if re . match ( "^C\\d+" , label ) ) , default = 0 ) class_count = count ( largest_c + 1 ) return [ label_edit . text ( ) or "C{}" . format ( next ( class_count ) ) for label_edit , _ in self . line_edits ]