[New-bugs-announce] [issue11941] Support st_atim, st_mtim and st_ctim attributes in os.stat_result

Arfrever Frehtes Taifersar Arahesis report at bugs.python.org
Wed Apr 27 23:00:22 CEST 2011


New submission from Arfrever Frehtes Taifersar Arahesis <Arfrever.FTA at GMail.Com>:

I would like to suggest to add st_atim, st_mtim and st_ctim attributes in os.stat_result objects returned by os.stat(). These attributes would be 2-tuples containing number of seconds and number of nanoseconds. They would expose relevant functionality from libc's stat() and provide better precision than floating-point-based st_atime, st_mtime and st_ctime attributes.

st_atim, st_mtim and st_ctim attributes would be available only if Python has been built on system with libc supporting st_atim, st_mtim and st_ctim in stat structure.

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html

----------
messages: 134616
nosy: Arfrever
priority: normal
severity: normal
status: open
title: Support st_atim, st_mtim and st_ctim attributes in os.stat_result
type: feature request
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11941>
_______________________________________


More information about the New-bugs-announce mailing list