classification
Title: stat's python implementation of filemode (fallback) doesn't behave like the C implementation
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, gpery
Priority: normal Keywords: patch

Created on 2018-08-07 17:23 by gpery, last changed 2018-08-10 05:12 by benjamin.peterson. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 8703 merged gpery, 2018-08-07 17:28
Messages (2)
msg323248 - (view) Author: G (gpery) * Date: 2018-08-07 17:23
stat.py (Lib/stat.py)'s implementation of filemode doesn't account for socket-type files, while _stat (Modules/_stat.c) does, using S_IFSOCK.
msg323355 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2018-08-10 05:12
New changeset b92c526ed5da474694f89e29d82565f2a654c29b by Benjamin Peterson (GPery) in branch 'master':
closes bpo-34353: Add sockets to stat.filemode fallback python implementation. (GH-8703)
https://github.com/python/cpython/commit/b92c526ed5da474694f89e29d82565f2a654c29b
History
Date User Action Args
2018-08-10 05:12:12benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg323355

resolution: fixed
stage: patch review -> resolved
2018-08-07 17:28:48gperysetkeywords: + patch
stage: patch review
pull_requests: + pull_request8193
2018-08-07 17:23:14gperycreate