[Python-Dev] os.stat and nanosecond precision

Ross Lagerwall rosslagerwall at gmail.com
Fri Jun 3 18:34:01 CEST 2011

With regards to http://bugs.python.org/issue11457

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.

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
If they are always defined, it would make usage simpler.


More information about the Python-Dev mailing list