Message203976
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()). |
|
Date |
User |
Action |
Args |
2013-11-23 07:39:50 | steve.dower | set | recipients:
+ steve.dower, tim.peters, loewis, pitrou, tim.golden, jkloth, brian.curtin, python-dev |
2013-11-23 07:39:50 | steve.dower | set | messageid: <1385192390.29.0.109930216659.issue19715@psf.upfronthosting.co.za> |
2013-11-23 07:39:50 | steve.dower | link | issue19715 messages |
2013-11-23 07:39:50 | steve.dower | create | |
|