Message383834
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") |
|
Date |
User |
Action |
Args |
2020-12-27 01:42:41 | tinyaoqi | set | recipients:
+ tinyaoqi, brett.cannon, pitrou, timhoffm |
2020-12-27 01:42:41 | tinyaoqi | set | messageid: <1609033361.89.0.0195206094486.issue40148@roundup.psfhosted.org> |
2020-12-27 01:42:41 | tinyaoqi | link | issue40148 messages |
2020-12-27 01:42:41 | tinyaoqi | create | |
|