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.

classification
Title: os.stat on osx 10.5 or later doesn't expose all fields in struct stat
Type: behavior Stage: needs patch
Components: Extension Modules, macOS Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: ronaldoussoren
Priority: normal Keywords:

Created on 2010-02-23 15:19 by ronaldoussoren, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg99924 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-02-23 15:19
The stat implementation on osx 10.5 or later can provide additional fields beyond the tradional unix ones (such as "st_birthtimespec"). Those are by default only available when using 'stat64' instead of the regular stat, but that can be changed using a preprocessor define.

The additional fields are not yet present in the python wrapper (posix.stat) and are apparently useful (according to a mail exchange on the python-nl mailinglist).

It should be possible to add the additional fields in the struct-view of the statresults object without affecting existing code and other platforms. Care should be taken to still enabling building a binary on 10.5 that works on 10.4 (where the stat64 function is not present).
msg103522 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-04-18 19:33
Fixing this requires duplicating a significant amount of code in posixmodule.c and is imho not worth the effort.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52249
2010-04-18 19:33:42ronaldoussorensetstatus: open -> closed
resolution: wont fix
messages: + msg103522
2010-02-23 15:19:47ronaldoussorencreate