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.

Author tinyaoqi
Recipients brett.cannon, pitrou, timhoffm, tinyaoqi
Date 2020-12-27.01:42:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609033361.89.0.0195206094486.issue40148@roundup.psfhosted.org>
In-reply-to
Content
In Pathlib, we have functions "with_name()""with_stem()""with_suffix()" to modify the file name in the path.

In issue21798:"Allow adding Path or str to Path", it actually also want to modify the file name, that is "appand string to file name".

if with_stem() more cumbersome as:
path.with_name(path.stem + '_v2' + path.suffix)

why not have a function with_xxxx() more cumbersome as:
path.with_name(path.name + "_name.dat")
History
Date User Action Args
2020-12-27 01:42:41tinyaoqisetrecipients: + tinyaoqi, brett.cannon, pitrou, timhoffm
2020-12-27 01:42:41tinyaoqisetmessageid: <1609033361.89.0.0195206094486.issue40148@roundup.psfhosted.org>
2020-12-27 01:42:41tinyaoqilinkissue40148 messages
2020-12-27 01:42:41tinyaoqicreate