Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
> 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 ---------- nosy: +pitrou, serhiy.storchaka _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38924> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com