Dennis Sweeney <sweeney.dennis...@gmail.com> added the comment:

This seems like a very specific use case. Too specific IMO for a method on all 
string objects for anyone using Python anywhere in the world. Why not just 
write a function like this?

    def my_join(strings, sep=", ", last_sep=", and "):
        strings = list(strings)
        return sep.join(strings[:-1]) + last_sep + strings[-1]

    >>> my_join(["one", "two", "three"])
    'one, two, and three'

----------
nosy: +Dennis Sweeney

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43280>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to