Title: Add PurePath.with_suffix_appended()
Type: Stage: patch review
Components: Library (Lib) Versions: Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: bgerrity
Priority: normal Keywords: patch

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 open 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()`.
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