# Documentation Unless I am in some way confused, that statement is incorrect. The function only accepts `stat` objects. https://github.com/python/cpython/blob/624bf52c83abcb1f948f9059e29729fa94d38086/Lib/genericpath.py#L121-L126 <!-- gh-linked-prs --> ### Linked PRs * gh-136683 * gh-136684 * gh-136685 <!-- /gh-linked-prs -->
Documentation
Unless I am in some way confused, that statement is incorrect. The function only accepts
statobjects.cpython/Lib/genericpath.py
Lines 121 to 126 in 624bf52
Linked PRs
os.path.samestataccepts file-like objects #136683os.path.samestataccepts file-like objects (GH-136683) #136684os.path.samestataccepts file-like objects (GH-136683) #136685