[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 002d5f3b240d by Mark Dickinson in branch '2.7': Issue #13863: fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat) http://hg.python.org/cpython/rev/002d5f3b240d -- nosy: +python-dev

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-24 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed for 2.7. I don't think this is worth fixing to 3.2, given that it's not an issue for 3.3. Thanks Brian and Serhiy for reviewing! -- resolution: - fixed status: open - closed ___ Python tracker

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-23 Thread Brian Curtin
Brian Curtin added the comment: Latest patch looks ok to me and the tests pass. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13863 ___ ___

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-21 Thread Mark Dickinson
Mark Dickinson added the comment: Whoops. int.from_bytes doesn't exist in Python 2.7. -- Added file: http://bugs.python.org/file28387/pyc_mtime4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13863

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-20 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13863 ___ ___

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-16 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a possible fix for Python 2.7. Reviews from Windows experts would be very much appreciated; I don't really know what I'm doing here. I'm still trying to work out how to test this effectively. -- ___ Python

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-16 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file28331/pyc_mtime.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13863 ___

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-16 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch, with a test. -- Added file: http://bugs.python.org/file28337/pyc_mtime2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13863 ___

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-12-16 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch to address comments from Serhiy on Rietveld: - use ' 0x' in the Python code that gets the mtime; only the bottom 32 bits of the mtime are used. - simplify line that reads mtime from .pyc file. Also improved an error check in the C

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-11-12 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13863 ___

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-11-12 Thread Eric Snow
Eric Snow added the comment: actually still valid for previous to 3.3 -- nosy: +eric.snow resolution: works for me - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13863

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-09-28 Thread Peter Russell
Peter Russell added the comment: I can confirm that the current equivalent to Mark's original test case works as expected on default. I recommend closing this issue. -- nosy: +qwertyface ___ Python tracker rep...@bugs.python.org

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It shouldn't affect 3.3 anymore (importlib using the os module rather than direct C calls to msvcrt). Could someone check? -- nosy: +mackeith versions: -Python 3.3 ___ Python tracker

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-02-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: For some reason that I'm unable to follow right now, fstat in the crt does this dance to obtain st_mtime: - obtain time stamps using GetFileInformationByHandle - convert ftLastWriteTime using FileTimeToLocalFileTime to LocalFTime - convert

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-01-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Also seen on Windows Vista; seems to be a general Windows + NTFS problem. Changing title to make it clearer that this is a core language issue. It seems as though the correct fix would be to use something like GetFileInformationByHandle in

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-01-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13863 ___ ___ Python-bugs-list mailing

[issue13863] import.c sometimes generates incorrect timestamps on Windows + NTFS

2012-01-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm, interesting. This is exactly what happened recently when debugging pyc timestamp issues under Windows: http://www.python.org/dev/buildbot/all/builders/x86%20Windows7%202.7/builds/1204/steps/test/logs/stdio Some decoding of the above crash: