[issue42995] Add PurePath.with_suffix_appended()

2021-01-21 Thread Brendan Gerrity
Change by Brendan Gerrity : -- keywords: +patch pull_requests: +23109 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24288 ___ Python tracker ___

[issue42995] Add PurePath.with_suffix_appended()

2021-01-21 Thread Brendan Gerrity
Brendan Gerrity added the comment: This could addressed with either a new helper or an option in the `PurePath.with_suffix()`. -- ___ Python tracker ___ _

[issue42995] Add PurePath.with_suffix_appended()

2021-01-21 Thread Brendan Gerrity
New submission from Brendan Gerrity : 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")` -- components: Library (Lib) messages: 385451 nosy: bgerrity priority: normal severity: normal