(self, elements, fmt, with_verb, comma_for_two_elts=False, serial_comma=True)
return ''.join(parts)
Internal-use implementation to make a (comma-separated) list for use in prose.

        Adds a connective (by default, 'and')
        before the last element if there are more than 1,
        and only includes commas if there are more than 2
        (if comma_for_two_elts is False).

        Adds the right one of "is" or "are" to the end if with_verb is true.

        Optionally adds a quantifier (like 'any') before a list of 2 or more,
        if specified by fmt.

        Don't edit these defaults, override self.makeProseList().
Internal-use implementation to make a (comma-separated) list for use in prose.
Internal - use implementation to make a ( comma - separated ) list for use in prose .
def _implMakeProseList(self, elements, fmt, with_verb, comma_for_two_elts=False, serial_comma=True):
        """Internal-use implementation to make a (comma-separated) list for use in prose.

        Adds a connective (by default, 'and')
        before the last element if there are more than 1,
        and only includes commas if there are more than 2
        (if comma_for_two_elts is False).

        Adds the right one of "is" or "are" to the end if with_verb is true.

        Optionally adds a quantifier (like 'any') before a list of 2 or more,
        if specified by fmt.

        Don't edit these defaults, override self.makeProseList().
        """
        assert(serial_comma)  # didn't implement what we didn't need
        if isinstance(fmt, str):
            fmt = ProseListFormats.from_string(fmt)

        my_elts = list(elements)
        if len(my_elts) > 1:
            my_elts[-1] = '{} {}'.format(fmt.connective, my_elts[-1])

        if not comma_for_two_elts and len(my_elts) <= 2:
            prose = ' '.join(my_elts)
        else:
            prose = ', '.join(my_elts)

        quantifier = fmt.quantifier(len(my_elts))

        parts = [quantifier, prose]

        if with_verb:
            if len(my_elts) > 1:
                parts.append(' are')
            else:
                parts.append(' is')
        return ''.join(parts)
def _implMakeProseList ( self , elements , fmt , with_verb , comma_for_two_elts = False , serial_comma = True ) : assert ( serial_comma ) # didn't implement what we didn't need if isinstance ( fmt , str ) : fmt = ProseListFormats . from_string ( fmt ) my_elts = list ( elements ) if len ( my_elts ) > 1 : my_elts [ - 1 ] = '{} {}' . format ( fmt . connective , my_elts [ - 1 ] ) if not comma_for_two_elts and len ( my_elts ) <= 2 : prose = ' ' . join ( my_elts ) else : prose = ', ' . join ( my_elts ) quantifier = fmt . quantifier ( len ( my_elts ) ) parts = [ quantifier , prose ] if with_verb : if len ( my_elts ) > 1 : parts . append ( ' are' ) else : parts . append ( ' is' ) return '' . join ( parts )