Message365540
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) |
|
Date |
User |
Action |
Args |
2020-04-02 00:40:24 | timhoffm | set | recipients:
+ timhoffm |
2020-04-02 00:40:24 | timhoffm | set | messageid: <1585788024.89.0.165310869252.issue40148@roundup.psfhosted.org> |
2020-04-02 00:40:24 | timhoffm | link | issue40148 messages |
2020-04-02 00:40:24 | timhoffm | create | |
|