On Wed, 12 Mar 2008 23:59:42 +0500, Andrey Rahmatullin wrote: > > > В archivemail не проходят тесты на python 2.5 (на 2.4 нормально). > > Ошибка точности? (1205344695.5484228 != 1205344695.5484221) > Ну видимо. > Я просто не пойму, можно ли так mtime сравнивать. А, нет. Это os.utime отводит время назад. $ touch test.txt $ ls -la --time-style=full-iso test.txt -rw-r--r-- 1 builder builder 0 2008-03-12 23:47:55.737319000 +0300 test.txt $ python test.py $ ls -la --time-style=full-iso test.txt -rw-r--r-- 1 builder builder 0 2008-03-12 23:47:55.737318000 +0300 test.txt И так далее. $ cat test.py #!/usr/bin/python import os file = "test.txt" mtime = os.path.getmtime(file) atime = os.path.getatime(file) os.utime(file, (atime, mtime)) -- Grigory Batalov, ALT Linux Team