Message220235
Path.with_name can be used to construct paths containing slashes as name contents (rather than as separators), as demonstrated below.
$ python -c 'from pathlib import Path; print(Path("foo").with_name("bar/baz").name)'
bar/baz
This should be changed to either raise a ValueError, or behave like path.parent / new_name. Given the amount of checking in the related with_suffix method (and the fact that the second option can be readily implemented by hand), the first option seems preferable. |
|
Date |
User |
Action |
Args |
2014-06-11 05:39:26 | Antony.Lee | set | recipients:
+ Antony.Lee |
2014-06-11 05:39:26 | Antony.Lee | set | messageid: <1402465166.82.0.496470455769.issue21714@psf.upfronthosting.co.za> |
2014-06-11 05:39:26 | Antony.Lee | link | issue21714 messages |
2014-06-11 05:39:26 | Antony.Lee | create | |
|