STINNER Victor added the comment:

>>> time.mktime(time.localtime(-1))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: mktime argument out of range

Oh yes, I now remember it. Sorry, it was 3 years ago:
http://bugs.python.org/issue11188#msg128541

The problem is to detect invalid time tuple and support the timestamp value -1 
(1 second before the UNIX epoch).

I modified the test to skip mktime(localtime(-1)) test on AIX: changeset 
00e94e454813.

It would be nice to support this specific value, but I don't see how to 
implement it. It's maybe not possible.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19748>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to