[Python-Dev] os.stat and nanosecond precision

Alexander Belopolsky alexander.belopolsky at gmail.com
Fri Jun 3 18:52:03 CEST 2011

On Fri, Jun 3, 2011 at 12:34 PM, Ross Lagerwall <rosslagerwall at gmail.com> wrote:
> ..
> What should the name of the (seconds, nanoseconds) tuple be?
> st_atim, st_ctim and st_mtim has bee suggested and is what the POSIX
> specification uses. This is confusingly similar to the existing
> st_atime, st_ctime and st_mtime.
Still, inventing new names would make it even more confusing.

+1 for POSIX names.

> Also, should it be that these attributes are always defined (and just
> have 0 for nanoseconds if the OS doesn't support it) or should
> it be that they are only defined if the OS supports nanosecond
> precision.
> If they are always defined, it would make usage simpler.

+1 to have them always defined.

More information about the Python-Dev mailing list