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 timhoffm
Recipients timhoffm
Date 2020-04-02.00:40:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1585788024.89.0.165310869252.issue40148@roundup.psfhosted.org>
In-reply-to
Content
Similar to PurePath.with_name() and PurePath.with_suffix() there should be a PurePath.with_stem().

A common use case would be appending something before the suffix: path.with_stem(path.stem + '_v2')

As of now this must be written more cumbersome as:
path.with_name(path.stem + '_v2' + path.suffix)
History
Date User Action Args
2020-04-02 00:40:24timhoffmsetrecipients: + timhoffm
2020-04-02 00:40:24timhoffmsetmessageid: <1585788024.89.0.165310869252.issue40148@roundup.psfhosted.org>
2020-04-02 00:40:24timhoffmlinkissue40148 messages
2020-04-02 00:40:24timhoffmcreate