-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Documentation
Unless I am in some way confused, that statement is incorrect. The function only accepts stat
objects.
Lines 121 to 126 in 624bf52
# Are two stat buffers (obtained from stat, fstat or lstat) | |
# describing the same file? | |
def samestat(s1, s2): | |
"""Test whether two stat buffers reference the same file""" | |
return (s1.st_ino == s2.st_ino and | |
s1.st_dev == s2.st_dev) |
Linked PRs
- gh-136682: Remove incorrect doc statement that
os.path.samestat
accepts file-like objects #136683 - [3.14] gh-136682: Remove incorrect statement that
os.path.samestat
accepts file-like objects (GH-136683) #136684 - [3.13] gh-136682: Remove incorrect statement that
os.path.samestat
accepts file-like objects (GH-136683) #136685
Metadata
Metadata
Assignees
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Todo