[Python-Dev] Subsecond time stamps

Guido van Rossum guido@python.org
Fri, 06 Sep 2002 11:42:33 -0400


> > This seems to me the most Pythonic way.
> 
> I admit that this looks tempting, but I'm worried about applications
> that break because they expect time stamps in struct stat to be
> integers.

Hm, so maybe new field names is still the way to go.  E.g. st_mtime
gives an int, st_mtimef gives a float.  The tuple version only gives
the int.  If the system doesn't support subsecond resolution, the
st_mtimef field still exists but is an int (no point allocating a
float and converting the int).

--Guido van Rossum (home page: http://www.python.org/~guido/)