This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dennis Sweeney
Recipients Dennis Sweeney, f-brinkmann
Date 2021-02-20.21:37:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613857076.11.0.802472558951.issue43280@roundup.psfhosted.org>
In-reply-to
Content
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'
History
Date User Action Args
2021-02-20 21:37:56Dennis Sweeneysetrecipients: + Dennis Sweeney, f-brinkmann
2021-02-20 21:37:56Dennis Sweeneysetmessageid: <1613857076.11.0.802472558951.issue43280@roundup.psfhosted.org>
2021-02-20 21:37:56Dennis Sweeneylinkissue43280 messages
2021-02-20 21:37:56Dennis Sweeneycreate