Message290646
> 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. |
|
Date |
User |
Action |
Args |
2017-03-27 20:55:25 | vstinner | set | recipients:
+ vstinner, m-parry |
2017-03-27 20:55:25 | vstinner | set | messageid: <1490648125.07.0.161242350498.issue29921@psf.upfronthosting.co.za> |
2017-03-27 20:55:25 | vstinner | link | issue29921 messages |
2017-03-27 20:55:24 | vstinner | create | |
|