classification
Title: `pathlib.Path.samefile()` calls `os.stat()` without using accessor
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: barneygale, pitrou
Priority: normal Keywords: patch

Created on 2020-03-08 03:44 by barneygale, last changed 2020-04-17 17:47 by pitrou. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 18836 merged barneygale, 2020-03-08 03:48
Messages (2)
msg363629 - (view) Author: Barney Gale (barneygale) * Date: 2020-03-08 03:44
`Path.samefile()` calls `os.stat()` directly. It should use the path's accessor object, as `Path.stat()` does.
msg366672 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2020-04-17 17:47
New changeset 5b1d9184bb0e34391637c06bc7651fb6de8a6240 by Barney Gale in branch 'master':
bpo-39894: Route calls from pathlib.Path.samefile() to os.stat() via the path accessor (GH-18836)
https://github.com/python/cpython/commit/5b1d9184bb0e34391637c06bc7651fb6de8a6240
History
Date User Action Args
2020-04-17 17:47:42pitrousetstatus: open -> closed
type: enhancement
resolution: fixed
stage: patch review -> resolved
2020-04-17 17:47:31pitrousetnosy: + pitrou
messages: + msg366672
2020-03-08 03:48:51barneygalesetkeywords: + patch
stage: patch review
pull_requests: + pull_request18193
2020-03-08 03:44:49barneygalecreate