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.

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 2022-04-11 14:59 by admin.

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()`.
Date User Action Args
2022-04-11 14:59:40adminsetgithub: 87161
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