Message239047
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. |
|
Date |
User |
Action |
Args |
2015-03-23 17:16:39 | vstinner | set | recipients:
+ vstinner, pitrou, neologix |
2015-03-23 17:16:39 | vstinner | set | messageid: <1427130999.93.0.226588178703.issue23753@psf.upfronthosting.co.za> |
2015-03-23 17:16:39 | vstinner | link | issue23753 messages |
2015-03-23 17:16:39 | vstinner | create | |
|