New submission from Ronald Oussoren <ronaldousso...@mac.com>:

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).

----------
assignee: ronaldoussoren
components: Extension Modules, Macintosh
messages: 99924
nosy: ronaldoussoren
severity: normal
stage: needs patch
status: open
title: os.stat on osx 10.5 or later doesn't expose all fields in struct stat
type: behavior
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8001>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to