[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

STINNER Victor report at bugs.python.org
Sat Mar 3 01:17:25 CET 2012

STINNER Victor <victor.stinner at gmail.com> added the comment:

> Um, doesn't the rejection of PEP 410 mean this should be discontinued?

There is an issue in shutil.copystat() on copying the timestamp: in this specific use case, we need nanosecond resolution.

Guido proposes (in a private mail thread) to add st_atime_ns, st_mtime_ns, st_ctime_ns fields to os.stat() and make os.*utime*() functions accept a (sec, nsec) tuple. It would still be possible to pass a number or seconds as an int or float.

I plan to implement this request.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list