Message357634
> Yes, exactly the same behaviour, but arguing that normpath() can take a pathlib object is just saying that it saves you from doing an intermediate str(), which is, well, nice, but still not pretty. Consider `mypath = mypath.normalize()` vs. `mypath = PurePosixPath(normpath(mypath))`.
From my experience in the past the intention has been to keep the API minimal and below are some recent additions. Many discussions lead to the answer over using a function that accepts a pathlike object already and if not add support for it than add the API to pathlib itself. I will leave it to the experts on this.
realink : issue30618
link_to : issue26978 |
|
Date |
User |
Action |
Args |
2019-11-29 05:05:11 | xtreak | set | recipients:
+ xtreak, brett.cannon, pitrou, serhiy.storchaka, iciocirlan |
2019-11-29 05:05:11 | xtreak | set | messageid: <1575003911.42.0.474402712239.issue38924@roundup.psfhosted.org> |
2019-11-29 05:05:11 | xtreak | link | issue38924 messages |
2019-11-29 05:05:11 | xtreak | create | |
|