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 josh.r
Recipients brett.cannon, eric.snow, josh.r, ncoghlan, nirs, pmpp, serhiy.storchaka, twouters, vstinner, yselivanov
Date 2018-03-08.02:24:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520475870.85.0.467229070634.issue33021@psf.upfronthosting.co.za>
In-reply-to
Content
fstat is async signal safe, and I suspect it's thread safe in general, though usage does rely on the file descriptor remaining valid. If the fd in question is closed in another thread after the GIL is released, fstat would fail; if a new file is opened and assigned the same fd, it would give erroneous results. But I don't think any of that would lead to fundamentally incorrect behavior (after all, you could do the same thing manually by caching an fd then closing the file).
History
Date User Action Args
2018-03-08 02:24:30josh.rsetrecipients: + josh.r, twouters, brett.cannon, ncoghlan, nirs, vstinner, pmpp, eric.snow, serhiy.storchaka, yselivanov
2018-03-08 02:24:30josh.rsetmessageid: <1520475870.85.0.467229070634.issue33021@psf.upfronthosting.co.za>
2018-03-08 02:24:30josh.rlinkissue33021 messages
2018-03-08 02:24:30josh.rcreate