Qi Yao <tinya...@gmail.com> added the comment:
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") ---------- nosy: +tinyaoqi _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40148> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com