This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alex Quinn
Recipients Alex Quinn, belopolsky, hollec, jjlee, python-dev, vstinner
Date 2013-08-19.07:39:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376898000.28.0.624733068148.issue5537@psf.upfronthosting.co.za>
In-reply-to
Content
This bug still exists in Python 2.7.3 32-bit on Linux.

I wonder if this might be because the patch (posted 2011-02-18) used utcfromtimestamp().  datetime.datetime.utcfromtimestamp(2**32) will fail on 32-bit systems.

The bug does NOT exist in Python 2.7.3 32-bit on Windows (64-bit OS).

==========================================
32-BIT PYTHON ON 32-BIT LINUX
------------------------------------------
$ python -c "import sys, cookielib; print sys.version; print cookielib.time2isoz(2322923767)"
2.7.3 (default, Apr 10 2013, 05:46:21) 
[GCC 4.6.3]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/cookielib.py", line 99, in time2isoz
    year, mon, mday, hour, min, sec = time.gmtime(t)[:6]
ValueError: timestamp out of range for platform time_t
==========================================


==========================================
64-BIT PYTHON ON 64-BIT LINUX
------------------------------------------
$ python -c "import sys, cookielib; print sys.version; print cookielib.time2isoz(2322923767)"
2.7.3 (default, Aug  3 2012, 17:21:07)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)]
2043-08-11 16:36:07Z
==========================================


==========================================
32-BIT PYTHON ON 64-BIT WINDOWS
------------------------------------------
C:\>python -c "import sys, cookielib; print sys.version; print cookielib.time2isoz(2322923767)"
2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]
2043-08-11 16:36:07Z
==========================================
History
Date User Action Args
2013-08-19 07:40:00Alex Quinnsetrecipients: + Alex Quinn, jjlee, belopolsky, vstinner, hollec, python-dev
2013-08-19 07:40:00Alex Quinnsetmessageid: <1376898000.28.0.624733068148.issue5537@psf.upfronthosting.co.za>
2013-08-19 07:40:00Alex Quinnlinkissue5537 messages
2013-08-19 07:40:00Alex Quinncreate