Author vstinner
Recipients m-parry, vstinner
Date 2017-03-27.20:55:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490648125.07.0.161242350498.issue29921@psf.upfronthosting.co.za>
In-reply-to
Content
> The change in issue #29100 - intended AFAICS simply to fix a regression in 3.6 - seems to have made datetime validation via certain code paths stricter than it was in 2.7 or 3.5.

What do you mean by "stricter than 2.7 & 3.5"? The year 30828 was never valid.

Python 2.7 and 3.5:

>>> datetime.datetime(30828, 1, 1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: year is out of range
>>> datetime.datetime.fromtimestamp(2**37)
datetime.datetime(6325, 4, 8, 17, 4, 32)
>>> datetime.datetime.fromtimestamp(2**38)
Traceback (most recent call last):
  ...
ValueError: year is out of range

Python 3.6.1 should only be stricter than Python 3.6.0.
History
Date User Action Args
2017-03-27 20:55:25vstinnersetrecipients: + vstinner, m-parry
2017-03-27 20:55:25vstinnersetmessageid: <1490648125.07.0.161242350498.issue29921@psf.upfronthosting.co.za>
2017-03-27 20:55:25vstinnerlinkissue29921 messages
2017-03-27 20:55:24vstinnercreate