This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Tom Hale, serhiy.storchaka, trrhodes
Date 2021-01-20.10:27:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611138429.13.0.062662988144.issue42778@roundup.psfhosted.org>
In-reply-to
Content
Why is this feature needed? Currently you can use a combination of samestat() with lstat(). And more, you can follow symbolic links only for one of arguments.

samestat(stat(path1), stat(path1))  # same as samefile(path1, path1)
samestat(lstat(path1), stat(path1))
samestat(stat(path1), lstat(path1))
samestat(lstat(path1), lstat(path1))

samefile() covers one (presumably most common) of these cases. The proposed option would cover yet one (is it common enough?). And there are two mixed cases remained.
History
Date User Action Args
2021-01-20 10:27:09serhiy.storchakasetrecipients: + serhiy.storchaka, Tom Hale, trrhodes
2021-01-20 10:27:09serhiy.storchakasetmessageid: <1611138429.13.0.062662988144.issue42778@roundup.psfhosted.org>
2021-01-20 10:27:09serhiy.storchakalinkissue42778 messages
2021-01-20 10:27:09serhiy.storchakacreate