[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
Mon Mar 19 23:03:54 CET 2012


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

Revision 7 of my patch.  Incorporates all suggestions from Georg.  Added "as an integer" in the docs to make Antoine happy.

If I fail to create the "billion" int in INITFUNC, I return NULL and leak references.  I figure this is fine, as a) the other such tests in this function also leak, and b) if you can't initialize the os module, you're not going to have a very productive session.

Dare I dream that it's ready for checkin?

----------
Added file: http://bugs.python.org/file24951/larry.st_mtime_ns.patch.7.txt

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


More information about the Python-bugs-list mailing list