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 xtreak
Recipients brett.cannon, iciocirlan, pitrou, serhiy.storchaka, xtreak
Date 2019-11-29.05:05:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1575003911.42.0.474402712239.issue38924@roundup.psfhosted.org>
In-reply-to
Content
> 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
History
Date User Action Args
2019-11-29 05:05:11xtreaksetrecipients: + xtreak, brett.cannon, pitrou, serhiy.storchaka, iciocirlan
2019-11-29 05:05:11xtreaksetmessageid: <1575003911.42.0.474402712239.issue38924@roundup.psfhosted.org>
2019-11-29 05:05:11xtreaklinkissue38924 messages
2019-11-29 05:05:11xtreakcreate