Issue 42995: Add PurePath.with_suffix_appended() - Python tracker

Issue42995

This issue tracker will soon become read-only and move to GitHub.
For a smoother transition, remember to log in and link your GitHub username to your profile.
For more information, see this post about the migration.

Created on 2021-01-21 22:04 by bgerrity, last changed 2021-01-21 22:52 by bgerrity.

Pull Requests
URL Status Linked Edit
PR 24288 closed bgerrity, 2021-01-21 22:52
Messages (2)
msg385451 - (view) Author: Brendan Gerrity (bgerrity) * Date: 2021-01-21 22:04
Appending a new suffix to a file is common operation.

The operations don't come across as elegant:

e.g. `foo_path.with_suffix(foo_path.suffix + ".old")`
msg385452 - (view) Author: Brendan Gerrity (bgerrity) * Date: 2021-01-21 22:05
This could addressed with either a new helper or an option in the `PurePath.with_suffix()`.
History
Date User Action Args
2021-01-21 22:52:04bgerritysetkeywords: + patch
stage: patch review
pull_requests: + pull_request23109
2021-01-21 22:05:32bgerritysetmessages: + msg385452
2021-01-21 22:04:11bgerritycreate