Steve Dower added the comment: Or as Martin suggested earlier, time.time() could be returning different values to what the system uses when it creates the file (which I assume is GetSystemTimeAsFileTime/SetFileTime or the kernel-mode equivalent).
I only looked briefly at the touch() implementation, but I believe if the file doesn't exist it just creates it and doesn't try to set the time? So in the first touch(), the system will set the time. For the second touch(), the file exists and so Python calls utime(... time.time()). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19715> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com