[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

Larry Hastings report at bugs.python.org
Wed Mar 14 07:18:54 CET 2012


Larry Hastings <larry at hastings.org> added the comment:

Guido suggested I break the work up into small patches.  So here's the first patch: adds st_?time_ns fields to os.stat() result.  Includes doc changes and a reasonable smoke-test in the regrtest suite; suite passes all expected tests.  FYI I wasn't sure what to call the currently-slightly-uncomfortably-named new function _PyTime_LongFromTime_t().

----------
Added file: http://bugs.python.org/file24838/larry.st_mtime_ns.patch.1.txt

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


More information about the Python-bugs-list mailing list