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 vstinner
Recipients neologix, pitrou, vstinner
Date 2015-03-23.17:16:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427130999.93.0.226588178703.issue23753@psf.upfronthosting.co.za>
In-reply-to
Content
Topic previously discussed at:
https://mail.python.org/pipermail/python-dev/2013-May/126285.html

Related issue:
http://bugs.python.org/issue12082

Antoine Pitrou wrote in the issue:
"I would personally like to remove HAVE_FSTAT and make Python unconditionally use fstat(). It will make the code quite simpler in some places."

I agree. I'm quite sure that Python doesn't work on such platform, and it would require much more changes than just making fstat optional.

So I'm in favor of dropping the check on fstat() and expect it to be always available.

Examples of Python modules of the standard library using os.fstat:

- fileinput
- genericpath
- netrc
- os which contains "set.add(stat) # fstat always works"
- _pyio (the call is optional, it catchs AttributeError)
- shutil
- socket
- tarfile
- asyncio
- http.client (optional, catch AttributeError)
- http.server
- logging
- io
- etc.
History
Date User Action Args
2015-03-23 17:16:39vstinnersetrecipients: + vstinner, pitrou, neologix
2015-03-23 17:16:39vstinnersetmessageid: <1427130999.93.0.226588178703.issue23753@psf.upfronthosting.co.za>
2015-03-23 17:16:39vstinnerlinkissue23753 messages
2015-03-23 17:16:39vstinnercreate