[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2011-01-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Here is a renewed patch against py3k, with a test. -- Added file: http://bugs.python.org/file20237/timet_64-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8278

[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2011-01-02 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch looks still fine. The only concern is that the test probably fails on FAT, but I think that's acceptable. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8278

[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2011-01-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The only concern is that the test probably fails on FAT The patch does not show it, but I've put the test under a 'if get_file_system(support.TESTFN) == NTFS' -- ___ Python tracker

[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2011-01-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Committed r87666 (py3k), I'll backport to 3.1 and 2.7. -- resolution: accepted - fixed status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8278

[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2011-01-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Merged into release31-maint (r87668) and release27-maint (r87669) -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8278

[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2011-01-01 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi Amaury, Martin ack'ed the patch: is there something else you want to do? -- nosy: +sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8278

[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2010-04-01 Thread Ramin Sabet
New submission from Ramin Sabet ramin.sa...@gmail.com: Error Message is: OverflowError: long int too large to convert to int --- Python Version: Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 --- Sample Code attached. -- components: IO files:

[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2010-04-01 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8278 ___ ___ Python-bugs-list mailing

[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2010-04-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: On Windows, time_t is 64bit, but various functions convert it to a 32bit long. Attached patch uses time_t instead of long in various places, this fixes the proposed test. Martin, do you think it's a viable approach? If so, I'll go and

[issue8278] os.utime doesn't allow a atime (Last Access) which is 27 years in the future.

2010-04-01 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch looks fine to me, please apply. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8278 ___